/* ==========================================================================
   Great House Premium E-Commerce Design System & Stylesheet
   ========================================================================== */

/* --- Custom Properties & Theme Setup --- */
:root[data-theme="dark"] {
    --bg-primary: #0a0b0e;
    --bg-secondary: #11141c;
    --bg-tertiary: #161b26;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-cyan: #00f0ff;
    --accent-purple: #9d4edd;
    --accent-gold: #ffb703;
    --accent-rose: #f72585;
    
    --glow-cyan: rgba(0, 240, 255, 0.15);
    --glow-purple: rgba(157, 78, 221, 0.15);
    
    --glass-bg: rgba(17, 20, 28, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    --btn-primary-bg: linear-gradient(135deg, #00f0ff 0%, #7209b7 100%);
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-text: #f3f4f6;
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --input-bg: rgba(255, 255, 255, 0.03);
    
    --ambient-glow-1: radial-gradient(circle, rgba(0,240,255,0.08) 0%, rgba(0,0,0,0) 70%);
    --ambient-glow-2: radial-gradient(circle, rgba(157,78,221,0.08) 0%, rgba(0,0,0,0) 70%);
}

:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-cyan: #0ea5e9;
    --accent-purple: #6366f1;
    --accent-gold: #eab308;
    --accent-rose: #db2777;
    
    --glow-cyan: rgba(14, 165, 233, 0.12);
    --glow-purple: rgba(99, 102, 241, 0.12);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: rgba(148, 163, 184, 0.15);
    
    --btn-primary-bg: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(0, 0, 0, 0.05);
    --btn-secondary-text: #0f172a;
    
    --card-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.1);
    --input-bg: rgba(0, 0, 0, 0.02);
    
    --ambient-glow-1: radial-gradient(circle, rgba(14,165,233,0.06) 0%, rgba(0,0,0,0) 70%);
    --ambient-glow-2: radial-gradient(circle, rgba(99,102,241,0.06) 0%, rgba(0,0,0,0) 70%);
}

/* --- Base Resets & Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* --- Ambient Background Glow Elements --- */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.8;
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background: var(--ambient-glow-1);
    animation: drift 20s infinite alternate;
}

.glow-2 {
    bottom: -15vw;
    left: -15vw;
    background: var(--ambient-glow-2);
    animation: drift 25s infinite alternate-reverse;
}

.glow-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: var(--ambient-glow-1);
    opacity: 0.4;
    animation: pulseGlow 15s infinite ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5vw, 5vw) scale(1.1); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* --- Glassmorphism Component Base --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
    background-size: 200% auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    background-position: right center;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--glass-border);
    color: var(--accent-cyan);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--bg-secondary);
}

.badge-accent {
    background-color: var(--accent-cyan);
    color: #000;
}

/* --- Main Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 105;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    padding-left: 1.2rem;
}

/* Search Box */
.header-search {
    flex: 0 1 350px;
    position: relative;
    margin: 0 1.5rem;
}

.search-form-wrapper {
    position: relative;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.header-search input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
    background-color: var(--bg-secondary);
}

.search-submit-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.search-submit-btn:hover {
    color: var(--accent-cyan);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    border-radius: 16px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    display: none;
    z-index: 120;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.search-suggestion-item .info {
    display: flex;
    flex-direction: column;
}

.search-suggestion-item .name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.search-suggestion-item .price {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Drawers Base (Cart & Mobile Navigation) --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer, .mobile-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.cart-drawer.active {
    transform: translateX(-450px);
}

.mobile-drawer {
    left: -320px;
    right: auto;
    width: 300px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    transform: translateX(320px);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-drawer-btn:hover {
    color: var(--accent-rose);
    transform: rotate(90deg);
}

/* --- Cart Drawer Inner Items --- */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.empty-cart-message {
    margin: auto;
    text-align: center;
    color: var(--text-secondary);
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-cart-message p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-top: 0.25rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.quantity-controller {
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.quantity-controller button {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-controller button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.quantity-controller span {
    font-size: 0.85rem;
    font-weight: 600;
    width: 32px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: var(--accent-rose);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background-color: rgba(0, 0, 0, 0.2);
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-totals .total-price {
    color: var(--accent-cyan);
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
}

/* --- Mobile Drawer Accordion Menu --- */
.drawer-search {
    padding: 1rem 1.5rem;
}

.drawer-search form {
    position: relative;
}

.drawer-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.drawer-search button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-accordion-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-accordion.active .mobile-accordion-content {
    max-height: 250px;
    overflow-y: auto;
}

.mobile-accordion-content a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Main Layout Container --- */
#app-view-container {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 50vh;
}

.page-loader-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-cyan);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Home Page View Styles
   ========================================================================== */

/* --- Hero Slider --- */
.hero-slider {
    margin: 2rem auto;
    max-width: 1400px;
    height: 480px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 11, 14, 0.9) 0%, rgba(10, 11, 14, 0.4) 60%, rgba(10, 11, 14, 0.85) 100%);
    z-index: 2;
}

:root[data-theme="light"] .slide-bg::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.9) 100%);
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glow-cyan);
    color: var(--accent-cyan);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

:root[data-theme="dark"] .slide-title {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .slide-title {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--accent-cyan);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: var(--btn-primary-bg);
    border-color: transparent;
    color: var(--btn-primary-text);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow-left {
    left: 25px;
}

.slider-arrow-right {
    right: 25px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Layouts --- */
.section-wrapper {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.section-link {
    color: var(--accent-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-link:hover {
    color: var(--text-primary);
}

.section-link:hover i {
    transform: translateX(4px);
}

.section-link i {
    transition: transform 0.3s ease;
}

/* --- Category Grid Layout --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 180px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px var(--glow-cyan);
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-card:hover .category-card-bg {
    opacity: 0.25;
    transform: scale(1.1);
}

.category-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    z-index: 2;
    line-height: 1.3;
}

.category-card .count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    z-index: 2;
}

/* --- Features Grid Layout --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
}

.feature-box {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Catalog & Category View Styles
   ========================================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    border-radius: 24px;
    padding: 2rem 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Category lists under filter */
.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.filter-list-item a:hover, .filter-list-item.active a {
    color: var(--accent-cyan);
    padding-left: 0.35rem;
}

/* Price Range Slider */
.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-inputs input {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: center;
}

.price-slider-widget {
    padding: 0.5rem 0;
}

.price-slider-widget input[type="range"] {
    width: 100%;
    accent-color: var(--accent-cyan);
}

/* Custom Checkboxes */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    accent-color: var(--accent-cyan);
    width: 16px;
    height: 16px;
}

/* Catalog Catalog Controls */
.catalog-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.catalog-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    padding: 1rem 1.5rem;
}

.catalog-crumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.catalog-crumbs a:hover {
    color: var(--accent-cyan);
}

.catalog-crumbs span {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-select-wrapper select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sort-select-wrapper {
    position: relative;
}

.sort-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.layout-toggles {
    display: flex;
    gap: 0.5rem;
}

.layout-toggle-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.layout-toggle-btn.active, .layout-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Subcategories Grid */
.subcategories-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.subcategory-pill {
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.subcategory-pill:hover, .subcategory-pill.active {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.05);
}

.subcategory-pill img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 1px solid var(--glass-border);
}

.subcategory-pill span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.products-grid.list-layout {
    grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 420px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 12px 30px var(--glow-purple);
}

.product-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--btn-primary-bg);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    z-index: 10;
}

.wishlist-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 11, 14, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.wishlist-toggle-btn:hover {
    background-color: var(--accent-rose);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.wishlist-toggle-btn.active {
    background-color: var(--accent-rose);
    border-color: transparent;
    color: white;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-card-title a:hover {
    color: var(--accent-cyan);
}

.product-card-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: auto;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent-cyan);
}

.add-to-cart-icon-btn {
    background: var(--btn-primary-bg);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-to-cart-icon-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

/* Product Card - List Layout Variations */
.products-grid.list-layout .product-card {
    flex-direction: row;
    height: 180px;
}

.products-grid.list-layout .product-card-image {
    width: 200px;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
}

.products-grid.list-layout .product-card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
}

.products-grid.list-layout .product-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.products-grid.list-layout .product-card-title {
    height: auto;
    -webkit-line-clamp: 1;
    font-size: 1.1rem;
}

.products-grid.list-layout .product-card-footer {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    gap: 2rem;
}

/* Empty Catalog State */
.empty-catalog-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-catalog-message i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Product Details View Styles
   ========================================================================== */
.product-detail-layout {
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.product-detail-crumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-detail-crumb a:hover {
    color: var(--accent-cyan);
}

.product-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

/* Gallery Section */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 480px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.02);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container img:hover {
    transform: scale(1.15);
}

/* Product Info Section */
.product-info-panel {
    display: flex;
    flex-direction: column;
}

.product-sku-badge {
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.product-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.product-meta-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.availability-indicator.in-stock {
    color: #4ade80;
}

.availability-indicator.out-of-stock {
    color: var(--accent-rose);
}

.availability-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.detail-price-box {
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.detail-price-box .price-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-price-box .price-value-large {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent-cyan);
}

.purchase-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.purchase-row .quantity-controller {
    height: 48px;
    border-radius: 12px;
}

.purchase-row .quantity-controller button {
    width: 40px;
    height: 48px;
}

.purchase-row .quantity-controller span {
    width: 50px;
    font-size: 1.1rem;
}

.purchase-row .btn-primary {
    flex: 1;
    height: 48px;
}

/* Product Tabs Section */
.product-tabs-section {
    margin-top: 4rem;
}

.tabs-nav {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.tab-nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    position: relative;
}

.tab-nav-btn.active, .tab-nav-btn:hover {
    color: var(--accent-cyan);
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--glass-border);
}

.specs-table td {
    padding: 1rem;
    font-size: 0.95rem;
}

.specs-table td.spec-name {
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

.specs-table td.spec-value {
    color: var(--text-secondary);
}

/* ==========================================================================
   Checkout View Styles
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.checkout-section-title {
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* Checkout Summary */
.checkout-summary-panel {
    border-radius: 24px;
    padding: 2rem;
    height: fit-content;
}

.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 1rem;
}

.summary-item .name {
    font-weight: 500;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-item .price {
    font-weight: 700;
    white-space: nowrap;
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 1rem;
}

.summary-row.total .price {
    color: var(--accent-cyan);
}

/* Success State Screen */
.success-screen {
    max-width: 600px;
    margin: 6rem auto;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.success-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.4));
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-screen p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Static Pages (Contacts & About Us)
   ========================================================================== */
.static-page-header {
    height: 250px;
    position: relative;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.static-page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(114, 9, 183, 0.6) 0%, var(--bg-primary) 100%);
    z-index: 1;
}

:root[data-theme="light"] .static-page-header-bg {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
}

.static-page-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    z-index: 2;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.contact-info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-card {
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info-card i {
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p, .contact-info-card a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-map-container {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); /* Sleek map filter for dark mode */
}

/* About Us Page Specifics */
.about-story-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.story-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.story-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Modals (Quick View)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 290;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 900px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--accent-rose);
}

.modal-body .product-main-info {
    margin-bottom: 0;
    gap: 2.5rem;
}

.modal-body .main-image-container {
    height: 380px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-cyan);
    color: black;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 0.25rem;
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contacts li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contacts li i {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-top: 0.2rem;
}

.footer-contacts li div {
    display: flex;
    flex-direction: column;
}

.footer-contacts li div a {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-contacts li div span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .hero-slider {
        height: 420px;
        margin: 1.5rem;
    }
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .product-main-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .section-wrapper {
        margin: 2rem auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .main-header {
        height: 65px;
    }
    
    .header-container {
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-links, .header-search {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-slider {
        height: 380px;
        margin: 1rem 0 2rem 0;
        border-radius: 16px;
    }
    
    .slide-item {
        padding: 2rem 2.5rem 1.5rem 2.5rem;
    }

    .slide-content {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }
    
    .slide-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-label {
        padding: 0.25rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .category-card {
        height: 140px;
        padding: 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .category-card-icon {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .category-card h3 {
        font-size: 0.85rem;
        text-align: center;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        height: 370px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .product-image-box {
        height: 160px;
    }

    .product-card-body {
        padding: 0.75rem;
    }

    .product-card-title {
        font-size: 0.85rem;
        height: 2.4rem;
    }

    .product-price .current-price {
        font-size: 1.05rem;
    }

    .add-to-cart-btn span {
        display: none;
    }

    .add-to-cart-btn {
        padding: 0.6rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .subcategories-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .subcategory-pill {
        padding: 0.5rem;
    }

    .subcategory-pill img {
        width: 40px;
        height: 40px;
    }

    .subcategory-pill span {
        font-size: 0.75rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .cart-drawer.active {
        transform: translateX(-100%);
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .about-story-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .section-wrapper {
        padding: 0 0.75rem;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .hero-slider {
        height: 330px;
        margin: 0.75rem 0.75rem 1.5rem 0.75rem;
    }

    .slide-title {
        font-size: 1.15rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .category-card {
        height: 135px;
        padding: 0.75rem 0.5rem;
    }

    .category-card h3 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-card {
        height: 355px;
    }

    .product-image-box {
        height: 140px;
    }

    .product-card-body {
        padding: 0.65rem;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .quick-view-btn {
        display: none;
    }

    .subcategories-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Prom.ua Style Orders Management --- */
.orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

.orders-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-row-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-row-card td {
    padding: 1.25rem 1rem;
    vertical-align: top;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.order-row-card td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border-left: 1px solid var(--glass-border);
}

.order-row-card td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    border-right: 1px solid var(--glass-border);
}

.order-row-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Status Select Badges */
.status-select {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.status-accepted {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.3);
}

.status-processing {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.3);
}

.status-shipped {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.pay-badge-paid {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;

}

.pay-badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

/* Modal Detail View */
.prom-order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .prom-order-detail-grid {
        grid-template-columns: 1fr;
    }
}
