/* ===== PolancoWears Global Styles — Black & White ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --charcoal: #262626;
    --gold: #c9a84c;
    --radius: 8px;
    --transition: 0.3s ease;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Push footer to bottom */
.catalog-section,
.hero-construction,
main.content-section,
.product-detail-wrapper,
.verify-container {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Disable the blue highlight on all clickable elements */
a,
button,
input,
textarea,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

a:active,
button:active {
    opacity: 0.7;
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

a:hover {
    color: var(--gray-600);
}

/* ===== Navigation ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar .logo span {
    color: var(--gray-400);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== Hero / Under Construction ===== */
.hero-construction {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-construction::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

.hero-construction::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-15px) rotate(1deg) scale(1.02);
    }

    66% {
        transform: translateY(-8px) rotate(-1deg) scale(0.99);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

.hero-construction .content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-construction .badge {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-construction h1 {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-construction h1 span {
    color: var(--gray-400);
}

.hero-construction p {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
    font-weight: 300;
}

.hero-construction .divider {
    width: 80px;
    height: 1px;
    background: var(--gray-600);
    margin: 0 auto 2rem;
}

.hero-construction .contact-note {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.hero-construction .contact-note a {
    color: var(--white);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-600);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.hero-construction .contact-note a:hover {
    border-bottom-color: var(--white);
}

/* ===== Page Header ===== */
.page-header {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--white);
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
    position: relative;
}

.page-header .accent-line {
    width: 60px;
    height: 1px;
    background: var(--gray-600);
    margin: 1.5rem auto 0;
    position: relative;
}

/* ===== Content Section ===== */
.content-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin: 3rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin: 1.8rem 0 0.6rem;
}

.content-section p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.content-section ul,
.content-section ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.content-section li::marker {
    color: var(--black);
}

.content-section strong {
    color: var(--black);
    font-weight: 600;
}

.content-section .highlight-box {
    background: var(--gray-50);
    border-left: 3px solid var(--black);
    padding: 1.4rem 1.6rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.content-section .highlight-box p {
    color: var(--black);
    margin-bottom: 0;
    font-weight: 500;
}

.content-section .email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--black);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.content-section .email-link:hover {
    border-bottom-color: var(--black);
}

/* ===== About Page Specific ===== */
.about-intro {
    font-size: 1.15rem !important;
    color: var(--gray-700) !important;
    line-height: 1.9;
    margin-bottom: 2rem !important;
    font-weight: 400 !important;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--black);
}

.value-card:hover::before {
    opacity: 1;
}

.value-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    display: inline-block;
    background: var(--gray-100);
    color: var(--black);
}

.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
    font-weight: 300;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--gray-500);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.85rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-800);
}

.footer .logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer .logo span {
    color: var(--gray-400);
}

.footer p {
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.footer a {
    color: var(--white);
}

.footer .footer-links {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer .footer-links a {
    color: var(--gray-500);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-weight: 400;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--black);
        padding: 1rem 5%;
        gap: 0.8rem;
        border-top: 1px solid var(--gray-800);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-construction h1 {
        font-size: 2.4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 1.5rem 4rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 2rem 1.5rem 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        padding: 1.5rem 1rem !important;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }
}

/* ===== Cart Badge ===== */
.nav-cart {
    position: relative;
}

.cart-count {
    display: none;
    background: var(--white);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===== Product Catalog Grid ===== */

.catalog-header {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.catalog-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.catalog-header p {
    color: var(--gray-400);
    font-size: 1.05rem;
    font-weight: 300;
}

.catalog-header .accent-line {
    width: 60px;
    height: 1px;
    background: var(--gray-600);
    margin: 1.5rem auto 0;
}

/* ===== Shop Two-Column Layout ===== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-panel {
    border-right: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: 1.5rem;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

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

.filter-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}

/* Search input */
.search-input-wrap {
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.2rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.2s;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--black);
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Category chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.filter-chip:hover {
    border-color: var(--black);
    color: var(--black);
}

.filter-chip.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

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

.price-range-inputs input {
    flex: 1;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 0;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: var(--black);
}

.price-sep {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.btn-apply-price {
    width: 100%;
    padding: 0.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.btn-apply-price:hover {
    background: var(--gray-800);
}

.btn-clear-filters {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    border-color: var(--black);
    color: var(--black);
}

/* Shop products area */
.shop-products {
    min-height: 400px;
}

.shop-results-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-100);
}

.btn-clear-search {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--gray-500);
    font-family: var(--font-body);
}

.btn-clear-search:hover {
    border-color: var(--black);
    color: var(--black);
}

/* Filter chevron rotation */
.filter-chevron {
    transition: transform 0.3s ease;
}

.filter-chevron.rotated {
    transform: rotate(180deg);
}

/* ===== Responsive: Shop Layout ===== */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: relative;
        top: auto;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 0;
    }

    .filter-toggle-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1.2rem;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--gray-700);
        background: var(--gray-50);
    }

    .filter-toggle-mobile span {
        flex: 1;
    }

    .filter-body {
        display: none;
        padding: 0 1.2rem 1.2rem;
    }

    .filter-body.open {
        display: flex;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-card {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--black);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

/* Express delivery badge — upper-left corner of product card */
.express-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.4rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Custom tooltips */
[data-tooltip]:not(.express-badge) {
    position: relative;
}

[data-tooltip] {
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 50;
    font-family: var(--font-body, system-ui, sans-serif);
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border: 5px solid transparent;
    border-bottom-color: #111;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Rating overlay on product image */
.product-image-rating {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 0.7rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.product-image-rating .stars {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.product-image-rating .rating-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.product-info {
    padding: 0.8rem 1rem;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

/* SVG heart button on product card */
.wishlist-heart-btn {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    z-index: 5;
    transition: transform 0.25s ease;
}

.wishlist-heart-btn .heart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--black);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.25s ease;
}

.wishlist-heart-btn:hover .heart-icon,
.wishlist-heart-btn.active .heart-icon {
    fill: var(--black);
    stroke: var(--black);
    transform: scale(1.15);
}

.wishlist-heart-btn.active {
    animation: heartPop 0.3s ease;
}

.empty-catalog {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-catalog .empty-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}

.empty-catalog h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.empty-catalog p {
    color: var(--gray-500);
    font-weight: 300;
}

/* ===== Product Detail ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.product-gallery .main-image {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 1rem;
}

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

.thumbnail-row {
    display: flex;
    gap: 0.8rem;
}

.thumbnail-row .thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    opacity: 0.6;
}

.thumbnail-row .thumb.active,
.thumbnail-row .thumb:hover {
    border-color: var(--black);
    opacity: 1;
}

.product-info-detail h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.detail-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.variation-selector {
    margin-bottom: 1.5rem;
}

.variation-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.6rem;
}

.variation-options {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.variation-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.variation-btn.active,
.variation-btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.6rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.qty-btn:hover {
    border-color: var(--black);
    background: var(--gray-100);
}

#qty-display {
    font-size: 1rem;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: var(--gray-800);
}

.cart-feedback {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.cart-feedback.success {
    color: #16a34a;
}

.cart-feedback.error {
    color: #dc2626;
}

/* ===== Review Section ===== */
.review-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    text-align: left;
}

/* Guest Review Collapsible */
.guest-review-toggle {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
    text-align: left;
    display: inline-block;
}

.guest-review-toggle:hover {
    color: var(--gray-600);
}

.guest-review-toggle.open {
    margin-bottom: 1rem;
}

.guest-review-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.guest-review-form.open {
    max-height: 600px;
}

.guest-review-form .form-group {
    margin-bottom: 1rem;
}

.guest-review-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.guest-review-form .form-group input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Recently Viewed */
.recently-viewed-section {
    padding-top: 0 !important;
}

.recently-viewed-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 4rem;
    margin-bottom: 0.5rem;
    margin-left: 2rem;
}



@media (max-width: 768px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== Related Products ===== */
.related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    text-align: left;
}

.related-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: none !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.review-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.review-note {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.review-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.anon-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
    user-select: none;
}

.anon-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--black);
    cursor: pointer;
}

.anon-toggle span {
    transition: color 0.2s;
}

.anon-toggle:hover span {
    color: var(--black);
}

.btn-submit-review {
    padding: 0.7rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
}

/* ===== Cart Page ===== */
.cart-page {
    max-width: 1100px;
}

/* Two-column cart layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-300);
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cart-variation {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.cart-item-price {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-total {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

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

/* Mobile cart fix */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-item {
        gap: 0.7rem;
    }

    .cart-item-thumb {
        width: 56px;
        height: 56px;
    }

    .cart-item-info h4 {
        font-size: 0.9rem;
    }

    .cart-item-total {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .cart-item-controls {
        gap: 0.3rem;
    }
}



/* ===== Checkout Summary ===== */
.checkout-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.checkout-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--gray-300);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
}

/* ===== Checkout Form ===== */
.checkout-form h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.delivery-timing {
    background: var(--gray-50);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.timing-same-day {
    color: #16a34a;
}

.timing-next-day {
    color: var(--gray-700);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: var(--gray-800);
}

.btn-checkout:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.checkout-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    min-height: 1.4em;
}

/* ===== Order Confirmation ===== */
.confirmation-card {
    text-align: center;
    padding: 3rem 0;
}

.confirmation-card .conf-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-400);
}

.confirmation-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border: none;
}

.confirmation-card p {
    margin-bottom: 0.5rem;
}

.conf-note {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-back-shop {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-back-shop:hover {
    background: var(--gray-800);
    color: var(--white);
}

/* ===== Auth Pages ===== */
.auth-page {
    max-width: 420px;
}

@media (min-width: 768px) {
    .auth-page {
        max-width: 500px;
        background: var(--white);
        padding: 3.5rem 2.5rem;
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.04);
        margin: 4rem auto;
    }
    
    .auth-form-grid {
        display: block;
    }
}

.auth-form {
    padding: 0;
    
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-body);
    margin-top: 0.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    background: var(--gray-800);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-300);
}

.auth-forgot {
    text-align: right;
    margin-bottom: 1rem;
}

.auth-forgot a {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot a:hover {
    color: var(--black);
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== Admin Dashboard ===== */
.admin-dashboard h2 {
    margin-top: 2.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

.admin-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.admin-alert h3 {
    color: #dc2626;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.admin-alert p {
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    background: var(--gray-100);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background: #fef9c3;
    color: #a16207;
}

.status-expired {
    background: var(--gray-100);
    color: var(--gray-500);
}

.status-delivered {
    background: #dbeafe;
    color: #2563eb;
}

.status-paid---unfulfilled {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Zone Description ─────────────────────────────── */
.zone-description {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50, #f9fafb);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.zone-description:empty {
    display: none;
}

/* ─── Order Confirmation Enhanced ─────────────────── */
.conf-ref {
    margin-bottom: 1.5rem;
}

.conf-items {
    text-align: left;
    margin: 1.5rem 0;
}

.conf-items h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.conf-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.conf-item-name {
    flex: 1;
}

.conf-item-name small {
    color: var(--gray-500);
}

.conf-item-qty {
    width: 50px;
    text-align: center;
    color: var(--gray-500);
}

.conf-item-price {
    width: 100px;
    text-align: right;
    font-weight: 600;
}

.conf-breakdown {
    text-align: left;
    margin: 1.5rem 0;
}

.conf-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.conf-total {
    border-top: 2px solid var(--charcoal);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.conf-delivery {
    text-align: left;
    margin: 1.5rem 0;
}

.conf-delivery h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.conf-delivery p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0.3rem 0;
}

.conf-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

/* Custom Dropdown for Delivery Zones */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}
.custom-dropdown {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    user-select: none;
}
.dropdown-selected {
    padding: 1rem;
    color: var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-selected::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--gray-500);
}
.custom-dropdown.open .dropdown-selected::after {
    content: '▲';
}
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.custom-dropdown.open .dropdown-options {
    display: block;
}
.dropdown-option {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s;
    line-height: 1.4;
}
.dropdown-option:last-child {
    border-bottom: none;
}
.dropdown-option:hover {
    background: var(--gray-100);
}
.dropdown-option strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--black);
}
.dropdown-option span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}


/* ─── Profile Page ────────────────────────────────── */
.profile-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.profile-tab {
    padding: 0.7rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.profile-tab:hover {
    color: var(--black);
}

.profile-tab.active {
    color: var(--black);
    font-weight: 600;
    border-bottom-color: var(--black);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Settings */
.settings-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .settings-section {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.settings-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.settings-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.settings-msg {
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.settings-msg.success {
    color: #065f46;
}

.settings-msg.error {
    color: #b91c1c;
}

/* Devices List */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.device-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.device-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
}

.device-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.device-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.btn-revoke {
    background: none;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-revoke:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Profile Avatar */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.profile-hero-info h2 {
    margin: 0;
    font-size: 1.1rem;
}

.profile-email {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

.profile-card h3 {
    margin-bottom: 0.75rem;
}

.profile-info p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--gray-500);
}

.orders-section h2 {
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.empty-state p {
    margin-bottom: 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.order-card-header {
    padding: 1rem 1.25rem;
    background: var(--gray-50, #f9fafb);
    border-bottom: 1px solid var(--gray-200);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-ref {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.order-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.order-card-statuses {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.order-card-body {
    padding: 0.75rem 1.25rem;
}

.order-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}

.order-card-row + .order-card-row {
    border-top: 1px solid var(--gray-100);
}

.order-label {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 400;
}

.order-value {
    font-size: 0.82rem;
    color: var(--charcoal);
}

.order-total {
    font-weight: 700;
    font-size: 0.9rem;
}

.order-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}


/* ─── Order Detail Page ───────────────────────────── */
.order-status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    background: var(--gray-50, #f9fafb);
    flex-wrap: wrap;
}

.order-date-full {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.status-bg-paid {
    background: #ecfdf5;
}

.status-bg-pending {
    background: #fffbeb;
}

.status-bg-expired {
    background: var(--gray-100);
}

.status-bg-delivered {
    background: #dbeafe;
}

.status-bg-paid---unfulfilled {
    background: #fef2f2;
}

.detail-section {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

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

.detail-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.detail-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gold);
    font-size: 1.5rem;
}

.detail-item-info {
    flex: 1;
    min-width: 120px;
}

.detail-item-name {
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    display: block;
}

.detail-item-name:hover {
    color: var(--gold);
}

.detail-item-variation {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: block;
}

.detail-item-qty {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: block;
}

.detail-item-price {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.detail-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}



.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.detail-total {
    border-top: 2px solid var(--charcoal);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.05rem;
}

.detail-delivery p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0.3rem 0;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ─── Review Components ───────────────────────────── */
.btn-review {
    background: var(--gold);
    color: var(--charcoal);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-review:hover {
    background: #d4a84a;
}

.reviewed-badge {
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-card h3 {
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star-rating .star {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.star-rating .star.active {
    color: var(--gold);
}

.star-rating .star:hover {
    color: var(--gold);
}

.modal-card textarea {
    width: 100%;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.modal-card textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.review-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    min-height: 1.2rem;
}

/* ─── Responsive tweaks for order pages ───────────── */
@media (max-width: 600px) {
    .detail-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-item-price {
        text-align: left;
    }

    .conf-item-row {
        flex-wrap: wrap;
    }
}

/* ===== Fixed Button Colors (replace undefined fallbacks) ===== */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
    font-family: var(--font-body);
}

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

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* ===== Luxury Hint Text ===== */
.luxury-hint {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0.5rem 0 1.5rem;
}

.page-header .luxury-hint {
    color: var(--gray-500);
    margin: 1rem auto 0;
    max-width: 420px;
    font-size: 0.95rem;
}

/* ===== Product Card Rating (old — now on image overlay, see .product-image-rating) ===== */
/* Kept for backward compat if used elsewhere */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.product-rating .stars {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.product-rating .rating-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* ===== Product Detail Wishlist & Rating ===== */
.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-wishlist-heart {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-300);
    transition: all 0.25s ease;
}

.detail-wishlist-heart:hover,
.detail-wishlist-heart.active {
    color: #e74c6f;
    border-color: #e74c6f;
    transform: scale(1.1);
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.detail-rating .stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
}

.detail-rating .rating-text {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Reviews Section (Product Page) ===== */
.reviews-list-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    text-align: left;
}

.reviews-list-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gray-200);
}

.review-card {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.review-card:last-child {
    border-bottom: none;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}

.review-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.review-stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.review-comment {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    font-weight: 300;
}

.no-reviews {
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 1rem 0;
    font-style: italic;
}

/* ===== Profile Page Redesign ===== */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.profile-hero-info h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    border: none;
    padding: 0;
    color: var(--black);
}

.profile-hero-info .profile-email {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 300;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ─── Profile Page Desktop Layout ─────────────────── */
@media (min-width: 768px) {
    .page-profile .content-section {
        max-width: 1100px;
    }
.express-badge {
    font-size: 0.5rem;
}
    .orders-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .notif-list {
        max-width: 700px;
    }
}

/* ===== Bottom Navigation Bar ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    z-index: 200;
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.3rem 0.8rem;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--white);
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    background: var(--white);
    color: var(--black);
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== Desktop Nav Icons ===== */
.nav-icon {
    display: none;
}

/* ===== Wishlist Page ===== */
.wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.wishlist-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.wishlist-empty h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.wishlist-empty p {
    color: var(--gray-500);
    font-weight: 300;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .bottom-nav {
        display: block;
    }

    .footer {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }

    /* Hide inline nav links on tablet, keep toggle */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
    }
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 1025px) {
    .nav-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        vertical-align: -1px;
        margin-right: 4px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bottom-nav {
        display: none !important;
    }
}

/* ===== Mobile specific overrides ===== */
@media (max-width: 768px) {
    .navbar .logo {
        font-size: 1.5rem;
    }

    .product-info {
        padding: 0.6rem 0.7rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .wishlist-heart-btn {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .wishlist-heart-btn .heart-icon {
        width: 18px;
        height: 18px;
    }

    .profile-hero {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-info h2 {
        font-size: 1.2rem;
    }
}

/* ===== Gear Spinner ===== */
.gear-spinner {
    width: 20px;
    height: 20px;
    animation: gear-spin 2s linear infinite;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes gear-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Toast Notifications ===== */
#toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    width: 92%;
    max-width: 420px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-body);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-100%);
    animation: none;
    line-height: 1.4;
}

.toast.toast-visible {
    animation: toast-slide-down 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.toast.toast-leaving {
    animation: toast-slide-up 0.3s cubic-bezier(0.55, 0.05, 0.68, 0.53) forwards;
}

/* Types */
.toast-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.toast-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.toast-info {
    background: #f0f4ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast-msg {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    line-height: 1;
    padding: 0 0.1rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile: slide down from top centre */
@keyframes toast-slide-down {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-slide-up {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-100%); }
}

/* Desktop (≥768px): top-right, slide in from right */
@media (min-width: 768px) {
    #toast-container {
        left: auto;
        right: 1.5rem;
        transform: none;
        max-width: 380px;
        width: auto;
        min-width: 280px;
    }

    .toast.toast-visible {
        animation: toast-slide-in-right 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    }

    .toast.toast-leaving {
        animation: toast-slide-out-right 0.3s cubic-bezier(0.55, 0.05, 0.68, 0.53) forwards;
    }

    @keyframes toast-slide-in-right {
        from { opacity: 0; transform: translateX(100%); }
        to   { opacity: 1; transform: translateX(0); }
    }

    @keyframes toast-slide-out-right {
        from { opacity: 1; transform: translateX(0); }
        to   { opacity: 0; transform: translateX(100%); }
    }
}

/* ===== Notification System ===== */

/* Navbar badge (desktop "My Account") */
.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 4px;
    padding: 0 4px;
    line-height: 1;
}

/* Tab badge (inside profile tab button) */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 4px;
    padding: 0 4px;
    line-height: 1;
}

/* Notification header */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notif-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}

.btn-mark-all {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-mark-all:hover {
    background: var(--gray-50, #f9fafb);
    color: var(--charcoal);
    border-color: var(--charcoal);
}

/* Notification list */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.notif-card:last-child {
    border-bottom: none;
}

.notif-card:hover {
    background: var(--gray-50, #f9fafb);
}

.notif-unread {
    background: #fafafa;
}

.notif-read {
    opacity: 0.7;
}

.notif-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
}

.notif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--charcoal);
}

.notif-unread .notif-title {
    font-weight: 700;
}

.notif-message {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.4;
    font-weight: 300;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 0.15rem;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.notif-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.notif-empty p:first-child {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* ===== Out of Stock States ===== */

/* Product detail page — fade gallery + info */
.product-oos .product-gallery {
    opacity: 0.45;
    pointer-events: none;
}

.product-oos .product-info-detail {
    opacity: 0.85;
}

.product-oos .quantity-selector,
.product-oos .variation-selector {
    opacity: 0.35;
    pointer-events: none;
}

/* OOS overlay on main image */
.main-image {
    position: relative;
}

.oos-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

/* Disabled Add to Cart button */
.btn-oos {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--gray-400) !important;
    color: #fff !important;
    pointer-events: none;
}

/* Recently Viewed / Grid card — faded out of stock */
.product-card-oos {
    opacity: 0.45;
    position: relative;
}

.product-card-oos:hover {
    opacity: 0.6;
}

.oos-card-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}
/* ===== Feed Loader (Infinite Scroll) ===== */
.feed-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1rem;
    width: 100%;
}

.feed-loader p {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feed-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: feed-spin 1s linear infinite;
}

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

.feed-end-message {
    text-align: center;
    padding: 3rem 0;
    width: 100%;
}

.feed-end-message p {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}
