/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;600;700&family=Cinzel:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --color-bg-primary: #FDFBF7;
    /* Beige/Off-White */
    --color-bg-secondary: #F5F5DC;
    /* Deeper Beige */
    --color-text-primary: #1A1A1A;
    /* Black/Dark Grey */
    --color-text-secondary: #4A4A4A;
    --color-accent-primary: #EDA15E;
    /* Muted Orange */
    --color-accent-hover: #D68F4D;
    --color-highlight: #F4D03F;
    /* Yellow */
    --color-white: #FFFFFF;
    --color-border: #E5E5E5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent-primary);
    color: var(--color-white);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
    color: var(--color-white);
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-text-primary);
}

/* Navbar */
/* Navbar */
.navbar {
    padding: 0;
    /* Remove padding to keep navbar height "normal" while logo is big */
    background-color: var(--color-bg-primary);
    /* Match site bg */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    padding: 0;
    position: relative;
    /* Reduced z-index so mobile menu sits on top */
    z-index: 1;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 80px;
    /* Reduced base height to keep navbar tight */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo img {
    transform: scale(2.0);
    /* Visually double the size (70px * 2 = 140px visuals) */
    transform-origin: center;
    /* Margin to prevent overlap if needed, but scale usually floats above if z-index is right */
}

.footer-logo img {
    height: 100px;
    /* Slightly larger base for footer */
    transform: scale(1.5);
    filter: brightness(0) invert(1);
    /* Make it white for footer */
    z-index: 10;
}

.footer-logo {
    margin-bottom: 30px;
    /* Space for scale overlap */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-accent-primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
    /* remove animated underline in dropdown items */
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--color-bg-secondary);
    color: var(--color-accent-primary);
}

.nav-icons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    position: relative;
    z-index: 20;
}

/* ── Wishlist Nav Icon ── */
.wishlist-nav-icon {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
}

.wishlist-nav-icon a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.wishlist-nav-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e63946;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-family: var(--font-body);
    line-height: 1;
}

/* ── Profile Dropdown ── */
.profile-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s;
    font-family: var(--font-body);
    line-height: 1;
}

.profile-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.profile-icon-btn i {
    font-size: 1.1rem;
}

.profile-btn-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--color-text-primary);
}

.profile-chevron {
    font-size: 0.6rem !important;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.profile-dropdown-menu.open~.profile-icon-btn .profile-chevron,
.profile-icon-btn[aria-expanded="true"] .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
    animation: dropdownFadeIn 0.18s ease;
}

.profile-dropdown-menu.open {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--color-text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--color-border);
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-item:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-accent-primary);
}

.profile-dropdown-item i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

.profile-dropdown-logout:hover {
    color: #c0392b;
    background-color: #fff5f5;
}

/* ── Compact navbar search bar — just a trigger, no inline expand ── */
.nav-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-white);
    overflow: hidden;
    width: 220px;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: -120px;
}

.nav-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px 10px 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-primary);
    background: transparent;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    pointer-events: none;
    /* clicks handled by the form's listener */
}

.nav-search-form input::placeholder {
    color: #999;
}

.nav-search-form button {
    order: -1;
    background: none;
    border: none;
    padding: 10px 4px 10px 14px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-search-form button:hover {
    color: var(--color-text-primary);
}

/* ── Slide-down Search Overlay ── */
.search-slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateY(-110%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.search-slide-overlay.active {
    transform: translateY(0);
}

.search-slide-inner {
    display: flex;
    align-items: center;
    height: 100px;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.search-slide-logo {
    flex-shrink: 0;
}

.search-slide-logo img {
    height: 130px;
    width: auto;
    display: block;
}

.search-slide-form {
    flex: none;
    width: 600px;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-white);
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-slide-form:focus-within {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.search-slide-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    background: transparent;
}

.search-slide-form input::placeholder {
    color: #aaa;
}

.search-slide-form .search-slide-submit {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-slide-form .search-slide-submit:hover {
    color: var(--color-text-primary);
}

.search-slide-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--color-text-primary);
}

.search-slide-icons a {
    color: inherit;
    text-decoration: none;
}

.search-slide-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    padding: 6px 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-slide-close:hover {
    color: var(--color-text-primary);
}

/* Backdrop dim behind the overlay */
.search-slide-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.search-slide-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Hide old fake trigger on desktop */
.search-trigger-input {
    display: none;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    /* Spacing from search input */
}

/* Search Bar Overlay (Mobile Full Screen) */
.search-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 9999;
    padding: 1rem;
    display: none;
    flex-direction: column;
}

.search-bar-container.active {
    display: flex;
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
}

.search-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    padding: 0.5rem;
}

.mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    flex: 1;
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    background: var(--color-white);
    outline: none;
}

#search-input::placeholder {
    color: #999;
}

#search-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    color: var(--color-text-primary);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through if the overlay itself isn't a button */
}

.hero-btn {
    position: absolute;
    top: 10px;
    left: 2%;
    padding: 6px 14px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Re-enable for the button */
}

@media (max-width: 768px) {
    .hero {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        background-color: var(--color-bg-primary);
    }

    .hero-banner-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        order: 1 !important;
    }

    .hero-overlay {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 10px 15px !important;
        background: var(--color-bg-secondary) !important;
        display: flex !important;
        justify-content: center !important;
        order: 2 !important;
        pointer-events: auto !important;
    }

    .hero-btn {
        position: static !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 200px !important;
        text-align: center;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        letter-spacing: 1px;
        background-color: var(--color-accent-primary) !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


/* Section Headers */
.section-header {
    text-align: center;
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    color: var(--color-accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Featured / Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.product-card {
    background-color: var(--color-white);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-hover-overlay {
    position: absolute;
    bottom: 15px;
    /* Position at the bottom */
    left: 50%;
    transform: translate(-50%, 20px);
    /* Initial state: centered horizontally, slightly offset down */
    display: flex;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    /* Slide up into position */
}

.overlay-btn {
    width: 45px;
    height: 45px;
    background-color: var(--color-white) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    border: none !important;
    font-size: 1.2rem;
    padding: 0;
}

.overlay-btn:hover,
.overlay-btn.active {
    background-color: var(--color-text-primary) !important;
    color: var(--color-white) !important;
    transform: scale(1.1);
}

.overlay-btn:hover i,
.overlay-btn.active i {
    color: var(--color-white) !important;
}

.overlay-btn i {
    pointer-events: none;
}

/* Custom Tooltip */
.overlay-btn[data-tooltip] {
    position: relative;
}

.overlay-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.overlay-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.overlay-btn[data-tooltip]:hover::after,
.overlay-btn[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* On mobile devices, always show the overlay at the bottom */
@media (max-width: 768px) {
    .product-hover-overlay {
        top: auto;
        bottom: 15px;
        transform: translateX(-50%);
        opacity: 1;
        visibility: visible;
    }
}


.product-info {
    padding: var(--spacing-sm) 0;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    color: var(--color-accent-primary);
    font-weight: 600;
}

/* When a product has a discount — price block with MRP & badge */
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.product-info .product-price-block {
    justify-content: center;
}

.product-price-block .product-price {
    color: var(--color-accent-primary);
    font-weight: 700;
}

.product-mrp {
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    font-size: 0.85em;
}

.product-discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}


/* Footer */
footer {
    background-color: var(--color-text-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--color-accent-primary);
}

footer p {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
    position: relative;
    z-index: 20;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
    color: #888;
    font-size: 0.9rem;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-links a {
    transition: var(--transition);
    display: inline-block;
}

.footer-social-links a:hover {
    color: var(--color-accent-primary) !important;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        /* Flow with the document instead of absolute */
        box-shadow: none;
        border: none;
        padding-left: 20px;
        /* Indent sub-links */
        width: 100%;
        background-color: transparent;
    }

    .hamburger {
        display: block;
        font-size: 1.1rem;
    }

    /* Hide inline search on mobile; show icon trigger instead */
    .nav-search-form {
        display: none;
    }

    .search-trigger-input {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        background-color: var(--color-white);
        color: #999;
        cursor: pointer;
        font-size: 0.85rem;
    }

    .hero {
        flex-direction: column-reverse;
        height: auto;
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Mobile Search Trigger: Transform back to icon */
    .search-trigger-input {
        width: auto;
        border: none;
        background-color: transparent;
        padding: 0;
        color: var(--color-text-primary);
    }

    .search-trigger-input span {
        display: none;
    }

    .search-trigger-input i {
        font-size: 1.1rem;
    }

    /* General icon size reduction for User/Cart in mobile */
    .nav-icons i {
        font-size: 1.1rem;
    }

    .header-logo img {
        transform: scale(1.4);
    }
}

/* Skeleton Loading */
.skeleton {
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    background-color: var(--color-white);
    padding: 0;
}

.skeleton-img {
    aspect-ratio: 3/4;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 8px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-text-sm {
    height: 15px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------
   Cart Page Styles (Redesign)
------------------------ */
.cart-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    background-color: #fcfcfc;
    /* Very light background */
}

/* Header */
.cart-header-top {
    display: flex;
    justify-content: center;
    /* Centered by default for desktop look if desired, or space-between for mobile */
    align-items: center;
    padding: 30px 20px;
    background: white;
    border-bottom: none;
    /* Cleaner look */
    position: relative;
}

.cart-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading);
    text-align: center;
}

.cart-count-badge {
    display: none;
    /* Hide for the clean desktop title look "Your Shopping Bag" unless wanted */
}

.close-cart-btn {
    position: absolute;
    right: 20px;
    top: 30px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    /* Hide on desktop usually */
}

/* Subtitle under header */
.cart-header-top::after {
    content: 'Review your items and proceed to checkout';
    display: block;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 10px;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

/* Returns Banner */
.returns-banner {
    display: none;
    /* Hide top banner for cleaner desktop look? Or keep it? Let's keep it minimal */
}

/* Offer Progress Section */
.offer-progress-section {
    max-width: 800px;
    margin: 0 auto 30px;
    background: transparent;
    padding: 0 20px;
}

.main-offer-text {
    background-color: #fff9e6;
    color: #333;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 4px;
    margin-bottom: 25px;
    border: 1px solid #ffe0b2;
}

.highlight-text {
    font-weight: 800;
    color: #d35400;
}

.progress-track-container {
    padding: 0 20px;
    position: relative;
    height: 80px;
    /* Ensure enough space for absolute elements */
    margin-bottom: 20px;
}

.progress-track {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #ff9900;
    transition: width 0.5s ease;
}

.progress-labels {
    position: relative;
    width: 100%;
    height: 20px;
}

.p-label {
    position: absolute;
    top: -20px;
    font-size: 0.6rem;
    font-weight: 700;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #fff;
    padding: 2px 4px;
    border: 1px solid #eee;
    border-radius: 3px;
    color: #555;
    z-index: 2;
}

.progress-milestones {
    position: relative;
    width: 100%;
}

.milestone {
    position: absolute;
    top: 20px;
    /* Align with track */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.milestone i {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #ccc;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.milestone.reached i {
    background: #ff9900;
    border-color: #ff9900;
    color: white;
}

.milestone-price {
    font-size: 0.7rem;
    font-weight: 600;
    background: #ffcc00;
    padding: 2px 6px;
    border-radius: 10px;
    color: black;
}

/* Cart Layout container */
.cart-layout {
    display: flex;
    /* Mobile default */
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

/* Left Column */
.cart-items-column {
    padding: 0;
    flex: 1;
}

/* Cart Item Layout (Desktop-ish by default now?) */
.cart-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    /* Flatter */
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: none;
    border: 1px solid #eee;
    /* Light border card */
}

/* -----------------------
   Authentication Pages
------------------------ */
.auth-container {
    max-width: 400px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-sm);
}

.auth-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--color-accent-primary);
    outline: none;
}

.auth-btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.auth-links {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.auth-links a {
    color: var(--color-accent-primary);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.cart-item-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.cart-item-meta {
    font-size: 0.9rem;
    color: #888;
    background: transparent;
    padding: 0;
    border: none;
}

.cart-item-price-block {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* Quantity Controls */
.quantity-controls-pill {
    margin-top: 15px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    width: fit-content;
    overflow: hidden;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    padding: 5px 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    transition: background 0.15s;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-display {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
    color: #111;
}

/* Delete Icon */
.delete-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    align-self: flex-start;
}

.delete-item-btn i {
    display: none;
    /* Hide icon, show text "Remove" */
}

.delete-item-btn::after {
    content: 'Remove';
}

.delete-item-btn:hover {
    color: #ff4444;
}

/* Free Gift Section */
.free-gift-section {
    background: #fff9e6;
    /* Light yellow background */
    border: 1px solid #ffebb3;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gift-icon-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.gift-icon-box i {
    font-size: 2.5rem;
    color: var(--color-accent-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #d35400;
    /* Darker orange/brown */
}

.gift-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.gift-status-icon {
    margin-left: auto;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.gift-status-icon.unlocked {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* Extra Offer Banner */
.extra-offer-banner {
    background: #fff8e1;
    color: #333;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #fee;
}

/* Summary Section (Right Column) */
.cart-summary-section {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    /* Boxed look */
    height: fit-content;
    position: sticky;
    top: 120px;
    min-width: 350px;
    margin-top: 0;
}

.prepaid-offer-strip {
    display: none;
    /* Maybe too noisy for clean desktop */
}

.summary-details {
    padding: 0;
}

.summary-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f9f9f9;
    padding-bottom: 10px;
    display: none;
    /* We add via pseudo-element or leave empty if header is handled */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
}

.summary-row.discounts {
    color: #d32f2f;
}

.summary-row.total-row {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.see-details {
    font-size: 0.8rem;
    color: #999;
    text-decoration: underline;
    margin-left: 5px;
}

.checkout-btn-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0 0;
    background: #e0ac69;
    /* Use the beige/gold from screenshot */
    color: white;
    padding: 15px;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn-main:hover {
    background: #d49b55;
}

.payment-icons {
    display: none;
    /* Clean look */
}

.checkout-btn-main i {
    display: none;
}

/* Recommendations (Horizontal Scroll) */
.recommendations-section {
    margin-top: 20px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.recommendations-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 5px;
}

.recommendations-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.recommendations-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.recommendations-grid .product-card {
    min-width: 160px;
    max-width: 160px;
    border: 1px solid #eee;
    border-radius: 8px;
    flex-shrink: 0;
}

.recommendations-grid .product-image {
    height: 200px;
}

.recommendations-grid .product-info {
    padding: 10px;
}

.recommendations-grid .product-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
}

.empty-cart-message p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.empty-cart-message .btn {
    min-width: 200px;
}

/* Responsive */
/* Mobile Responsiveness Override */
@media (max-width: 900px) {
    .cart-layout {
        flex-direction: column;
    }

    .cart-container {
        background: #f5f5f5;
    }

    .cart-header-top {
        justify-content: space-between;
        padding: 15px;
    }

    .cart-header-top::after {
        display: none;
    }

    .close-cart-btn {
        display: none;
    }

    .cart-page-title {
        font-size: 1.2rem;
        text-align: center;
        /* Center since close btn is gone */
        width: 100%;
    }

    .offer-progress-section {
        margin: 0;
        padding: 20px 10px;
    }

    .progress-track-container {
        padding: 0 45px;
        /* Prevent edge clipping of labels */
    }

    .p-label {
        font-size: 0.7rem;
        /* Increased readability */
        padding: 2px 4px;
        white-space: normal;
        /* Allow wrapping */
        text-align: center;
        width: 80px;
        /* Increased width */
        line-height: 1.1;
        bottom: 120%;
        /* Move up slightly */
        top: auto;
        font-weight: 600;
        z-index: 10;
        /* Ensure visibility */
    }

    .milestone-price {
        font-size: 0.75rem;
        /* Increased size */
        padding: 2px 6px;
        font-weight: 700;
        background: #ffcc00;
        color: #000;
        border-radius: 12px;
    }

    .main-offer-text {
        font-size: 0.75rem;
        margin-bottom: 45px;
        /* Increased to prevent overlap with labels */
    }

    .cart-summary-section {
        position: static;
        border: none;
        padding: 20px;
        background: white;
        margin-top: 0;
        min-width: auto;
    }

    .cart-item {
        grid-template-columns: 80px 1fr 30px;
        gap: 15px;
    }

    .cart-item-title {
        font-family: var(--font-body);
        font-size: 0.95rem;
    }

    .delete-item-btn {
        text-decoration: none;
        font-size: 1.1rem;
    }

    .delete-item-btn i {
        display: block;
    }

    .delete-item-btn::after {
        display: none;
    }

    .checkout-btn-main {
        background: #e0ac69;
        /* Matches desktop color */
        border-radius: 8px;
    }

    .payment-icons {
        display: flex;
    }

    .checkout-btn-main i {
        display: inline-block;
    }
}

/* Desktop Grid Layout */
@media (min-width: 901px) {
    .cart-layout {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        gap: 40px;
    }

    /* Insert "Order Summary" title via CSS if not in HTML effectively */
    .cart-summary-section::before {
        content: 'Order Summary';
        display: block;
        font-family: var(--font-heading);
        font-size: 1.5rem;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
}

/* -----------------------
   Promo Video Styles
------------------------ */
.floating-promo {
    position: fixed;
    bottom: 100px;
    /* Increased to accommodate WhatsApp button below it */
    right: 30px;
    /* Moved to right to avoid overlapping CTA button */
    left: auto;
    width: 140px;
    height: 250px;
    /* Vertical orientation */
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: visible;
    /* Allows close button to hang out */
    background: #000;
    border: 1px solid var(--color-white);
}

.floating-promo:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.floating-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#floating-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    /* Prevent hover controls/overlays */
    border-radius: 12px;
    /* Match parent container radius */
}

.promo-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF4444;
    /* Red for high visibility */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    /* Ensure it's above the video container */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.promo-close-btn:hover {
    background: #CC0000;
    transform: scale(1.1);
}

.modal-mute-btn {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #444;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.modal-mute-btn:hover {
    background: #666;
    transform: scale(1.1);
}

/* Ensure the container allows the button to spill out */
.floating-promo {
    /* ... previous styles ... */
    overflow: visible;
    /* Changed from hidden to visible */
}

/* Modal Styles */
.video-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 85vh;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    /* Changed to visible so close button shows */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
}

#modal-video-player {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    /* Ensure it fits on screen */
    display: block;
    border-radius: 8px;
    border: 2px solid var(--color-white);
    /* Add border to match theme */
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #FF4444;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: transform 0.2s, background 0.2s;
}

.modal-close:hover {
    background: #CC0000;
    transform: scale(1.1);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-promo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        /* Circle shape on phone */
        bottom: 80px;
        right: 20px;
        left: auto;
        border: 2px solid var(--color-accent-primary);
    }

    .floating-promo:hover {
        transform: scale(1.05);
        /* No translateY on mobile */
    }

    #floating-video-player {
        object-fit: cover;
        border-radius: 50%;
        /* Force circle shape on video element */
    }

    .promo-close-btn {
        width: 20px;
        height: 20px;
        font-size: 14px;
        top: 0;
        right: 0;
        background: var(--color-accent-primary);
    }

    .modal-mute-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
        top: -10px;
        left: -10px;
    }

    .video-modal-content {
        width: 95%;
    }

    .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Product Page Refinements */
.pd-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    align-items: stretch;
    /* Ensure all children stretch to same height */
}

.quantity-input {
    width: 70px;
    padding: 10px 4px;
    text-align: center;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    height: 44px;
    /* Explicit height to match buttons */
}

/* Always show the number input spinner arrows */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

/* Wishlist Button Styling — scoped to product detail page only */
.pd-actions .wishlist-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-text-primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.pd-actions .wishlist-btn:hover {
    background-color: var(--color-bg-secondary);
}

.pd-actions .wishlist-btn i {
    font-size: 1.2rem;
    color: var(--color-text-primary);
}

.wishlist-btn.active i {
    font-weight: 900;
    /* Solid heart */
    color: var(--color-accent-primary);
}

/* Feedback Section Styles */
.feedback-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.review-card {
    background-color: #f9f9f9;
    padding: var(--spacing-md);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.review-rating {
    color: var(--color-highlight);
    /* Yellow stars */
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Mobile Responsiveness for Product Page */
@media (max-width: 480px) {
    .pd-actions {
        display: grid;
        grid-template-columns: 60px 1fr 1fr;
        gap: 10px;
        align-items: stretch;
        margin-bottom: var(--spacing-md);
    }

    .pd-actions .quantity-input {
        order: 1;
        width: 100%;
        height: auto;
        min-height: 50px;
        margin: 0;
    }

    .pd-actions .btn.add-to-cart {
        order: 2;
        margin: 0;
        padding: 5px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
        flex-basis: auto;
    }

    .pd-actions .btn.buy-now {
        order: 3;
        margin: 0;
        padding: 5px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
        flex-basis: auto;
    }

    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.clear-filter {
    color: var(--color-accent-primary) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: 1px solid var(--color-accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    background: transparent;
    text-align: center;
}

.clear-filter:hover {
    background-color: var(--color-accent-primary);
    color: var(--color-white) !important;
    text-decoration: none;
    opacity: 1;
}

/* -----------------------
   Circular Categories
------------------------ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 on mobile */
    gap: 15px;
    margin-bottom: var(--spacing-lg);
    justify-items: center;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 in a row on desktop */
        gap: 30px;
    }
}

.category-card {
    position: relative;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;
    /* Perfect circle */
    border-radius: 50%;
    /* Make it round */
    overflow: hidden;
    /* Clip everything inside */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid var(--color-highlight);
    /* Gold/Yellow Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-primary);
}

/* Hide the separate background circle as it's now part of the card */
.category-circle-bg {
    display: none;
}

.category-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    /* Stronger gradient that covers more area */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding-bottom: 25px;
    padding-top: 30px;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

.category-text h3 {
    color: white;
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    .category-text h3 {
        font-size: 0.9rem;
    }
}

/* -----------------------
   Authentication Pages
------------------------ */
.auth-container {
    max-width: 400px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-sm);
}

.auth-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--color-accent-primary);
    outline: none;
}

.auth-btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.auth-links {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.auth-links a {
    color: var(--color-accent-primary);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Promo Product Modal */
.promo-product-modal {
    display: none;
    position: fixed;
    bottom: 15%;
    /* Overlay video bottom */
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 2000;
    /* Higher than video modal */
}

.promo-product-card {
    background: rgba(0, 0, 0, 0.4);
    /* Lighter semi-transparent for better video visibility */
    color: white;
    padding: 15px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.promo-product-card .modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: transform 0.2s;
}

.promo-product-card .modal-close:hover {
    transform: scale(1.1);
}

.promo-product-content-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.promo-product-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-product-info h3 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    font-family: var(--font-body);
}

.promo-product-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 600;
    color: var(--color-accent-primary);
}

.add-to-cart-promo {
    background-color: white;
    color: black;
    border: none;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.add-to-cart-promo:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.add-to-cart-promo:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Product Details Modal */
.video-product-details-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: none;
}

.video-product-details-modal.active {
    display: flex;
}

.vpd-content {
    background-color: transparent;
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    /* Changed from height to max-height */
    position: relative;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: visible;
}


.vpd-scrollable {
    background-color: white;
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    /* Changed from overflow-y: auto */
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
}

.vpd-close {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #000;
}

.vpd-image-wrapper {
    width: 100%;
    background-color: #f7f7f7;
    padding-top: 15px;
    /* Reduced padding */
    padding-bottom: 10px;
    /* Reduced padding */
    display: flex;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.vpd-image-wrapper img {
    max-width: 80%;
    max-height: 250px;
    /* Reduced max-height */
    object-fit: cover;
    border-radius: 12px;
}

.vpd-details {
    padding: 15px 20px 10px;
    /* Reduced bottom padding */
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vpd-title {
    font-size: 1rem;
    /* Reduced font size */
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.vpd-price {
    font-size: 0.95rem;
    /* Reduced font size */
    color: #555;
    margin-bottom: 10px;
    /* Reduced margin */
}

.vpd-sizes-section {
    margin-bottom: 10px;
    /* Reduced margin */
}

.vpd-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vpd-size-box {
    padding: 6px 10px;
    /* Reduced padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    /* Reduced font size */
    min-width: 35px;
    /* Reduced min width */
    text-align: center;
    background-color: white;
    color: #333;
    transition: all 0.2s;
}

.vpd-size-box:hover {
    border-color: #000;
}

.vpd-size-box.active {
    background-color: #000 !important;
    color: white !important;
    border-color: #000 !important;
}

.vpd-description {
    font-size: 0.8rem;
    /* Reduced font size */
    color: #666;
    line-height: 1.4;
    /* Tighter line height */
    margin-bottom: 10px;
    /* Further reduced margin to hug the button */
}

.vpd-add-to-cart {
    background-color: #000;
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}

.vpd-add-to-cart:hover {
    background-color: #333;
}

.vpd-add-to-cart:active {
    transform: translateY(1px);
}


@media (max-width: 768px) {
    .promo-product-modal {
        bottom: 20%;
        /* Position higher to overlap video nicely */
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 280px;
    }

    .promo-product-card {
        width: 100%;
        padding: 10px;
        gap: 8px;
    }

    .promo-product-image img {
        width: 50px;
        height: 50px;
    }

    .promo-product-info h3 {
        font-size: 0.85rem;
    }

    .promo-product-info p {
        font-size: 0.8rem;
    }

    .add-to-cart-promo {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* =====================================================================
   CHECKOUT PAGE STYLES
   ===================================================================== */

.checkout-container {
    max-width: 780px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

/* ── Step Indicator ───────────────────────────────────────────────────── */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: white;
}

.step.done .step-circle {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.step.active {
    color: var(--color-accent-primary);
}

.step.done {
    color: #4caf50;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    max-width: 80px;
    margin-bottom: 22px;
}

/* ── Checkout Section Title ───────────────────────────────────────────── */
.checkout-section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-title i {
    color: var(--color-accent-primary);
}

/* ── Address Form ─────────────────────────────────────────────────────── */
.address-form {
    background: var(--color-white);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.addr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .addr-form-grid {
        grid-template-columns: 1fr;
    }
}

.pincode-hint {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
    display: block;
}

.addr-type-group {
    grid-column: 1 / -1;
}

.addr-type-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.addr-type-btn {
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.addr-type-btn.active {
    border-color: var(--color-accent-primary);
    background: var(--color-accent-primary);
    color: white;
}

.addr-save-btn {
    margin-top: 1.25rem;
    width: 100%;
    text-align: center;
}

.addr-error-msg {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 10px;
    border-radius: 4px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ── Address Card ─────────────────────────────────────────────────────── */
.address-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.address-card.is-default {
    border-color: var(--color-accent-primary);
}

.addr-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.addr-radio {
    margin-top: 4px;
    accent-color: var(--color-accent-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.addr-card-info {
    flex: 1;
}

.addr-card-name {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.addr-type-tag {
    background: #f5f5dc;
    border: 1px solid #ddd;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #555;
}

.addr-default-badge {
    background: var(--color-accent-primary);
    color: white;
    font-size: 0.68rem;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.addr-card-details {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.addr-card-phone {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.addr-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.addr-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    transition: color 0.2s;
}

.addr-action-btn:hover {
    color: var(--color-accent-primary);
}

.addr-action-btn.delete-addr-btn:hover {
    color: #e53935;
}

/* ── Saved Addresses Section ──────────────────────────────────────────── */
.saved-addr-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-new-addr-toggle {
    background: transparent;
    border: 1px dashed var(--color-accent-primary);
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
}

.add-new-addr-toggle:hover {
    background: var(--color-accent-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: var(--color-text-primary);
    color: white;
}

/* ── Guest Notice ─────────────────────────────────────────────────────── */
.guest-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #2e7d32;
}

.guest-notice i {
    font-size: 1.1rem;
}

.guest-notice a {
    font-weight: 700;
    color: #1b5e20;
    text-decoration: underline;
}

/* ── Checkout Nav Buttons ─────────────────────────────────────────────── */
.checkout-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .checkout-nav-btns {
        flex-direction: column-reverse;
    }

    .checkout-nav-btns .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

/* ── Order Review Step ────────────────────────────────────────────────── */
.review-addr-box {
    display: flex;
    gap: 1rem;
    background: #fffbf5;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-addr-box i {
    color: var(--color-accent-primary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.review-item-info {
    flex: 1;
}

.review-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.review-item-meta {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.review-item-price {
    font-weight: 700;
    color: var(--color-accent-primary);
    font-size: 0.95rem;
}

.review-totals {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

/* ── Payment Step ─────────────────────────────────────────────────────── */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--color-accent-primary);
    background: #fffbf5;
}

.payment-option>i:first-child {
    font-size: 1.8rem;
    color: var(--color-accent-primary);
    width: 30px;
    text-align: center;
}

.payment-option div {
    flex: 1;
}

.payment-option div strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.payment-option div p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.payment-check {
    color: #ddd;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.payment-option.selected .payment-check {
    color: var(--color-accent-primary);
}

/* ── Order Success Screen ─────────────────────────────────────────────── */
.order-success-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.order-success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.order-success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.order-success-card p {
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================================================
   PROFILE PAGE STYLES
   ===================================================================== */

.profile-container {
    max-width: 860px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 3.5rem;
    color: var(--color-accent-primary);
    line-height: 1;
}

.profile-info h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.profile-email-txt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.profile-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.profile-section-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-header h2 i {
    color: var(--color-accent-primary);
}

.profile-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-secondary);
    grid-column: 1 / -1;
}

.profile-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #ccc;
}

.profile-empty-state a {
    color: var(--color-accent-primary);
    font-weight: 600;
}

.profile-addr-form-box {
    background: #fffbf5;
    border: 1px dashed var(--color-accent-primary);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-addr-form-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Payment Page Price Breakdown ──────────────────────────────────────────── */
.payment-breakdown {
    padding: 1.25rem 1.5rem;
}

.breakdown-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.6rem;
}

.breakdown-sub {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    gap: 1rem;
}

.summary-row.total-row {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.discount-green {
    color: #2e7d32;
    font-weight: 600;
}

.breakdown-savings {
    margin-top: 0.75rem;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #1b5e20;
    text-align: center;
}

/* Mobile optimizations for buttons */
@media (max-width: 768px) {

    #profile-add-addr-btn,
    #add-new-addr-toggle-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ── Password Field Visibility Toggle ─────────────────────────────────── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .form-input {
    width: 100%;
    padding-right: 40px;
    /* Make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: var(--color-text-secondary, #666);
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--color-accent-primary);
}

/* Hide native Microsoft Edge/IE password reveal icon (to prevent double icons or disappearing quirks) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Checkout Modal */
.checkout-modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.checkout-modal-overlay.active {
    display: flex;
}

.checkout-modal-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.close-modal-btn:hover {
    color: var(--color-text-primary);
}

.modal-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}

.checkout-total-display {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Quick View Modal Styles */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background-color: var(--color-white);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-image {
    flex: 1;
    background-color: #f5f5f5;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.quick-view-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.quick-view-price-block {
    margin-bottom: 20px;
}

.quick-view-description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.quick-view-sizes {
    margin-bottom: 25px;
}

.quick-view-sizes h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.size-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.size-box {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
    background-color: var(--color-white);
    color: var(--color-text-primary);
}

.size-box:hover {
    border-color: var(--color-text-primary);
}

.size-box.active {
    background-color: var(--color-text-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-text-primary) !important;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.quick-view-actions button {
    flex: 1;
}

.qv-scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    .quick-view-content {
        flex-direction: column;
        height: 85vh;
        width: 95%;
    }

    .quick-view-image {
        flex: none;
        height: 300px;
        max-height: 40vh;
    }

    .quick-view-image img {
        object-fit: contain;
        background: #f9f9f9;
    }

    .quick-view-details {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
    }

    .quick-view-title {
        font-size: 1.4rem;
    }

    /* Scroll Indicator - Less Intrusive */
    .qv-scroll-indicator {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: rgba(230, 156, 94, 0.85); /* Semi-transparent gold */
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        pointer-events: none;
        z-index: 30;
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(2px);
    }

    .qv-scroll-indicator.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .qv-scroll-indicator i {
        font-size: 0.75rem;
        animation: qvBounce 1.2s infinite ease-in-out;
    }

    @keyframes qvBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(3px); }
    }
}

/* ── Custom Confirm Modal ─────────────────────────────────────────────────── */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.custom-modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.custom-modal-box {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 2rem 1.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
}

.custom-modal-backdrop.active .custom-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.custom-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--color-accent-primary);
}

.custom-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.custom-modal-msg {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.custom-modal-cancel {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.custom-modal-cancel:hover {
    border-color: var(--color-text-primary);
    background: var(--color-bg-secondary);
}

.custom-modal-confirm {
    flex: 1;
    padding: 10px 16px;
    background: #c0392b;
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.custom-modal-confirm:hover {
    background: #a93226;
    transform: translateY(-1px);
}

/* Social Auth Styles */
.social-auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.social-auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    z-index: 1;
}

.social-auth-divider span {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    padding: 0 15px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.social-btn img {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}