/* assets/css/style.css - Ultra-Minimalist & Modern Premium E-Commerce Theme */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..700;1,400..700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Monochromatic Minimalist */
    --color-primary: #111111;       /* Deep Charcoal Black */
    --color-primary-dark: #000000;  /* Pure Black */
    --color-secondary: #707070;     /* Slate Muted Gray */
    --color-secondary-hover: #111111;
    --color-light-gold: #f7f7f7;    /* Warm Light Gray */
    --color-bg: #ffffff;            /* Pure White */
    --color-card: #ffffff;
    --color-text: #111111;          /* Dark Charcoal */
    --color-text-muted: #767676;    /* Mid Gray */
    --color-border: #e8e8e8;        /* Soft Light Lines */
    --color-white: #ffffff;
    --color-error: #991b1b;
    --color-success: #166534;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Borders */
    --radius-sm: 0px;               /* Sharp, high-fashion edges */
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-circle: 50%;
    
    /* Box Shadows (Almost flat / very subtle) */
    --shadow-sm: none;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Animation transition */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    border-radius: var(--radius-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400; /* Sophisticated thin weight */
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    z-index: 100;
    transition: var(--transition-smooth);
    width: 100%;
}

/* Header in Solid mode (Non-Homepage) */
header.header-solid {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--color-border);
}

/* Header in Transparent mode (Homepage) */
header.header-transparent {
    position: absolute;
    top: 38px; /* sits below the 38px top-bar */
    left: 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header.header-transparent .logo {
    color: var(--color-white);
}
header.header-transparent .logo img {
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}
header.header-transparent.scrolled .logo img {
    filter: none;
}
header.header-transparent .logo span {
    color: var(--color-light-gold);
}
header.header-transparent .nav-links > li > a {
    color: var(--color-white);
}
header.header-transparent .nav-links > li > a:hover {
    color: rgba(255, 255, 255, 0.7);
}
header.header-transparent .nav-icons .nav-icon-btn {
    color: var(--color-white);
}
header.header-transparent .nav-icons .nav-icon-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}
header.header-transparent .nav-icons input {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--color-white) !important;
}
header.header-transparent .nav-icons input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
header.header-transparent .nav-icons button {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Scrolled state for transparent header */
header.header-transparent.scrolled {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

header.header-transparent.scrolled .logo {
    color: var(--color-primary-dark);
}
header.header-transparent.scrolled .logo span {
    color: var(--color-secondary);
}
header.header-transparent.scrolled .nav-links > li > a {
    color: var(--color-text);
}
header.header-transparent.scrolled .nav-links > li > a:hover {
    color: var(--color-secondary);
}
header.header-transparent.scrolled .nav-icons .nav-icon-btn {
    color: var(--color-text);
}
header.header-transparent.scrolled .nav-icons .nav-icon-btn:hover {
    color: var(--color-secondary);
}
header.header-transparent.scrolled .nav-icons input {
    background-color: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
}
header.header-transparent.scrolled .nav-icons input::placeholder {
    color: var(--color-text-muted);
}
header.header-transparent.scrolled .nav-icons button {
    color: var(--color-text-muted) !important;
}

.top-bar {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 12px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo span {
    font-weight: 300;
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links > li {
    position: static; /* Vital for full-width absolute mega menu child */
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    padding: 10px 0;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Mega Menu Dropdown */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border) !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-smooth);
    padding: 40px 0;
    z-index: 99;
}

.mega-menu a {
    color: var(--color-text-muted) !important;
}

.mega-menu a:hover {
    color: var(--color-primary-dark) !important;
}

.mega-menu h4 {
    color: var(--color-primary-dark) !important;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.mega-menu-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-dark);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.mega-menu-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-col ul a {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
    display: inline;
}

.mega-menu-col ul a:hover {
    color: var(--color-primary-dark);
}

/* Promo Card inside Mega Menu */
.promo-card {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.promo-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
}

.promo-text h5 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: var(--color-white);
}

.promo-text a {
    font-size: 11px;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
}


.nav-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Header Search Bar Styling */
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search-input {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    outline: none;
    font-size: 13px;
    width: 160px;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.header-search-input:focus {
    border-color: var(--color-primary-dark);
    width: 200px;
}

.header-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--color-text);
}

.nav-icon-btn:hover {
    color: var(--color-secondary);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section (Full Viewport Height) */
.hero {
    position: relative;
    background-color: #0b0c10; /* Sleek dark theme base */
    color: var(--color-white);
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    padding: 0;
}

/* Hero Slide Show */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right 20%; /* Position model elements on the right */
    opacity: 0;
    z-index: 1;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-slide {
        background-position: center right 30%;
    }
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark Gradient Overlay over image to preserve header text contrast */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 2;
}

.hero-slide-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    position: relative;
    max-width: 600px;
    color: var(--color-white);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-light-gold);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.15;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
    font-weight: 600;
}

.hero .btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 16px 36px;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid var(--color-primary-dark);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-dark);
    padding: 16px 36px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Category Grid */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    margin-top: 100px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.section-title {
    font-size: 28px;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 6px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    height: 420px;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover img {
    transform: scale(1.03);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-name {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.category-link {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
    width: fit-content;
    padding-bottom: 2px;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 24px;
    margin-bottom: 80px;
}

.product-card {
    background-color: var(--color-card);
    transition: var(--transition-smooth);
    position: relative;
}

.product-image-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-image-wrapper > a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
}

.badge-sale {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.badge-stock {
    background-color: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.product-action-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 6;
}

.product-card:hover .product-action-overlay {
    opacity: 1;
}

.product-info {
    padding: 16px 0 0;
}

.product-fabric {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.price {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.price-old {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 12px;
}

/* Slide-over Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-card);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--color-border);
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-overlay-bg.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 30px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-fabric {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
}

.qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 11px;
}

.qty-val {
    width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 11px;
    cursor: pointer;
    margin-top: 6px;
    text-decoration: underline;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-light-gold);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}

/* Shop Filters & Catalog Page */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    margin: 40px 0 80px;
}

.shop-sidebar {
    height: fit-content;
}

.filter-group {
    margin-bottom: 36px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary-dark);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.filter-item input[type="checkbox"], .filter-item input[type="radio"] {
    accent-color: var(--color-primary-dark);
    width: 14px;
    height: 14px;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.shop-sort select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    outline: none;
    font-size: 13px;
}

/* Filter Reset Button */
.filter-reset-btn {
    text-align: center;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: 100%;
}


/* Single Product Detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    margin: 40px 0 100px;
}

.product-gallery {
    display: flex;
    gap: 16px;
}

.product-thumb-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-thumb {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-thumb.active, .product-thumb:hover {
    border-color: var(--color-primary-dark);
}

.product-main-img-wrapper {
    flex: 1;
    height: 620px;
    background-color: #f7f7f7;
    overflow: hidden;
}

.product-main-images-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-main-images-slider::-webkit-scrollbar {
    display: none;
}

.product-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta-desc {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Product Purchase Buttons & Incrementor */
.product-purchase-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.product-purchase-row .qty-control {
    height: 48px;
    border-radius: var(--radius-sm);
}

.product-purchase-row .qty-control .qty-btn {
    width: 40px;
    font-size: 16px;
}

.product-purchase-row .qty-control input.qty-single-val {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 700;
    background: transparent;
    outline: none;
}

.product-add-btn {
    flex: 1;
    height: 48px;
}

.product-whatsapp-btn {
    text-align: center;
    padding: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.product-desc-box {
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.spec-list {
    margin-top: 16px;
    list-style: none;
}

.spec-item {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
}

.spec-label {
    width: 120px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

/* Shipping Info Card */
.shipping-badge-info {
    margin-top: 30px;
    background-color: var(--color-light-gold);
    padding: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Cart Page */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    margin: 40px 0 80px;
}

.cart-table-card {
    background-color: var(--color-card);
    border-top: 2px solid var(--color-primary-dark);
    padding-top: 20px;
}

.cart-summary-card {
    background-color: var(--color-light-gold);
    padding: 30px;
    height: fit-content;
}

/* Checkout Grid */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    margin: 40px 0 80px;
}

.checkout-form-card {
    background-color: var(--color-card);
}

.form-group-checkout {
    margin-bottom: 20px;
}

.form-group-checkout label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.form-group-checkout input, .form-group-checkout select, .form-group-checkout textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    background-color: #ffffff;
    outline: none;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.form-group-checkout input:focus, .form-group-checkout select:focus {
    border-color: var(--color-primary-dark);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 14px 20px;
    font-size: 13px;
    border-left: none;
    transform: translateY(20px);
    opacity: 0;
    animation: toastIn 0.3s forwards;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Section */
footer {
    background-color: #ffffff;
    color: var(--color-primary-dark);
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo span {
    font-weight: 300;
    color: var(--color-secondary);
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--color-primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #111111;
    color: #fff;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 998;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #25d366;
    transform: scale(1.05);
}

/* Responsive Styling */
@media (max-width: 991px) {
    .product-gallery {
        flex-direction: column-reverse;
    }
    .product-thumb-row {
        flex-direction: row;
        overflow-x: auto;
        padding-top: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        gap: 12px;
    }
    .product-thumb-row::-webkit-scrollbar {
        display: none;
    }
    .product-thumb {
        flex: 0 0 auto;
    }
    .product-main-img-wrapper {
        height: auto;
        aspect-ratio: 3/4;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 20px 0 60px;
    }
    .cart-page-layout, .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    /* Shop Layout & Filters as Dropdowns on Mobile/Tablet */
    .shop-layout {
        grid-template-columns: 1fr;
        margin: 20px 0 60px;
        gap: 24px;
    }
    
    .shop-sidebar {
        width: 100%;
        position: static;
        box-shadow: none;
        padding: 0;
        border-right: none;
        overflow: visible;
        height: auto;
    }
    
    .shop-sidebar #filters-form {
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .shop-sidebar .filter-group {
        margin-bottom: 0;
        flex: 1 1 auto;
        min-width: 140px;
    }
    
    .shop-sidebar .filter-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border: 1px solid var(--color-border);
        background-color: var(--color-white);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        margin-bottom: 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-family: var(--font-body);
        color: var(--color-primary-dark);
        border-bottom: 1px solid var(--color-border);
    }
    
    .shop-sidebar .filter-title::after {
        content: '\f078'; /* FontAwesome chevron-down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s;
    }
    
    .shop-sidebar .filter-group.active .filter-title::after {
        transform: rotate(180deg);
    }
    
    .shop-sidebar .filter-list {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        z-index: 100;
        padding: 16px;
        list-style: none;
        max-height: 280px;
        overflow-y: auto;
    }
    
    .shop-sidebar .filter-group.active .filter-list {
        display: block;
    }
    
    .shop-sidebar .filter-reset-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 140px;
        min-height: 38px;
        height: auto;
        padding: 8px 16px;
        font-size: 11px;
        border: 1px solid var(--color-border);
        background: transparent;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 767px) {
    .nav-links { display: none; }
    .navbar { 
        padding: 12px 0;
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .logo {
        font-size: 20px;
    }
    .logo img {
        max-height: 32px !important;
        max-width: 130px !important;
    }
    .nav-icons {
        gap: 12px;
    }
    .header-search-input {
        width: 100px;
    }
    .header-search-input:focus {
        width: 120px;
    }
    
    /* Shop toolbar responsive alignment */
    .shop-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }
    .shop-results-count {
        font-size: 12px;
    }
    .shop-sort select {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero { padding: 80px 0; min-height: auto; }
    .hero-title { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
}


@media (max-width: 576px) {
    .navbar {
        padding: 8px 0;
    }
    .logo {
        font-size: 16px;
    }
    .logo img {
        max-height: 28px !important;
        max-width: 110px !important;
    }
    .nav-icons {
        gap: 8px;
    }
    .header-search-input {
        width: 75px;
        font-size: 12px;
        padding: 5px 8px;
    }
    .header-search-input:focus {
        width: 90px;
    }
    .product-purchase-row {
        gap: 10px;
    }
    .product-purchase-row .qty-control {
        height: 44px;
    }
    .product-purchase-row .qty-control .qty-btn {
        width: 32px;
    }
    .product-purchase-row .qty-control input.qty-single-val {
        width: 36px;
    }
    .product-add-btn {
        height: 44px;
        padding: 0 10px;
        font-size: 11px;
    }
    .product-whatsapp-btn {
        padding: 10px;
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    /* 2-column product grid on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 10px !important;
    }
    .product-image-wrapper {
        height: auto !important;
        aspect-ratio: 3/4 !important;
    }
    .product-info {
        padding: 12px 0 0 !important;
    }
    .product-title {
        font-size: 13px !important;
    }
    .product-price-row {
        font-size: 12px !important;
        gap: 6px !important;
    }
    .product-fabric {
        font-size: 10px !important;
    }
    .badge-tag {
        font-size: 8px !important;
        padding: 2px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }
    .product-action-overlay {
        display: none !important;
    }
}


/* Attribute Selectors for Colors and Sizes */
.attribute-selection {
    margin-top: 24px;
    margin-bottom: 8px;
}
.attr-btn {
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}
.attr-btn:hover {
    border-color: var(--color-primary-dark);
}
.attr-btn.active {
    border-color: var(--color-primary-dark) !important;
    background-color: var(--color-primary-dark) !important;
    color: var(--color-white) !important;
}
.color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}
.attr-btn.active .color-indicator {
    border-color: var(--color-white);
}

/* Cart dropdown options styling */
.cart-item-attr-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-right: 12px;
    font-size: 12px;
}
.cart-item-attr-select label {
    font-weight: 500;
    color: var(--color-text-muted);
}
.cart-item-attr-select select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 3px 6px;
    font-size: 11px;
    background-color: var(--color-bg);
    color: var(--color-text);
    outline: none;
    cursor: pointer;
    font-family: inherit;
}
.cart-item-attr-select select:focus {
    border-color: var(--color-primary);
}


/* ==========================================================================
   Customer Authentication Drawer Styles
   ========================================================================== */
.auth-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-card);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--color-border);
}

.auth-drawer.active {
    right: 0;
}

.auth-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.auth-overlay-bg.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-header {
    padding: 30px 24px 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header h3 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
}

.auth-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.auth-tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-dark);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.auth-tab-btn.active {
    color: var(--color-primary-dark);
}

.auth-tab-btn.active:after {
    transform: scaleX(1);
}

.auth-forms-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 30px 24px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Customer Portal & Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.dashboard-sidebar {
    border-right: 1px solid var(--color-border);
    padding-right: 20px;
}

.dashboard-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-menu-item {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.dashboard-menu-item:hover, .dashboard-menu-item.active {
    color: var(--color-primary-dark);
    background-color: var(--color-light-gold);
    border-left-color: var(--color-primary-dark);
    font-weight: 600;
}

.dashboard-content-panel {
    display: none;
}

.dashboard-content-panel.active {
    display: block;
}

.dashboard-section-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Orders Table Styling */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.orders-table th {
    background-color: var(--color-light-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending { background-color: #fef3c7; color: #d97706; }
.status-processing { background-color: #dbeafe; color: #2563eb; }
.status-shipped { background-color: #e0f2fe; color: #0284c7; }
.status-delivered { background-color: #dcfce7; color: #15803d; }
.status-cancelled { background-color: #fee2e2; color: #b91c1c; }

/* Expandable Order Detail */
.order-detail-row {
    background-color: #fafafa;
}

.order-items-detail-list {
    padding: 15px 30px;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-detail-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-detail-item-img {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.order-detail-item-name {
    font-size: 13px;
    font-weight: 500;
}

.order-detail-item-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.order-detail-item-price {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .dashboard-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .dashboard-menu-item {
        padding: 8px 12px;
        font-size: 11px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .dashboard-menu-item:hover, .dashboard-menu-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-primary-dark);
    }
}

