:root {
  --primary-color: #6b4428;
  --primary-dark: #422817;
  --primary-light: #f5eee7;
  --primary-soft: #e9d8c8;
  --text-main: #30251d;
  --text-muted: #75685d;
  --border-color: #e5d9ce;
  --bg-cream: #fcfaf7;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-cream); color: var(--text-main); line-height: 1.5; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 15px; }

/* Top Announcement Bar */
.announcement-bar { background: var(--primary-color); color: var(--white); text-align: center; font-size: 11px; font-weight: 600; padding: 8px 15px; letter-spacing: 0.5px; }

/* Header Main */
.site-header { background: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 12px; }

.brand-logo { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--primary-color); text-decoration: none; letter-spacing: 1px; }
.brand-logo img { display: block; width: clamp(150px, 17vw, 205px); height: auto; max-height: 56px; object-fit: contain; }

.header-search { flex: 0 1 380px; position: relative; }
.header-search input { width: 100%; padding: 10px 40px 10px 16px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 13px; background: var(--bg-cream); outline: none; transition: all 0.2s; }
.header-search input:focus { border-color: var(--primary-color); background: var(--white); }
.header-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--text-muted); cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.action-icon { position: relative; color: var(--text-main); font-size: 18px; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.badge-count { position: absolute; top: 0; right: 0; background: var(--primary-color); color: var(--white); font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--text-main); cursor: pointer; width: 36px; height: 36px; }

/* Navigation Menu */
.nav-bar { border-top: 1px solid var(--border-color); background: var(--white); }
.nav-links { display: flex; justify-content: center; list-style: none; gap: 30px; padding: 12px 0; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

/* Mobile Navigation Drawer */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--white); z-index: 1002; transition: left 0.3s; padding: 24px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.mobile-drawer.active { left: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.drawer-links { list-style: none; }
.drawer-links li { margin-bottom: 16px; }
.drawer-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; display: block; }

/* Product Main Grid */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--white); border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 24px; }

/* Gallery */
.gallery-container { display: flex; gap: 12px; }
.thumbnails { display: flex; flex-direction: column; gap: 8px; width: 64px; }
.thumb-btn { border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; padding: 0; transition: all 0.2s; min-height: 44px; }
.thumb-btn.active, .thumb-btn:hover { border-color: var(--primary-color); }
.thumb-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.main-image-wrap { flex: 1; position: relative; border-radius: 12px; overflow: hidden; background: #f8f9fa; }
.main-image-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.badge-save { position: absolute; top: 16px; left: 16px; background: var(--primary-color); color: var(--white); font-weight: 700; font-size: 11px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Product Info */
.brand-title { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-color); font-weight: 700; margin-bottom: 8px; }
.product-name { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--text-main); margin-bottom: 16px; }
.price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.current-price { font-size: 26px; font-weight: 700; color: var(--text-main); }
.old-price { font-size: 16px; text-decoration: line-through; color: #a0ada2; }
.save-tag { background: var(--primary-color); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.stock-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--primary-color); font-weight: 600; margin-bottom: 20px; }
.stock-dot { width: 8px; height: 8px; background: var(--primary-color); border-radius: 50%; display: inline-block; }

/* Offer Banner */
.offer-banner { background: var(--primary-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.timer-box { display: flex; gap: 8px; text-align: center; }
.timer-unit { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; padding: 4px 8px; min-width: 40px; }
.timer-num { font-weight: 700; color: var(--primary-color); font-size: 16px; }
.timer-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }

/* Buy Action Area */
.buy-action-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.qty-select-row { display: flex; align-items: center; gap: 12px; }
.qty-picker { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; background: var(--white); overflow: hidden; }
.qty-btn { width: 44px; height: 44px; border: none; background: none; cursor: pointer; color: var(--text-main); font-size: 18px; font-weight: bold; }
.qty-input { width: 44px; text-align: center; border: none; font-weight: 600; font-size: 15px; }

.btn-buy-now { width: 100%; background: var(--primary-color); color: var(--white); border: none; border-radius: 8px; padding: 16px; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 12px rgba(66, 40, 23, 0.25); min-height: 48px; }
.btn-buy-now:hover { background: var(--primary-dark); }
.btn-buy-now:active { transform: scale(0.99); }

/* Checkout Popup Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.checkout-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 92%; max-width: 500px; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: 16px; padding: 24px; z-index: 2001; opacity: 0; pointer-events: none; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.checkout-modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 16px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text-main); }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; width: 36px; height: 36px; }

.order-summary-box { background: var(--primary-light); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.summary-title { font-weight: 700; color: var(--text-main); }
.summary-price { font-weight: 700; color: var(--primary-color); font-size: 16px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--text-main); }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; outline: none; background: var(--bg-cream); }
.form-control:focus { border-color: var(--primary-color); background: var(--white); }

.btn-submit-order { width: 100%; background: var(--primary-color); color: var(--white); border: none; border-radius: 8px; padding: 14px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; transition: background 0.2s; min-height: 48px; }
.btn-submit-order:hover { background: var(--primary-dark); }

/* Features 3-Col */
.micro-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; background: var(--white); margin-bottom: 24px; }
.mf-item { text-align: center; font-size: 11px; }
.mf-item i { color: var(--primary-color); font-size: 16px; margin-bottom: 4px; display: block; }
.mf-title { font-weight: 700; color: var(--text-main); }
.mf-sub { color: var(--text-muted); font-size: 10px; }

/* Trust Banner (4 Icons) */
.trust-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--primary-light); border-radius: 12px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--border-color); }
.tb-item { display: flex; align-items: center; gap: 12px; }
.tb-icon { width: 44px; height: 44px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 18px; border: 1px solid var(--border-color); flex-shrink: 0; }
.tb-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; }
.tb-desc { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }

/* Product Details Specs Grid */
.specs-card { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 24px; }
.specs-card h3 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 20px; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.spec-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; gap: 10px; }
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; color: var(--text-main); text-align: right; }

/* Gift Section */
.gift-card { background: var(--primary-light); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; margin-bottom: 24px; display: flex; align-items: center; gap: 24px; }
.gift-icon-box { width: 64px; height: 64px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 24px;
    }

    .brand-logo img {
width: 145px;
max-height: 42px; border: 1px solid var(--border-color); flex-shrink: 0; }
.gift-card h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 6px; }
.gift-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gift-tag { background: var(--white); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text-main); }

/* Two Column Why Us & FAQ */
.bottom-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; margin-bottom: 40px; }
.card-box { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.card-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 24px; }
.why-item { display: flex; gap: 14px; margin-bottom: 20px; }
.why-item i { color: var(--primary-color); font-size: 18px; margin-top: 2px; }
.why-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.why-desc { font-size: 12px; color: var(--text-muted); }

/* Accordion FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-btn { width: 100%; text-align: left; background: none; border: none; padding: 16px 0; font-size: 14px; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 48px; }
.faq-btn i { color: var(--primary-color); transition: transform 0.2s; }
.faq-btn.active i { transform: rotate(45deg); }
.faq-content { display: none; padding-bottom: 16px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Floating WhatsApp Button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; z-index: 999; }

/* ========================================================= */
/* FOOTER STYLES                                             */
/* ========================================================= */
.site-footer { background: var(--primary-color); color: var(--white); padding-top: 50px; padding-bottom: 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.footer-logo { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: 1px; display: inline-block; margin-bottom: 12px; }
.footer-logo img { display: block; width: 185px; max-width: 100%; height: auto; padding: 6px 10px; border-radius: 6px; background: var(--bg-cream); }
.footer-desc { font-size: 13px; color: #d1dcd3; line-height: 1.6; margin-bottom: 20px; }

.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: background 0.2s; }
.social-links a:hover { background: var(--white); color: var(--primary-color); }

.footer-heading { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 16px; color: var(--white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #d1dcd3; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-subtext { font-size: 13px; color: #d1dcd3; margin-bottom: 14px; line-height: 1.5; }
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input { flex: 1; padding: 10px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--white); font-size: 13px; outline: none; }
.footer-newsletter input::placeholder { color: #b0c2b3; }
.footer-newsletter button { background: var(--white); color: var(--primary-color); border: none; padding: 0 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.footer-newsletter button:hover { background: var(--primary-light); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: #b0c2b3; flex-wrap: wrap; gap: 12px; }
.payment-badges { display: flex; gap: 10px; align-items: center; }
.badge-tag { background: rgba(255, 255, 255, 0.1); padding: 4px 10px; border-radius: 4px; font-size: 11px; color: var(--white); display: flex; align-items: center; gap: 6px; }

/* ========================================================= */
/* MOBILE RESPONSIVE MEDIA QUERIES                           */
/* ========================================================= */
@media (max-width: 900px) {
  .header-search, .nav-bar { display: none; }
  .menu-toggle { display: block; }
  .product-grid { grid-template-columns: 1fr; padding: 16px; }
  .bottom-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .gallery-container { flex-direction: column-reverse; }
  .thumbnails { flex-direction: row; width: 100%; overflow-x: auto; }
  .thumb-btn { width: 60px; flex-shrink: 0; }
  .trust-banner { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; }
  .specs-grid { grid-template-columns: 1fr; }
  .specs-card, .card-box, .gift-card { padding: 20px; }
  .gift-card { flex-direction: column; text-align: center; }
  .gift-tags { justify-content: center; }
  .product-name { font-size: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .micro-features { grid-template-columns: 1fr; gap: 12px; }
  .trust-banner { grid-template-columns: 1fr; }
  .checkout-modal { padding: 16px; width: 95%; }
  .offer-banner { flex-direction: column; text-align: center; }
}


/* =========================================================
   MZ LEATHER - RESPONSIVE LAYOUT FIX
   Add this CSS at the VERY END of website/main.css
   ========================================================= */

/* 1. Global safety */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 2. Announcement bar */
.announcement-bar {
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

/* 3. Header */
.site-header {
    position: relative;
    z-index: 50;
    width: 100%;
    background: #fff;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    width: 100%;
}

.brand-logo {
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo img {
    width: clamp(145px, 18vw, 205px);
    max-height: 56px;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(100%, 430px);
    min-width: 0;
}

.header-search input {
    width: 100%;
    min-width: 0;
}

.header-search button {
    flex-shrink: 0;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-shrink: 0;
}

.action-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-shrink: 0;
    cursor: pointer;
}

.nav-bar {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin: 0;
    padding: 15px 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
}

.nav-links li {
    list-style: none;
}

/* 4. Mobile drawer */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: min(320px, 86vw);
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 22px;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.drawer-links {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.drawer-links li {
    list-style: none;
}

.drawer-links a {
    display: block;
    padding: 14px 0;
    color: #242424;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

/* 5. Main content */
main.container {
    min-width: 0;
    padding-top: 32px;
    padding-bottom: 45px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: clamp(24px, 4vw, 55px);
    width: 100%;
    min-width: 0;
}

.gallery-container,
.info-col {
    position: relative;
    width: 100%;
    min-width: 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.gallery-container #mainImg {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto;
    max-height: 650px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    border-radius: 5px;
}

.thumbnails {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.thumb-btn {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fff;
}

.thumb-btn.active {
    border-color: #a58b58;
}

.thumb-btn img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.badge-save {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    max-width: calc(100% - 30px);
}

.info-col {
    padding-top: 4px;
}

.brand-title {
    overflow-wrap: anywhere;
}

.product-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.current-price,
.old-price,
.save-tag {
    overflow-wrap: anywhere;
}

.stock-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.offer-banner {
    max-width: 100%;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-unit {
    min-width: 0;
}

.buy-action-wrap {
    width: 100%;
    min-width: 0;
}

.qty-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.qty-picker {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.qty-btn {
    cursor: pointer;
    touch-action: manipulation;
}

.qty-input {
    width: 45px;
    min-width: 35px;
    text-align: center;
}

.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 49px;
    cursor: pointer;
    touch-action: manipulation;
}

/* 6. Feature and trust sections */
.micro-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 25px;
}

.mf-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mf-title {
    line-height: 1.5;
}

.mf-sub {
    line-height: 1.6;
}

.trust-banner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 45px;
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tb-item > div:last-child {
    min-width: 0;
}

.tb-title,
.tb-desc {
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.specs-card,
.gift-card,
.card-box {
    min-width: 0;
    max-width: 100%;
}

.specs-card {
    margin-top: 35px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    flex-shrink: 0;
}

.spec-val {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.gift-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 30px;
    padding: 25px;
}

.gift-card > div:last-child {
    min-width: 0;
}

.gift-card h3,
.gift-card p {
    overflow-wrap: anywhere;
}

.gift-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gift-tag {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
    margin-top: 30px;
}

.card-box {
    width: 100%;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.why-item > div {
    min-width: 0;
}

.why-title,
.why-desc {
    overflow-wrap: anywhere;
}

.faq-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.faq-btn i {
    flex-shrink: 0;
}

.faq-content {
    overflow-wrap: anywhere;
}

/* 7. Footer */
.site-footer {
    width: 100%;
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 28px;
    min-width: 0;
}

.footer-col {
    min-width: 0;
}

.footer-desc,
.footer-subtext {
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    list-style: none;
}

.footer-newsletter {
    display: flex;
    width: 100%;
    min-width: 0;
}

.footer-newsletter input {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.footer-newsletter button {
    flex-shrink: 0;
    cursor: pointer;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    overflow-wrap: anywhere;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 8. Checkout modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: min(520px, calc(100% - 32px));
    max-width: 100%;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -47%);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    -webkit-overflow-scrolling: touch;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

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

.modal-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #333;
    cursor: pointer;
}

.order-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px;
    margin-bottom: 22px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.order-summary-box > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.summary-price {
    text-align: right;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#checkoutForm {
    width: 100%;
}

#checkoutForm .form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
}

#checkoutForm label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

#checkoutForm .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 14px;
    outline: none;
}

#checkoutForm .form-control:focus {
    border-color: #a58b58;
    box-shadow: 0 0 0 3px rgba(165, 139, 88, .12);
}

#checkoutForm textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

#checkoutForm .btn-submit-order {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
}

#checkoutForm .btn-submit-order:disabled {
    cursor: wait;
    opacity: .7;
}

#checkoutMessage {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

body:has(.checkout-modal.active) {
    overflow: hidden;
}

/* 9. Tablet */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 25px;
    }

    .gallery-container {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .trust-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-main {
        gap: 16px;
    }

    .nav-links {
        gap: 25px;
    }
}

/* 10. Mobile */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .announcement-bar {
        padding: 9px 12px;
        font-size: 9px;
        letter-spacing: .5px;
    }

    .header-main {
        min-height: 65px;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #222;
        font-size: 20px;
    }

    .brand-logo {
        font-size: 21px;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        gap: 13px;
    }

    .action-icon {
        font-size: 17px;
    }

    .badge-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .nav-bar {
        display: none;
    }

    main.container {
        padding-top: 18px;
        padding-bottom: 30px;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .gallery-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gallery-container #mainImg {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-height: none;
        /* aspect-ratio: 1 / 1; */
        object-fit: contain;
    }

    .thumbnails {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        width: 100%;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .thumb-btn {
        flex: 0 0 64px;
        width: 64px;
        max-width: 64px;
    }

    .badge-save {
        top: 12px;
        right: 12px;
    }

    .info-col {
        padding-top: 0;
    }

    .product-name {
        font-size: clamp(25px, 7vw, 34px);
    }

    .price-box {
        gap: 8px;
    }

    .current-price {
        font-size: 23px;
    }

    .offer-banner {
        margin-top: 20px;
    }

    .micro-features {
        gap: 9px;
        margin-top: 22px;
    }

    .mf-item {
        text-align: center;
    }

    .mf-item i {
        margin-bottom: 7px;
    }

    .mf-title {
        font-size: 11px;
    }

    .mf-sub {
        font-size: 10px;
    }

    .trust-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 13px;
        margin-top: 30px;
    }

    .tb-item {
        gap: 9px;
    }

    .tb-icon {
        flex-shrink: 0;
    }

    .tb-title {
        font-size: 12px;
    }

    .tb-desc {
        font-size: 9px;
    }

    .specs-card {
        margin-top: 28px;
        padding: 17px;
    }

    .specs-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .spec-row {
        gap: 12px;
    }

    .spec-label {
        max-width: 40%;
    }

    .spec-val {
        max-width: 60%;
    }

    .gift-card {
        flex-direction: column;
        gap: 14px;
        margin-top: 22px;
        padding: 20px;
    }

    .gift-icon-box {
        flex-shrink: 0;
    }

    .bottom-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 22px;
    }

    .card-box {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-modal {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        padding: 19px;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 19px;
    }

    .order-summary-box {
        padding: 12px;
        gap: 10px;
    }
}

/* 11. Small phones */
@media (max-width: 380px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-main {
        gap: 7px;
    }

    .brand-logo {
        font-size: 18px;
    }

    .header-actions {
        gap: 9px;
    }

    .thumb-btn {
        flex-basis: 56px;
        width: 56px;
        max-width: 56px;
    }

    .micro-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .trust-banner {
        gap: 16px 8px;
    }

    .tb-item {
        align-items: flex-start;
    }

    .tb-icon {
        font-size: 16px;
    }

    .checkout-modal {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        padding: 15px;
    }
}

/* 12. Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
