:root {
    --bg-color: #333333;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #a0aec0;
    --nav-bg: rgba(0, 0, 0, 0.5);
    --card-bg: #222222;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.05);
    --accent: #cba276;
    --overlay: #333333;
    --overlay-transparent: rgba(0, 0, 0, 0);
    --hover-bg: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-dark: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --card-bg: #ffffff;
    --border-light: rgba(0, 0, 0, 0.1);
    --border-lighter: rgba(0, 0, 0, 0.05);
    --accent: #b5814c;
    --overlay: #f8fafc;
    --overlay-transparent: rgba(255, 255, 255, 0);
    --hover-bg: rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-bottom: 80px;
    /* Space for bottom nav on mobile */
    -webkit-font-smoothing: antialiased;
    opacity: 1;
}

main.content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.fade-out {
    animation: fadeOut 0.25s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Top Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    position: fixed;
    top: 15px;
    left: 0;
    width: calc(100% - 10px);
    margin: 0 5px;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Text Me One', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Top Icons */
.top-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.top-icons a {
    color: var(--text-primary);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-icons a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.desktop-profile {
    display: none !important;
    /* Hidden on mobile */
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    /* Hidden on mobile */
}

/* Main Content */
.content {
    padding: 24px 5px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--text-primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
}

.storefront-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.storefront-slider-arrow.previous {
    left: 18px;
}

.storefront-slider-arrow.next {
    right: 18px;
}

.storefront-slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.storefront-slider-dots[hidden] {
    display: none;
}

.storefront-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.storefront-slider-dot.active {
    background: #fff;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide {
    display: block;
    min-width: 100%;
    scroll-snap-align: center;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    /* Increased top padding to make the gradient spread further up */
    background: linear-gradient(to top, var(--overlay) 30%, var(--overlay-transparent));
    z-index: 1;
}

.storefront-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 800;
}

.slide-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Categories */
.categories-section {
    margin-bottom: 24px;
    scroll-margin-top: 88px;
}

@media (max-width: 1023px) {
    .content.favorites-view {
        padding-top: 88px;
    }
}

.categories-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-item {
    padding: 8px 16px;
    background: var(--border-lighter);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-item.active,
.category-item:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Products Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.section-header a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding-bottom: 10px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-lighter);
}

.product-image {
    position: relative;
    height: 260px;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--nav-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    color: var(--accent);
    background: var(--border-light);
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
}

.price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.add-to-cart {
    width: 100%;
    background-color: var(--border-light);
    color: var(--text-primary);
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
    background: var(--nav-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    padding: 5px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid var(--border-light);
    border-radius: 25px;
    gap: 5px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    padding: 8px 0;
    border-radius: 20px;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.nav-item.active,
.nav-item:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item.active i,
.nav-item:hover i {
    transform: scale(1.1);
}

#favorites-link[hidden],
.bottom-nav [data-nav="favorites"][hidden],
.products-page-favorite[hidden] {
    display: none;
}

/* Desktop Adjustments (Tablet and Desktop) */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        /* Remove bottom padding */
    }

    .bottom-nav {
        display: none;
        /* Hide bottom nav on desktop */
    }

    .desktop-nav {
        display: flex;
        gap: 32px;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 15px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: var(--text-primary);
    }

    .desktop-profile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: var(--card-bg);
        color: var(--text-primary) !important;
        margin-left: 8px;
    }

    .desktop-profile:hover {
        background-color: #444444;
    }
}

/* Hide desktop footer on mobile */
@media (max-width: 1023px) {
    .desktop-footer {
        display: none;
    }
}

/* Desktop Layout (Split Screen) */
@media (min-width: 1024px) {
    .desktop-layout {
        display: flex;
        gap: 0;
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    /* Slider adjustments for desktop */
    .slider-container {
        flex: 0 0 50%;
        max-width: 50%;
        position: sticky;
        top: 0;
        height: 100vh;
        border-radius: 0;
        overflow: hidden;
    }

    .slide img {
        height: 100vh;
        min-height: auto;
        border-radius: 0;
    }

    .slider-wrapper {
        height: 100vh;
    }

    /* Content adjustments for desktop */
    .content {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 100px 40px 40px;
    }

    /* Desktop Footer */
    .desktop-footer {
        display: block;
        background: var(--bg-dark);
        padding: 60px 20px;
        border-top: 1px solid var(--border-light);
        text-align: center;
        margin-top: 0;
        width: 100%;
        margin-left: 0;
    }

    .footer-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-brand {
        font-family: 'Text Me One', sans-serif;
        font-size: 28px;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 15px;
    }

    .desktop-footer p {
        color: var(--text-muted);
        font-size: 14px;
    }

    .footer-links {
        margin-top: 24px;
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 15px;
        transition: color 0.3s;
    }

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

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -25px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    border: 2px solid var(--bg-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.bottom-nav .cart-badge {
    top: 4px;
    right: calc(50% - 18px);
    border-color: var(--nav-bg);
}

.cart-badge.bounce {
    animation: badgeBounce 0.4s ease;
}

@keyframes badgeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

/* Product Page Styles */
.product-page-layout {
    padding-bottom: 40px;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #000;
}

.product-slider-wrapper {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.product-slide {
    min-width: 100%;
    scroll-snap-align: center;
}

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

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.slider-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.product-details {
    padding: 24px;
    background: var(--bg-color);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-title-row h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.product-detail-layout .product-title-row {
    gap: 10px;
}

.product-detail-layout .product-title-row h2 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wishlist-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.product-price {
    font-size: 24px;
    color: var(--accent);
    font-weight: 800; 
}

.product-section {
    margin-bottom: 24px;
}

.product-section h3 {
    font-size: 15px;
    margin-bottom: 0px;
    font-weight: 600;
}

.product-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-circle.active {
    border: 2px solid var(--accent) !important;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    width: auto;
    min-width: 76px;
    max-width: 100%;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.size-btn:disabled {
    cursor: not-allowed;
}

.size-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.product-color-options {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-color-options::-webkit-scrollbar {
    display: none;
}

.product-color-option {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.product-color-option:hover,
.product-color-option.active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--card-bg));
    color: var(--accent);
}

.product-color-section h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.selected-color-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-main-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 16px;
    background: var(--text-primary);
    color: var(--bg-dark);
    margin-top: 10px;
}

@media (min-width: 1024px) {
    .product-details {
        margin-top: 40px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .product-slider {
        height: 70vh;
    }
}

/* Cart Page Styles */
.cart-page-layout {
    padding-top: 80px;
    padding-bottom: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-light);
}

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

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

.cart-item-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    padding-right: 30px;
    /* Space for trash icon */
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--border-lighter);
    padding: 6px 10px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
}

.qty-val {
    font-size: 14px;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

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

.cart-summary {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
}

.secure-checkout {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.secure-checkout i {
    margin-right: 4px;
}

@media (min-width: 1024px) {
    .cart-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-items {
        flex: 2;
    }

    .cart-summary {
        flex: 1;
        position: sticky;
        top: 100px;
    }
}

/* Favorites Page Styles */
.favorites-page-layout {
    padding-top: 80px;
    padding-bottom: 40px;
}

.remove-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    z-index: 2;
}

[data-theme="dark"] .remove-favorite-btn {
    background: rgba(0, 0, 0, 0.7);
}

.remove-favorite-btn:hover {
    transform: scale(1.1);
}

/* Legacy Account Styles Removed */

/* -------------------------------- */
/* Products Page & Filters Styles   */
/* -------------------------------- */

.products-page-layout {
    display: flex;
    gap: 30px;
    padding-top: 100px;
    padding-bottom: 80px;
    align-items: flex-start;
}

.mobile-filter-btn {
    display: none;
    width: calc(100% - 30px);
    margin: 80px 15px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 10;
}

.filter-sidebar {
    flex: 0 0 250px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 90px;
    height: max-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    scrollbar-width: thin;
}

.filter-header-mobile {
    display: none;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-lighter);
}
.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-list li {
    margin-bottom: 10px;
}
.filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.filter-list label:hover {
    color: var(--text-primary);
}
.filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.filter-list input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.filter-list input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 11px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-range input {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.filter-color.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--accent);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-size {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-size.active, .filter-size:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 71, 87, 0.05);
}

.apply-filters-btn {
    width: 100%;
    padding: 12px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}
.apply-filters-btn:hover {
    transform: translateY(-2px);
}

.products-area {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--accent);
}

.products-result-count {
    margin: -10px 0 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.products-page-label {
    min-width: 52px;
    align-self: center;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.page-btn:disabled {
    opacity: .45;
    cursor: default;
}
.products-header h2 {
    font-size: 22px;
    font-weight: 800;
}
.sort-dropdown select {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn.active, .page-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Adjustments for Filter */
@media (max-width: 1024px) {
    .products-page-layout {
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 100px; /* space for bottom nav */
    }
    .mobile-filter-btn {
        display: block;
    }
    .filter-sidebar {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        z-index: 1010;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    .filter-sidebar.active {
        transform: translateY(0);
        visibility: visible;
    }
    .filter-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-light);
    }
    .filter-header-mobile h3 {
        font-size: 20px;
        font-weight: 800;
    }
    .close-filter-btn {
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 24px;
        cursor: pointer;
    }
    .products-header h2 {
        font-size: 18px;
    }
    .products-area {
        width: 100%;
    }
}

/* -------------------------------- */
/* Global Search Modal Styles       */
/* -------------------------------- */
.global-search-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.global-search-modal.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.search-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}
.search-modal-close:hover {
    transform: scale(1.1);
}
.search-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.search-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}
.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
}
.search-input-wrapper input {
    width: 100%;
    padding: 20px 20px 20px 55px;
    border-radius: 30px;
    border: 2px solid var(--border-light);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}
.search-input-wrapper input:focus {
    border-color: var(--accent);
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.search-tag {
    padding: 8px 16px;
    background: var(--hover-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.search-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.search-tag i {
    margin-right: 5px;
    font-size: 12px;
}

.search-results {
    display: flex;
    max-height: min(55vh, 480px);
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item:focus-visible {
    border-color: var(--accent);
}

.search-result-item > img {
    width: 46px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 7px;
    object-fit: cover;
}

.search-result-item > span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.search-result-item strong,
.search-result-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item small,
.search-result-item > b {
    color: var(--text-muted);
    font-size: 12px;
}

.search-results-message {
    padding: 14px 4px;
    color: var(--text-muted);
    font-size: 14px;
}

/* -------------------------------- */
/* Notifications & Messages UI      */
/* -------------------------------- */
.list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}
.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.list-item.unread {
    background: rgba(203, 162, 118, 0.05); /* very light accent bg */
    border-left: 4px solid var(--accent);
}
.list-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    flex-shrink: 0;
}
.list-item-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.list-item-content {
    flex: 1;
}
.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.list-item-header h4 {
    font-size: 15px;
    font-weight: 700;
}
.list-item-time {
    font-size: 12px;
    color: var(--text-muted);
}
.list-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.unread-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

/* -------------------------------- */
/* WooCommerce Style Account Dashboard */
/* -------------------------------- */

.account-dashboard-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

/* Sidebar */
.account-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}
.account-sidebar .account-profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.account-sidebar .profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(203, 162, 118, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
}
.account-sidebar .profile-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
}
.account-sidebar .profile-info p {
    font-size: 13px;
    color: var(--text-muted);
}
.account-nav {
    display: flex;
    flex-direction: column;
}
.account-nav a {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}
.account-nav a:last-child {
    border-bottom: none;
}
.account-nav a i {
    width: 24px;
    font-size: 16px;
    color: var(--text-muted);
    margin-right: 10px;
    transition: color 0.2s;
}
.account-nav a:hover, .account-nav a.active {
    background: transparent;
    color: var(--accent);
}
.account-nav a:hover i, .account-nav a.active i {
    color: var(--accent);
}
.account-nav a.logout {
    color: #ff4757;
}
.account-nav a.logout i {
    color: #ff4757;
}

/* Main Content Area */
.account-content {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 30px;
}

/* Tabs Logic */
.account-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}
.account-tab-content.active {
    display: block;
}

/* Dashboard Tab */
.dashboard-welcome {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}
.dashboard-welcome strong {
    color: var(--text-primary);
}
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.dashboard-stat-card {
    padding: 20px;
    background: var(--hover-bg);
    border-radius: 12px;
    text-align: center;
}
.dashboard-stat-card .stat-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 10px;
}
.dashboard-stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}
.dashboard-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Orders Tab */
.orders-table-wrapper {
    overflow-x: auto;
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.orders-table th {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.order-status.processing { background: rgba(203, 162, 118, 0.1); color: var(--accent); }
.order-status.completed { background: rgba(46, 213, 115, 0.1); color: #2ed573; }
.order-status.cancelled { background: rgba(255, 71, 87, 0.1); color: #ff4757; }
.btn-view-order {
    padding: 6px 15px;
    background: var(--nav-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-view-order:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Addresses Tab */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.address-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}
.address-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.address-card h3 i {
    color: var(--accent);
}
.address-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.edit-address-btn {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.edit-address-btn:hover {
    text-decoration: underline;
}
.address-card.add-new {
    border: 2px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
    min-height: 200px;
}
.address-card.add-new:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(203, 162, 118, 0.05);
}
.address-card.add-new i {
    font-size: 32px;
    margin-bottom: 10px;
}
.address-card.add-new span {
    font-size: 15px;
    font-weight: 600;
}

/* Settings Tab (Form) */
.account-form {
    width: 100%;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}
.account-form h3 {
    margin: 30px 0 20px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}
.btn-save {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-save:hover {
    background: #b5814c;
}

.mobile-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .account-dashboard-wrapper {
        flex-direction: column;
    }
    .account-sidebar {
        width: 100%;
        animation: fadeIn 0.3s ease;
    }
    .address-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Mobile Transition Logic */
    .account-content {
        display: none;
        padding: 20px 0;
        border: none;
        background: transparent;
    }
    .account-dashboard-wrapper.mobile-view-active .account-sidebar {
        display: none;
    }
    .account-dashboard-wrapper.mobile-view-active .account-content {
        display: block;
        width: 100%;
        animation: fadeIn 0.3s ease;
    }
    .mobile-back-btn {
        display: flex;
    }

    /* Responsive Orders Table (Card View) */
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
        display: block;
        width: 100%;
    }
    .orders-table thead {
        display: none;
    }
    .orders-table tr {
        background: var(--card-bg);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
    }
    .orders-table td {
        border-bottom: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 13px;
        text-align: left;
    }
}

/* Storefront checkout and account screens */
.product-brand,
.product-stock {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: .04em;
}

.product-code {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: .03em;
}

.product-detail-layout .product-code {
    margin-top: 7px;
    font-size: 12px;
}

.product-stock.in-stock {
    color: #7dcfa4;
}

.product-stock.out-stock {
    color: #df8c8c;
}

.product-image.product-open,
.product-info .product-open {
    cursor: pointer;
}

.product-image .wishlist-btn {
    z-index: 2;
}

.wishlist-btn.is-favorite {
    color: #ec8290;
}

.product-card .add-to-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
}

#sort-products {
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
}

.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0 30px;
    color: var(--text-secondary);
    font-size: 13px;
}

.store-pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
}

.store-pagination button:disabled {
    opacity: .45;
    cursor: default;
}

.store-message {
    grid-column: 1 / -1;
    padding: 36px 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
}

.store-load-more {
    padding: 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.store-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

.store-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.store-modal {
    position: relative;
    width: min(100%, 920px);
    max-height: min(92vh, 900px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 22px;
    background: var(--bg-color);
    color: var(--text-primary);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .6);
    transform: translateY(10px);
    transition: transform .22s ease;
}

.store-modal-backdrop.active .store-modal {
    transform: translateY(0);
}

.store-modal h2 {
    margin: 0 0 0px;
}

.store-close {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 28%);
    color: #0a0a0a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.product-modal-card {
    width: min(100%, 1120px);
}

.product-modal-card > .store-close {
    position: sticky;
    top: 18px;
    right: auto;
    margin: -18px -16px -38px auto;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 26px;
}

.product-detail-layout .product-slider {
    position: relative;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
}

.product-detail-layout .product-slider-wrapper,
.product-detail-layout .product-slide {
    height: 100%;
}

.product-detail-layout .product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    touch-action: none;
    user-select: none;
    transition: transform .18s ease;
    cursor: zoom-in;
}

.product-detail-layout .product-slide img.is-zoomed {
    cursor: zoom-out;
    transition: none;
}

.product-detail-layout .product-details {
    max-width: none;
    margin: 0;
    padding: 10px 4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta-row h3 {
    min-width: 0;
    margin: 0;
}

.product-detail-layout .product-meta-row .product-code {
    flex: 0 0 auto;
    margin: 0;
    text-align: right;
}

.product-detail-layout .product-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-detail-layout .product-main-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.detail-image-thumbs {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.detail-image-thumbs button {
    width: 48px;
    height: 58px;
    flex: 0 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 7px;
    background: #111;
}

.detail-image-thumbs button.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

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

.variant-disabled {
    opacity: .4;
    text-decoration: line-through;
}

.detail-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    font-weight: 600;
}

.detail-quantity input {
    width: 76px;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-primary);
}

.checkout-modal-card {
    width: min(100%, 1000px);
}

.checkout-layout {
    display: block;
}

.checkout-layout.is-empty {
    display: block;
}

.cart-empty-state[hidden] {
    display: none;
}

.cart-empty-state {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.cart-empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--accent);
    font-size: 22px;
}

.cart-empty-state h2 {
    margin: 0;
    font-size: 19px;
}

.cart-empty-state p {
    max-width: 360px;
    margin: 9px 0 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 66vh;
    overflow-y: auto;
}

.checkout-items.is-empty {
    min-height: 190px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    text-align: center;
}

.checkout-items.is-empty .store-message {
    padding: 0 0 14px;
}

.continue-shopping {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.continue-shopping:hover {
    border-color: var(--accent);
}

.checkout-cart-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--card-bg);
}

.checkout-cart-item > img {
    width: 68px;
    height: 82px;
    flex: 0 0 auto;
    border-radius: 9px;
    object-fit: cover;
}

.checkout-cart-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.checkout-cart-info > strong {
    font-size: 13px;
}

.checkout-cart-info > span {
    color: var(--text-secondary);
    font-size: 12px;
}

.checkout-quantity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.checkout-quantity button,
.remove-cart-item {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.remove-cart-item {
    color: #df8c8c;
}

.checkout-form,
.store-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-form {
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--card-bg);
}

.checkout-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.checkout-stepper li {
    height: 3px;
    border-radius: 999px;
    background: var(--border-light);
}

.checkout-stepper li.active,
.checkout-stepper li.complete {
    background: var(--accent);
}

.checkout-step-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.checkout-step-panel[hidden] {
    display: none;
}

.checkout-step-panel > h3 {
    margin: 0 0 4px;
}

.checkout-form[hidden] {
    display: none;
}

.checkout-form h3 {
    margin-bottom: 2px;
}

.checkout-step-panel > label,
.store-auth-form > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.checkout-step-panel > label span {
    color: var(--text-muted);
    font-weight: 400;
}

.checkout-form input,
.checkout-form textarea,
.store-auth-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-primary);
    font: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.store-auth-form input:focus {
    border-color: var(--accent);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.payment-options legend {
    margin-bottom: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.payment-options label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 13px 15px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.payment-options label:hover:not(:has(input:disabled)) {
    border-color: var(--accent);
}

.payment-options label:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--card-bg));
    box-shadow: 0 0 0 1px var(--accent);
}

.payment-options label:has(input:disabled) {
    opacity: .55;
    cursor: not-allowed;
}

.payment-options input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    accent-color: var(--accent);
    cursor: inherit;
}

.payment-options span,
.payment-options small {
    display: block;
}

.payment-options span {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.payment-options small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.bank-transfer-instructions {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.bank-transfer-instructions strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bank-transfer-instructions p + p {
    margin-top: 5px;
}

.bank-transfer-instructions span {
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: anywhere;
}

[hidden] {
    display: none !important;
    font-size: 11px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    font-weight: 700;
}

.checkout-total small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.checkout-total strong {
    font-size: 20px;
}

.checkout-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.checkout-step-actions > button {
    min-width: 130px;
}

.checkout-step-actions > button:only-child {
    margin-left: auto;
}

#checkout-step-back[hidden] + #checkout-step-next:not([hidden]) {
    margin-left: auto;
}

.checkout-step-back {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 11px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.checkout-submit {
    padding: 14px;
    border: 0;
    border-radius: 11px;
    background: var(--text-primary);
    color: var(--bg-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.checkout-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.checkout-notice,
.orders-intro {
    color: var(--text-muted);
    font-size: 12px;
}

.auth-modal-card {
    width: min(100%, 430px);
}

.google-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.google-login-divider::before,
.google-login-divider::after {
    height: 1px;
    flex: 1;
    background: var(--border-light);
    content: "";
}

.google-login-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.google-login-button:hover:not(:disabled) {
    border-color: var(--text-muted);
}

.google-login-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.google-login-mark {
    color: #4285f4;
    font-size: 20px;
    font-weight: 800;
}

.google-login-hint {
    margin: 8px 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 20px;
}

.auth-tab {
    flex: 1;
    padding: 11px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.store-auth-form[hidden] {
    display: none;
}

.store-error {
    margin-top: 12px;
    color: #f28c8c;
    font-size: 13px;
}

.orders-modal-card {
    width: min(100%, 760px);
}

.account-modal-card {
    width: min(100%, 720px);
    padding: 28px;
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--border-light);
}

.account-profile-avatar,
.account-section-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
}

.account-profile-identity {
    flex: 1 1 auto;
    min-width: 0;
}

.account-profile-identity p,
.account-profile-identity h2 {
    margin: 0;
}

.account-profile-identity p {
    color: var(--text-muted);
    font-size: 12px;
}

.account-profile-identity h2 {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 19px;
}

.account-profile-identity > span {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 12px;
}

.account-logout {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.account-logout:hover {
    border-color: #df8c8c;
    color: #f28c8c;
}

.account-modal-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    padding: 5px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--card-bg);
}

.account-modal-tab {
    flex: 1;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.account-modal-tab.active {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.account-panel {
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--card-bg);
}

.account-panel[hidden] {
    display: none;
}

.account-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.account-panel-heading h3,
.account-panel-heading p {
    margin: 0;
}

.account-panel-heading h3 {
    font-size: 16px;
}

.account-panel-heading p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.account-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--accent);
    font-size: 16px;
}

.account-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-edit-form[hidden] {
    display: none;
}

.account-edit-form label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.account-edit-form input,
.account-edit-form textarea,
.account-edit-form select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
}

.account-edit-form input:focus,
.account-edit-form textarea:focus,
.account-edit-form select:focus {
    border-color: var(--accent);
}

.account-edit-form textarea,
.account-form-message,
.account-edit-form > button {
    grid-column: 1 / -1;
}

.account-address-full-width {
    grid-column: 1 / -1;
}

#account-address-id {
    display: none;
}

.account-address-default {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: center;
    gap: 9px !important;
}

.account-address-default input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
}

.account-edit-form textarea {
    resize: vertical;
}

.account-form-message {
    min-height: 16px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.account-form-message:not(:empty) {
    color: var(--accent);
}

.account-edit-form > button {
    width: 100%;
    padding: 12px;
}

.account-address-list {
    display: grid;
    gap: 10px;
}

.account-address-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.account-address-card {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 11px;
    background: var(--bg-color);
}

.account-address-card.is-default {
    border-color: var(--accent);
}

.account-address-card-heading,
.account-address-label,
.account-address-actions,
.account-address-form-actions {
    display: flex;
    align-items: center;
}

.account-address-card-heading {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.account-address-label {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.account-address-label > i {
    color: var(--accent);
}

.account-address-label > span {
    padding: 3px 7px;
    border-radius: 20px;
    background: var(--hover-bg);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.account-address-actions {
    flex: 0 0 auto;
    gap: 6px;
}

.account-address-actions button {
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.account-address-actions button:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.account-address-actions button[data-address-delete]:hover {
    border-color: #df8c8c;
    color: #f28c8c;
}

.account-address-recipient,
.account-address-phone {
    display: block;
    font-size: 12px;
}

.account-address-phone {
    margin-top: 3px;
    color: var(--text-muted);
}

.account-address-card > p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.account-address-form-actions {
    grid-column: 1 / -1;
    gap: 10px;
}

.account-address-form-actions button {
    flex: 1;
    min-height: 42px;
}

.account-address-cancel {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-add-address {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.account-add-address:hover {
    border-color: var(--accent);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-history-card {
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--card-bg);
}

.order-history-card header,
.order-history-card header > div,
.order-history-card footer,
.order-history-items > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-history-card header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
}

.order-history-card small,
.order-history-card > p {
    color: var(--text-muted);
    font-size: 11px;
}

.order-history-status {
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--hover-bg);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.order-history-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.order-history-items > div {
    justify-content: flex-start;
    font-size: 12px;
}

.order-history-items img {
    width: 40px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.order-history-items span {
    flex: 1;
}

.order-history-card footer {
    align-items: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
}

.order-history-card footer span {
    max-width: 70%;
    color: var(--text-secondary);
}

.order-history-card > p {
    margin-top: 8px;
}

.order-history-card > a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 12px;
}

.store-toast {
    position: fixed;
    z-index: 3000;
    top: 20px;
    left: 50%;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 18px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: .2s ease;
}

.store-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.store-toast.error {
    border-color: #df8c8c;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 200px;
    }

    .store-pagination {
        display: none;
    }

    .store-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .store-modal {
        width: 100%;
        max-height: 96vh;
        max-height: 96dvh;
        padding: 0px;
        border-radius: 20px 20px 0 0;
    }

    .account-modal-card {
        padding: 18px 14px 24px;
    }

    .account-profile-header {
        gap: 11px;
    }

    .account-profile-avatar {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .account-profile-identity h2 {
        font-size: 16px;
    }

    .account-logout {
        padding: 8px;
        font-size: 11px;
    }

    .account-modal-tabs {
        gap: 3px;
        margin: 14px 0;
        padding: 4px;
    }

    .account-modal-tab {
        min-height: 38px;
        padding: 7px 5px;
        font-size: 12px;
    }

    .account-panel {
        padding: 15px 12px;
    }

    .account-edit-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-modal.product-modal-card {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .product-modal-card > .store-close {
        margin: 18px 10px -56px auto;
    }

    .product-detail-layout {
        gap: 10px;
    }

    .product-detail-layout .product-slider {
        width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .product-detail-layout .product-details {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-right: 5px;
        padding-left: 5px;
    }

    .product-detail-layout .product-color-section {
        min-width: 0;
    }

    .product-detail-layout .product-section {
        margin: 8px 0;
    }

    .product-detail-layout .product-title-row,
    .product-detail-layout .product-price,
    .product-detail-layout .detail-quantity,
    .product-detail-layout .product-main-btn {
        margin-right: 5px;
        margin-left: 5px;
    }

    .global-search-modal {
        padding: calc(78px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .search-modal-close {
        top: calc(18px + env(safe-area-inset-top));
        right: 18px;
    }

    .search-input-wrapper {
        margin-bottom: 22px;
    }

    .search-input-wrapper input {
        padding: 16px 16px 16px 48px;
        font-size: 16px;
    }

    .search-results {
        max-height: 45vh;
    }

    .product-modal-card {
        padding-top: 0;
    }

    .product-detail-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-layout {
        gap: 10px;
    }

    .product-detail-layout .product-slider {
        height: 60dvh;
        max-height: none;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        background: var(--card-bg);
    }

    .product-detail-layout .product-slide img {
        object-fit: cover;
    }

    .detail-image-thumbs {
        right: 8px;
        bottom: 8px;
        left: 8px;
        gap: 7px;
        padding: 14px 4px 2px;
    }

    .detail-image-thumbs button {
        width: 46px;
        height: 54px;
        border-color: rgba(255, 255, 255, .72);
    }

    .product-detail-layout .product-details {
        padding: 0 5px 10px;
    }

    .product-detail-layout .product-title-row h2 {
        padding-right: 34px;
        font-size: clamp(19px, 5vw, 23px);
        line-height: 1.1;
    }

    .product-detail-layout .product-section {
        margin: 6px 0;
    }

    .product-detail-layout .size-options {
        gap: 9px;
    }

    .product-detail-layout .product-color-options {
        gap: 7px;
        margin-right: -5px;
        padding-right: 5px;
    }

    .product-detail-layout .product-color-option {
        min-height: 38px;
        padding: 7px 12px;
    }

    .product-detail-layout .size-btn {
        min-height: 42px;
        padding: 9px 14px;
    }

    .product-detail-layout .product-main-btn {
        position: sticky;
        bottom: 0;
        z-index: 2;
        min-height: 48px;
        box-shadow: 0 -10px 20px var(--bg-color);
    }

    .checkout-items {
        max-height: 30vh;
    }

    .checkout-form {
        gap: 10px;
        padding: 16px;
    }

    .checkout-step-actions > button {
        flex: 1;
        min-width: 0;
    }

    .checkout-step-actions .checkout-submit {
        position: sticky;
        bottom: 0;
        z-index: 2;
        box-shadow: 0 -8px 18px var(--card-bg);
    }

    .store-toast {
        top: 12px;
        max-width: calc(100vw - 24px);
    }
}