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

:root {
    --primary: #1a1a1a;
    --accent: #b5a596;
    --accent-dark: #9c8b7a;
    --light-bg: #faf8f5;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --border: #e6e1d8;
    --white: #ffffff;
    --danger: #d64545;
    --success: #3a8a4c;
}
.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}
.header-search-input {
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    width: 160px;
    outline: none;
}
.stock-dot-backorder { background: var(--accent-dark); }

.header-search-btn {
    border: none;
    background: var(--light-bg);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-search { display: none; }
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

.font-serif { font-family: 'Fraunces', Georgia, serif; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.logo span { color: var(--accent-dark); }

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.header-actions a { font-weight: 500; }
.header-actions a:hover { color: var(--accent-dark); }

.hi-user { color: var(--text-muted); }

.cart-icon {
    position: relative;
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-dark);
    color: white;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    min-height: 480px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text { flex: 1; max-width: 520px; }

.hero-text span.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.15;
    margin: 16px 0;
    color: var(--primary);
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 13px 30px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-image img {
    max-height: 420px;
    border-radius: 12px;
}

/* ---------- Section Titles ---------- */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title span.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-top: 8px;
}

/* ---------- Categories Grid ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 260px;
    background: var(--light-bg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.category-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    padding: 24px 18px 16px;
}

.category-overlay h3 { font-size: 18px; font-weight: 600; }
.category-overlay p { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* ---------- Product Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

/* ---------- Product Card â€” Boutique Redesign ---------- */
.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: visible;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-thumb {
    height: 280px;
    background: #f2ede3;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.product-card:hover .product-thumb img {
    transform: scale(1.045);
}

/* Badge â€” small text label, not a pill */
.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 5px 0;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: none;
    border-bottom: 1.5px solid var(--text-dark);
}

.badge.new {
    color: #5a6b4d;
    border-bottom-color: #5a6b4d;
}

/* Info block */
.product-info {
    padding: 20px 2px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---------- Product Card — Refined Typography Pass ---------- */
.product-info .brand {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-info h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 450;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 4px 0 12px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.1px;
}

.price-current {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.1px;
}

.price-old {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.add-cart-btn {
    width: 100%;
    padding: 11px 0 0;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.1px;
    text-transform: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-align: left;
    position: relative;
}



.add-cart-btn:hover {
    color: var(--text-dark);
    border-top-color: var(--text-dark);
}

.add-cart-btn:active {
    opacity: 0.55;
}
.add-cart-btn:hover { background: var(--accent-dark); }

/* ---------- Perks / Trust bar ---------- */
.perks {
    background: var(--light-bg);
    padding: 40px 0;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.perk-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--primary); }
.perk-item p { font-size: 13px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary);
    color: #d8d8e0;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.logo-img {
    height: 35px;
    width: auto;
}

.footer-col h3 { color: white; margin-bottom: 12px; font-size: 20px; }
.footer-col h3 span { color: var(--accent); }
.footer-col h4 { color: white; margin-bottom: 14px; font-size: 15px; }
.footer-col p { font-size: 13px; color: #b4b4c4; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #b4b4c4; }
.footer-col ul li a:hover { color: var(--accent); }



.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 18px 0;
    font-size: 12px;
    color: #9999ac;
}
/* ---------- Auth Pages — Login / Register ---------- */
.auth-page {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: stretch;
}

.auth-brand-panel {
    flex: 1;
    background: linear-gradient(150deg, var(--primary) 0%, #2a2a2a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(181,165,150,0.15);
    top: -100px;
    right: -100px;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(181,165,150,0.1);
    bottom: -60px;
    left: -60px;
}

.auth-brand-content { position: relative; z-index: 1; max-width: 380px; }

.auth-brand-logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 24px;
}
.auth-brand-logo span { color: var(--accent); }

.auth-brand-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 16px;
}

.auth-brand-content p {
    color: rgba(255,255,255,0.7);
    font-size: 14.5px;
    line-height: 1.8;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.auth-container {
    width: 100%;
    max-width: 380px;
}

.auth-container h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-container input {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}
.auth-container input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-container button[type="submit"] {
    padding: 13px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}
.auth-container button[type="submit"]:hover { background: var(--accent-dark); }

.auth-container p {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.auth-container p a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.error-msg {
    background: #fdecec;
    color: var(--danger);
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.success-msg {
    background: #e6f5e9;
    color: var(--success);
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.success-msg a { color: var(--success); font-weight: 600; text-decoration: underline; }

.auth-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel { padding: 50px 24px; }
}

@media (max-width: 480px) {
    .auth-form-panel { padding: 40px 20px; }
    .auth-container h2 { font-size: 22px; }
    .auth-form-row-2 { grid-template-columns: 1fr; }
    .perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}
}

/* ================= POLISH PASS ================= */

/* ---------- Hero Redesign ---------- */
.hero {
    background: linear-gradient(135deg, #faf7f2 0%, #f0e9dd 100%);
    min-height: 540px;
    position: relative;
}

.hero-text .eyebrow {
    display: inline-block;
    background: rgba(212,163,115,0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-image img {
    filter: drop-shadow(0 25px 40px rgba(26,26,46,0.15));
}

/* ---------- Section spacing rhythm ---------- */
.section-title h2 {
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* ---------- Product Card Redesign ---------- */
/* ---------- Product Card Redesign v2 ---------- */
.product-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(26,26,46,0.12);
    transform: translateY(-6px);
    border-color: transparent;
}

.product-thumb {
    height: 250px;
    background: linear-gradient(135deg, #f7f4ef 0%, #f0ebe0 100%);
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Badge */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 6px 13px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    background: var(--danger);
}

.badge.new {
    background: var(--success);
}

/* Quick-add on hover (image overlay) */
.product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.15), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .product-thumb::after { opacity: 1; }

/* Info block */
.product-info {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info .brand {
    font-size: 11px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0 0 12px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 14px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
}

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

.add-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-cart-btn:hover {
    background: var(--accent-dark);
}

.add-cart-btn:active {
    transform: scale(0.97);
}

.add-cart-btn::before {
    content: 'ðŸ›’';
    font-size: 13px;
}

/* ---------- Category Card Redesign ---------- */
.category-card {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(26,26,46,0.06);
}

.category-overlay h3 {
    font-size: 19px;
    font-weight: 700;
}

/* ---------- Perks bar redesign ---------- */
.perks {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.perk-item {
    padding: 10px;
}

.perk-item h4 {
    font-size: 16px;
}

/* ---------- Buttons refinement ---------- */
.btn {
    border-radius: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(26,26,46,0.15);
}

.btn:active { transform: scale(0.98); }

.btn-outline { box-shadow: none; }

/* ---------- Section title underline accent ---------- */
.section-title {
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title[style*="text-align:left"] h2::after {
    margin: 12px 0 0;
}

/* ================================================================
   POLISH PASS 2 â€” Product Page, Cart, Checkout, Mobile, Cards
================================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }

/* ---------- Product Detail Page ---------- */
.pdp-section { padding: 40px 0 80px; }

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pdp-gallery { position: sticky; top: 100px; }

.pdp-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--light-bg);
    border: 1px solid var(--border);
}

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

.pdp-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

.pdp-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pdp-thumb {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border);
    opacity: 0.7;
    transition: 0.2s;
}
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.active { border-color: var(--accent); opacity: 1; }

.pdp-info { padding-top: 6px; }

.pdp-brand {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.pdp-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -0.3px;
}

.pdp-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pdp-price-current { font-size: 28px; font-weight: 800; color: var(--primary); }
.pdp-price-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.pdp-save-tag {
    background: #e6f5e9;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.pdp-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 15px;
}

.pdp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.stock-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stock-dot-in { background: var(--success); }
.stock-dot-out { background: var(--danger); }
.stock-urgent { color: var(--danger); font-weight: 600; }

.pdp-buy-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    padding: 14px 18px;
    border: none;
    background: var(--light-bg);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.15s;
}
.qty-btn:hover { background: var(--border); }

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty-selector-sm .qty-btn { padding: 8px 12px; font-size: 15px; }
.qty-selector-sm .qty-input { width: 40px; padding: 8px 0; }

.btn-primary { background: var(--primary); }
.btn-lg { padding: 15px 34px; font-size: 15px; flex: 1; min-width: 200px; }
.btn-block { width: 100%; text-align: center; }

.pdp-add-msg { font-size: 14px; font-weight: 600; min-height: 20px; margin-bottom: 10px; }

.pdp-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pdp-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.related-title { margin-top: 80px; }
.section-title.left-align { text-align: left; }
.section-title.left-align h2::after { margin: 12px 0 0; }

/* ---------- Cart Page ---------- */
.cart-section { padding: 40px 0 80px; }

.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }

.shipping-nudge {
    background: #fdf6ee;
    border: 1px solid #f0dfc4;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.shipping-nudge-success {
    background: #e6f5e9;
    border-color: #b8e0c0;
    color: var(--success);
    font-weight: 600;
    text-align: center;
}
.shipping-nudge-bar {
    height: 6px;
    background: #f0e5d4;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}
.shipping-nudge-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.3s;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: white;
    transition: box-shadow 0.2s;
}
.cart-item:hover { box-shadow: 0 4px 14px rgba(26,26,46,0.06); }

.cart-item-img { flex-shrink: 0; }
.cart-item-img img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }

.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; color: var(--text-dark); font-size: 15px; display: block; margin-bottom: 6px; }
.cart-item-unit-price { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }

.cart-item-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-line-total { font-weight: 700; color: var(--primary); font-size: 15px; min-width: 90px; text-align: right; }

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.cart-remove-btn:hover { color: var(--danger); }

.cart-summary {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
    background: white;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { margin-bottom: 20px; color: var(--primary); font-size: 17px; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-muted { color: var(--text-muted); }
.summary-total { font-weight: 800; font-size: 18px; margin: 16px 0; color: var(--primary); }

.continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.continue-shopping-link:hover { color: var(--accent-dark); }

/* ---------- Checkout Page ---------- */
.checkout-section { padding: 40px 0 80px; }

.checkout-error {
    background: #fdecec;
    color: var(--danger);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.guest-notice {
    background: var(--light-bg);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}
.guest-notice a { color: var(--accent-dark); font-weight: 600; }

.checkout-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    background: white;
}
.checkout-card h3 { margin-bottom: 18px; color: var(--primary); font-size: 16px; }

.checkout-card input[type="text"],
.checkout-card input[type="email"],
.checkout-card input[type="password"],
.checkout-card textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-family: inherit;
}
.checkout-card input:focus, .checkout-card textarea:focus { outline: none; border-color: var(--accent); }
.checkout-card textarea { resize: vertical; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.15s;
}
.payment-option:has(input:checked) { border-color: var(--accent); background: #fdf6ee; }
.payment-option-label { font-size: 14px; font-weight: 500; }

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

.checkout-items-list { margin-bottom: 16px; max-height: 220px; overflow-y: auto; }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; color: var(--text-dark); }
.qty-tag { color: var(--text-muted); }

/* ---------- Header Search Refinement ---------- */
.header-search-input:focus { outline: none; }

/* ---------- MOBILE RESPONSIVENESS ---------- */
@media (max-width: 992px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
    .pdp-gallery { position: static; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .sticky-summary { position: static; }
}

@media (max-width: 768px) {
    .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    padding: 80px 24px 24px;
}

.main-nav.show-mobile { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }

    .mobile-toggle { display: block; }
    .header-search { display: none; }
    .hi-user { display: none; }

    .hero .container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 30px; }
    .hero-image img { max-height: 260px; }

    .pdp-title { font-size: 24px; }
    .pdp-price-current { font-size: 22px; }
    .pdp-buy-row { flex-direction: column; }
    .btn-lg { width: 100%; }

    .cart-item { flex-wrap: wrap; }
    .cart-item-mobile-footer { width: 100%; margin-top: 10px; }

    .form-grid-2 { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-thumb { height: 150px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 13px; min-height: auto; }
    .price-current { font-size: 15px; }
    .hero-text h1 { font-size: 26px; }
    .section { padding: 44px 0; }
    .section-title h2 { font-size: 24px; }
    .pdp-thumbs { gap: 8px; }
    .pdp-thumb { width: 56px; height: 56px; }
}

/* ---------- Overlay behind mobile nav ---------- */
.mobile-toggle { z-index: 201; position: relative; }

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

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
    margin-top: 1px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(26,26,46,0.12);
    min-width: 200px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 150;
}

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

.nav-dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--light-bg);
    color: var(--accent-dark);
}

.nav-dropdown-empty {
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
}

.nav-dropdown-empty:hover {
    background: none;
    color: var(--text-muted);
}

/* Small caret pointing up to the trigger */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

/* ---------- Mobile: dropdown becomes inline expandable list ---------- */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        display: none;
        width: 100%;
        margin-top: 4px;
        padding-left: 16px;
    }

    .nav-dropdown.mobile-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-trigger {
        justify-content: space-between;
    }
}

/* ---------- Order Progress Bar ---------- */
.order-progress-bar {
    display: flex;
    align-items: flex-start;
    padding: 30px 10px 10px;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.progress-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    transition: 0.3s;
}

.progress-step.is-done .progress-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step.is-current .progress-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 5px rgba(26,26,46,0.12);
}

.progress-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 90px;
}

.progress-step.is-done .progress-label,
.progress-step.is-current .progress-label {
    color: var(--text-dark);
}

.progress-connector {
    position: absolute;
    top: 17px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--border);
    z-index: 1;
    transition: background 0.3s;
}

.progress-connector.is-done {
    background: var(--success);
}

/* Cancelled banner */
.order-cancelled-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fdecec;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
}

.cancelled-icon {
    width: 36px;
    height: 36px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.order-cancelled-banner strong { color: var(--danger); display: block; margin-bottom: 4px; }
.order-cancelled-banner p { font-size: 13px; color: var(--text-muted); margin: 0; }

@media (max-width: 600px) {
    .progress-label { font-size: 11px; max-width: 70px; }
    .progress-dot { width: 28px; height: 28px; font-size: 11px; }
    .progress-connector { top: 14px; }
}

.load-more-spinner {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-dot {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-dark);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

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

.end-of-results {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ---------- Online Payment / QR Upload ---------- */
.online-payment-box {
    margin-top: 4px;
    padding: 18px;
    background: var(--light-bg);
    border-radius: 10px;
    border: 1px dashed var(--border);
}

.online-payment-instructions {
    font-size: 13.5px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.qr-code-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

.screenshot-upload-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required-star { color: var(--danger); }

#paymentScreenshot {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    margin-bottom: 10px;
}

.screenshot-preview {
    display: none;
    margin-top: 10px;
}

.screenshot-preview img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.field-hint-checkout {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- My Account ---------- */
.account-summary-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 24px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.account-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-summary-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.account-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.account-summary-row .btn { margin-left: auto; }

.alert-inline {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-inline-success { background: #e6f5e9; color: var(--success); }
.alert-inline-error { background: #fdecec; color: var(--danger); }

@media (max-width: 600px) {
    .account-summary-row { flex-direction: column; align-items: flex-start; }
    .account-summary-row .btn { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------- Static Pages ---------- */
.policy-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14.5px;
    margin-bottom: 16px;
}
.policy-text:last-child { margin-bottom: 0; }
.policy-text a { color: var(--accent-dark); font-weight: 600; }

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-info-item a, .contact-info-item span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}
.contact-info-item a:hover { color: var(--accent-dark); }

@media (max-width: 600px) {
    .contact-info-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: white;
    border: none;
    padding: 18px 20px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle-icon {
    font-size: 18px;
    color: var(--accent-dark);
    transition: transform 0.25s;
    font-weight: 400;
}

.faq-item.open .faq-toggle-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-bg);
}

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

.empty-state-compact {
    padding: 50px 20px;
}
.empty-state-compact .empty-state-icon { font-size: 42px; }

/* ---------- Stretched card link (click anywhere except button) ---------- */
.product-card {
    position: relative; /* already likely present, but confirm it's here */
}

.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-thumb,
.product-info h3,
.product-info .brand,
.price-row {
    position: relative;
    z-index: 0; /* sits below the stretched link so clicks pass through to it */
}

.add-cart-btn {
    position: relative;
    z-index: 2; /* sits above the stretched link, so it stays independently clickable */
}

/* ================= HERO — Background Image Version ================= */
.hero-bg {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('assets/images/banners/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.35) 55%, rgba(26,26,46,0.1) 100%);
}

.hero-bg-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: white;
}

.hero-bg-content .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.hero-bg-content h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0;
    color: white;
    letter-spacing: -0.5px;
}

.hero-bg-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-bg-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.6);
    color: white;
}
.btn-outline-light:hover { background: white; color: var(--primary); }

@media (max-width: 768px) {
    .hero-bg { min-height: 480px; text-align: left; }
    .hero-bg-content h1 { font-size: 34px; }
    .hero-bg-overlay { background: linear-gradient(180deg, rgba(26,26,46,0.5) 0%, rgba(26,26,46,0.75) 100%); }
}

/* ================= Why Choose Us ================= */
.why-us-section { background: var(--light-bg); }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 10px;
}

.why-us-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.why-us-item h4 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.why-us-item p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================= About Teaser ================= */
.about-teaser {
    padding: 80px 0;
    background: white;
}

.about-teaser-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-teaser-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
}

.about-teaser-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-teaser-content { flex: 1; max-width: 480px; }

.about-teaser-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin: 14px 0 18px;
    letter-spacing: -0.4px;
}

.about-teaser-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 26px;
    font-size: 15px;
}

/* ================= Final CTA ================= */
.final-cta {
    background: var(--primary);
    padding: 70px 0;
}

.final-cta-inner {
    text-align: center;
    color: white;
}

.final-cta-inner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.final-cta-inner p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    font-size: 15px;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .about-teaser-inner { flex-direction: column; }
    .about-teaser-image img { height: 260px; }
}

@media (max-width: 500px) {
    .why-us-grid { grid-template-columns: 1fr; }
    .hero-bg-content h1 { font-size: 28px; }
    .final-cta-inner h2 { font-size: 24px; }
}

/* ---------- Mobile Nav Overlay ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.show {
    display: none;
    opacity: 1;
}

body.nav-menu-open,
body.filter-panel-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .main-nav {
        width: 82%;
        max-width: 320px;
        overflow-y: auto;
    }

    .main-nav ul li a {
        font-size: 16px;
        padding: 14px 4px;
    }

    .mobile-toggle {
        font-size: 24px;
        padding: 6px 10px;
        line-height: 1;
    }

    .header-inner { padding: 14px 0; }

    .logo { font-size: 20px; }
}

/* ---------- Product Filters — Responsive ---------- */
.products-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 13px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 20px;
    text-align: left;
}

.filters-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filters-mobile-header h3 { font-size: 16px; color: var(--primary); }

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

@media (max-width: 900px) {
    .mobile-filter-toggle { display: block; }

    .products-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: white;
        z-index: 300;
        padding: 24px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 8px 0 24px rgba(0,0,0,0.1);
    }

    .products-filters.show-filters {
        transform: translateX(0);
    }

    .filters-mobile-header { display: flex; }
}

@media (max-width: 768px) {
    .pdp-buy-row {
        flex-direction: column;
        gap: 12px;
    }

    .pdp-buy-row .qty-selector {
        width: 100%;
        justify-content: space-between;
    }

    .pdp-buy-row .qty-btn {
        padding: 16px 22px;
        font-size: 20px;
        flex: 0 0 auto;
    }

    .pdp-buy-row .qty-input {
        flex: 1;
        font-size: 16px;
        width: auto;
    }

    .add-cart-btn-main {
        width: 100%;
    }

    .pdp-main-image {
        border-radius: 12px;
    }

    .pdp-thumbs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .pdp-thumb {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .hi-user,
    .header-actions > a[href*="my_account"],
    .header-actions > a[href*="orders.php"],
    .header-actions > a[href*="logout.php"],
    .header-actions > a[href*="login.php"] {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }
}

.mobile-nav-divider {
    display: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

@media (max-width: 768px) {
    .mobile-nav-divider { display: block; }
}

@media (max-width: 768px) {
    /* Kill the desktop hover-dropdown behavior entirely on mobile */
    .nav-dropdown:hover .dropdown-arrow {
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown-menu {
        transition: none; /* no fade/slide animation on mobile - just show/hide instantly */
    }

    .nav-dropdown.mobile-open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.mobile-only-nav-item {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-nav-item {
        display: block;
    }
}

.shipping-note {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}
.checkout-card select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
}
.checkout-card select:focus {
    outline: none;
    border-color: var(--accent);
}
/* ---------- Searchable Location Dropdown ---------- */
.location-search-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.location-search-input {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.location-search-input:focus { outline: none; border-color: var(--accent); }

.location-dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.location-dropdown-list.show { display: block; }

.location-option {
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.location-option:last-child { border-bottom: none; }
.location-option:hover { background: var(--light-bg); }

.location-option-charge { color: var(--text-muted); font-size: 13px; }
.location-option-nocod { font-size: 10.5px; color: var(--danger); font-weight: 600; text-transform: uppercase; }

.location-no-results {
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.location-cod-warning {
    font-size: 12.5px;
    color: var(--danger);
    margin: -6px 0 14px;
}

.payment-option.disabled-option {
    opacity: 0.45;
    pointer-events: none;
}