/*------------------------------------------------------------------
  Proyoojon.shop — storefront design system
  A lean, custom stylesheet (no Bootstrap) covering layout, grid
  utilities, form/button/table primitives, and every page-specific
  component. Organized top to bottom by how a page is composed.

  [CONTENTS]
    1.  Design tokens
    2.  Reset & base typography
    3.  Layout / grid utilities (row, col-*, container)
    4.  Buttons
    5.  Forms
    6.  Tables
    7.  Alerts, badges, labels, panels
    8.  Top bar + promo banner
    9.  Main header / nav / search
    10. Footer
    11. Homepage (hero, category strip, section titles)
    12. Product card
    13. Product detail page
    14. Category / listing page
    15. Cart, checkout, coupon box
    16. Account / auth pages
    17. Breadcrumbs, misc utilities
    18. Flash messages & toasts
    19. Responsive tweaks
-------------------------------------------------------------------*/

/* ============ 1. DESIGN TOKENS ============ */
:root {
    --accent: #d6644a;           /* overridden inline per Admin > Theme */
    --accent-ink: #ffffff;

    --ink-900: #14181f;
    --ink-800: #1f2430;
    --ink-700: #3a4150;
    --ink-500: #6b7280;
    --ink-400: #94a0b2;
    --ink-300: #d7dbe2;
    --ink-200: #e7e9ee;
    --ink-100: #f2f3f6;

    --surface: #ffffff;
    --bg: #f7f7f8;

    --success: #1a9c56;
    --success-bg: #e9f9ef;
    --danger: #d33a2c;
    --danger-bg: #fdedeb;
    --warning: #c9820a;
    --warning-bg: #fdf3e2;
    --info: #2563eb;
    --info-bg: #eaf1fe;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 1px 1px rgba(20, 24, 31, .04);
    --shadow-md: 0 6px 16px rgba(20, 24, 31, .08), 0 2px 6px rgba(20, 24, 31, .04);
    --shadow-lg: 0 20px 40px rgba(20, 24, 31, .12), 0 6px 16px rgba(20, 24, 31, .06);

    --ease: cubic-bezier(.165, .84, .44, 1);
    --font: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

/* ============ 2. RESET & BASE TYPOGRAPHY ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-700);
    background: var(--surface);
    overflow-x: hidden;
    max-width: 100vw;
}
.body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
/* Sticky footer: the page-content wrapper (includes/header.php...includes/footer.php)
   grows to fill any leftover vertical space on short pages (login, empty cart, etc.),
   so the footer always sits flush with the bottom of the viewport instead of leaving a
   gap of bare background beneath it - and simply flows normally on long pages. */
.page-content { flex: 1 0 auto; }
img { max-width: 100%; border-style: none; }
.img-responsive { display: block; width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
    margin: 0 0 12px;
}
p { color: var(--ink-700); margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--ink-900); }
small { font-size: 12.5px; }
hr { border: none; border-top: 1px solid var(--ink-200); margin: 20px 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.widget-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    color: var(--ink-900);
}
h1.page-heading-h1 { margin-top: 6px; margin-bottom: 14px; font-size: 28px; }
h1.product-single-title { margin: 0 0 5px; font-size: 18px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ 3. LAYOUT / GRID ============ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
[class*="col-"] { width: 100%; padding-left: 12px; padding-right: 12px; }
.row > .clearfix { display: none; }

.col-xs-1 { width: 8.3333%; } .col-xs-2 { width: 16.6667%; } .col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.3333%; } .col-xs-5 { width: 41.6667%; } .col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.3333%; } .col-xs-8 { width: 66.6667%; } .col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.3333%; } .col-xs-11 { width: 91.6667%; } .col-xs-12 { width: 100%; }

@media (min-width: 768px) {
    .col-sm-1 { width: 8.3333%; } .col-sm-2 { width: 16.6667%; } .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.3333%; } .col-sm-5 { width: 41.6667%; } .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.3333%; } .col-sm-8 { width: 66.6667%; } .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.3333%; } .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-md-1 { width: 8.3333%; } .col-md-2 { width: 16.6667%; } .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; } .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; } .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.3333%; } .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
    .col-md-offset-1 { margin-left: 8.3333%; } .col-md-offset-2 { margin-left: 16.6667%; }
    .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.3333%; }
    .col-md-offset-5 { margin-left: 41.6667%; } .col-md-offset-6 { margin-left: 50%; }
}

.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ink-500); }
.text-danger { color: var(--danger); }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ 4. BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 20px;
    font-family: var(--font); font-size: 13.5px; font-weight: 700;
    border-radius: var(--radius-md); border: 1px solid transparent;
    background: var(--surface); color: var(--ink-700);
    cursor: pointer; transition: all .2s ease; text-align: center; line-height: 1.2;
}
.btn:hover { color: var(--ink-900); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-default { background: var(--surface); border-color: var(--ink-300); color: var(--ink-700); }
.btn-default:hover { background: var(--ink-100); border-color: var(--ink-400); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.92); color: var(--accent-ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-link { background: none; border: none; color: var(--accent); height: auto; padding: 0; }
.btn-link:hover { color: var(--ink-900); text-decoration: underline; }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: var(--radius-sm); }

/* Primary brand call-to-action, used across storefront (add to cart, checkout, submit) */
.btn-color {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 24px;
    background: var(--accent); color: var(--accent-ink) !important;
    font-weight: 700; font-size: 13.5px; letter-spacing: .2px;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    box-shadow: var(--shadow-sm); transition: all .2s var(--ease);
}
.btn-color:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(0.94); }
.btn-black { background: var(--ink-900); color: #fff !important; border: none; }
.btn-black:hover { background: var(--ink-800); }

/* Social login (Google/Facebook) - login.php & register.php */
.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.btn-social {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; width: 100%; padding: 0 20px;
    border-radius: var(--radius-md); border: 1px solid var(--ink-300);
    background: var(--surface); color: var(--ink-800) !important;
    font-weight: 600; font-size: 13.5px; text-decoration: none !important;
    transition: all .2s ease;
}
.btn-social:hover { background: var(--ink-100); border-color: var(--ink-400); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-social-facebook { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.btn-social-facebook:hover { background: #166fe0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-400); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ink-200); }

/* ============ 5. FORMS ============ */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: 13px; color: var(--ink-800); margin-bottom: 6px; }
/* :where(...) around the bare element/attribute selectors keeps their
   specificity at zero, so any single component class (.search-strip-input,
   .stepper-input, etc.) can override width/border/radius here without
   needing extra specificity hacks of its own. */
.form-control,
:where(input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="search"], textarea, select) {
    width: 100%; height: 44px; padding: 0 14px;
    font-family: var(--font); font-size: 13.5px; color: var(--ink-900);
    background: var(--surface); border: 1px solid var(--ink-300); border-radius: var(--radius-md);
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.form-control, textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form-control:focus, :where(input, textarea, select):focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.form-control:disabled, :where(input):disabled { background: var(--ink-100); color: var(--ink-500); }
select:not([multiple]) {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px;
}
:where(input[type="checkbox"], input[type="radio"]) { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: middle; }
:where(input[type="color"]) { padding: 3px; cursor: pointer; }
.checkbox, .radio { margin-bottom: 10px; }
.checkbox label, .radio label { font-weight: 400; display: flex; align-items: center; gap: 8px; color: var(--ink-700); }
.form-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-inline .form-control { width: auto; }

/* Color swatch + typeable hex code + optional "use theme default" checkbox,
   all on one row (Admin/Staff > Theme & Styling). */
.color-picker-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.color-hex-input {
    width: 110px; height: 36px; padding: 0 10px;
    font-family: monospace; font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
}
.color-hex-input.is-invalid-hex { border-color: var(--danger); }
.color-toggle-label { font-weight: 400; display: flex; align-items: center; gap: 8px; color: var(--ink-700); margin: 0; font-size: 13px; }

/* ============ 6. TABLES ============ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Below this width a multi-column table stops being readable and starts
   crushing every cell into a vertical letter-stack, so let it scroll inside
   its .table-responsive wrapper instead of squeezing. */
@media (max-width: 600px) {
    .table-responsive > .table { min-width: 520px; }
    .table-responsive > .orders-history-table { min-width: 580px; }
}
.table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ink-200); font-size: 13.5px; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-500); font-weight: 700; border-bottom: 2px solid var(--ink-200); }
.table tfoot td { border-top: 2px solid var(--ink-200); border-bottom: none; }
.table-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }

/* ============ 7. ALERTS / BADGES / LABELS / PANELS ============ */
.alert { padding: 13px 16px; border-radius: var(--radius-md); font-size: 13.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #146c3b; border-color: #bfe8cf; }
.alert-danger { background: var(--danger-bg); color: #9c2a1f; border-color: #f4c6c0; }
.alert-warning { background: var(--warning-bg); color: #8a5c06; border-color: #f0dba8; }
.alert-info { background: var(--info-bg); color: #1d4ed8; border-color: #bfd4fb; }

.badge {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11.5px; font-weight: 700; background: var(--ink-100); color: var(--ink-700);
}
.badge.offer {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--danger); color: #fff; padding: 4px 9px; border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.label { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 700; background: var(--ink-200); color: var(--ink-700); }
.label-info { background: var(--info-bg); color: #1d4ed8; }
.label-success { background: var(--success-bg); color: #146c3b; }
.label-warning { background: var(--warning-bg); color: #8a5c06; }
.label-danger { background: var(--danger-bg); color: #9c2a1f; }

.panel { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.panel-default { border-color: var(--ink-200); }
.panel-heading { padding: 16px 20px; background: var(--ink-100); font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--ink-200); }
.panel-body { padding: 20px; }

/* ============ 8. TOP BAR + PROMO BANNER ============ */
.top_bar { background: var(--ink-900); color: #d8dae0; padding: 9px 0; font-size: 12.5px; }
.top_bar .tb_left p { margin: 0; color: #c7cad3; }
.top_bar .tb_center ul { display: flex; gap: 22px; }
.top_bar .tb_center li { display: flex; align-items: center; gap: 6px; color: #c7cad3; }
.top_bar .tb_center a { color: #c7cad3; }
.top_bar .tb_center a:hover { color: #fff; }
.top_bar .tb_center i { transition: transform .2s ease; }
.top_bar .tb_center a:hover i { transform: scale(1.2); }
.top_bar .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.top_bar .tb_left, .top_bar .tb_center, .top_bar .tb_right { float: none; }
.top_bar .tb_right { position: relative; margin-left: auto; }
.top_bar .tbr-info { position: relative; cursor: pointer; }
.top_bar .tbr-info > span { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.top_bar .tbr-inner {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 160px;
    background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s var(--ease); z-index: 1200;
}
.top_bar .tbr-info:hover .tbr-inner,
.top_bar .tbr-info:focus-within .tbr-inner,
.top_bar .tbr-info.is-open .tbr-inner { opacity: 1; visibility: visible; transform: translateY(0); }
.top_bar .tbr-inner a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 600; font-size: 13px; }
.top_bar .tbr-inner a:hover { background: var(--ink-100); color: var(--ink-900); }

.promo-banner-strip {
    padding: 9px 0; text-align: center; position: relative; contain: layout style;
    box-sizing: border-box; z-index: 1052;
    transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .35s var(--ease);
}
.promo-banner-strip.is-closing { opacity: 0; max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden; }
.promo-banner-text { font-size: 14px; font-weight: 600; letter-spacing: .2px; display: inline-block; }
.promo-banner-text.is-bold { font-weight: 700; }
.promo-banner-icon { margin-right: 7px; }
a.promo-banner-text:hover { text-decoration: underline; opacity: .9; }
@keyframes promoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoSlideDown { from { opacity: 0; transform: translate3d(0, -16px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes promoBounce { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
@keyframes promoPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes promoMarquee { 0% { transform: translate3d(100%, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
@keyframes promoBlinkCaret { 50% { border-color: transparent; } }
.promo-banner-content { display: inline-flex; align-items: center; }
.promo-banner-strip.anim-fade .promo-banner-content { animation-name: promoFadeIn; animation-timing-function: ease-out; animation-fill-mode: both; animation-iteration-count: 1; }
.promo-banner-strip.anim-slide .promo-banner-content { animation-name: promoSlideDown; animation-timing-function: ease-out; animation-fill-mode: both; animation-iteration-count: 1; }
.promo-banner-strip.anim-bounce .promo-banner-content { animation-name: promoBounce; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.promo-banner-strip.anim-pulse .promo-banner-content { animation-name: promoPulse; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.promo-marquee-track { overflow: hidden; white-space: nowrap; position: relative; height: 1.7em; }
.promo-banner-strip.anim-marquee .promo-banner-content { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; animation-name: promoMarquee; animation-timing-function: linear; animation-iteration-count: infinite; }
.promo-banner-strip.anim-marquee:hover .promo-banner-content { animation-play-state: paused; }
.promo-banner-text.anim-typewriter { overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid currentColor; width: 0; }
.promo-banner-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; color: inherit; opacity: .65; padding: 2px 8px; transition: opacity .2s ease; }
.promo-banner-close:hover { opacity: 1; }

/* ============ 9. MAIN HEADER / NAV / SEARCH ============ */
#stickyHeaderWrapper {
    /* No transform/will-change:transform here - either one would make this
       the containing block for position:fixed descendants (the mobile nav
       panel + its overlay, both inside #siteHeader below) instead of the
       viewport, which broke the off-canvas menu into a misplaced floating
       box rather than a proper edge-to-edge slide-in panel. */
    position: sticky; top: 0; z-index: 1050; background: var(--surface);
    will-change: box-shadow, background-color; backface-visibility: hidden;
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
#stickyHeaderWrapper.is-scrolled {
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
#siteHeader { padding: 16px 0; transition: padding .3s var(--ease); }
#stickyHeaderWrapper.is-scrolled #siteHeader { padding: 10px 0; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.navbar-header { display: flex; align-items: center; gap: 14px; }
.navbar-brand img { display: block; max-height: 46px; width: auto; transition: transform .3s ease, filter .3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }
.navbar-toggle {
    display: none; flex-direction: column; gap: 4px; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
    background: var(--surface); cursor: pointer;
}
.navbar-toggle .icon-bar { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink-800); border-radius: 2px; }
/* Desktop: .navbar-nav is just an invisible wrapper - only .mnav-links (the
   actual link row) is shown. The logo/auth/contact/social sections inside it
   are mobile-drawer-only decoration, see the max-width:991px block below. */
.navbar-nav { display: contents; }
.mnav-header, .mnav-user, .mnav-auth, .mnav-contact, .mnav-social { display: none; }
.mnav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mnav-links > li > a {
    position: relative; display: block; padding: 10px 14px; font-weight: 700; font-size: 13.5px;
    color: var(--ink-800); border-radius: var(--radius-sm); transition: color .2s ease;
}
.mnav-links > li > a::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px;
    background: var(--accent); transition: width .3s var(--ease), left .3s var(--ease); border-radius: 2px;
}
.mnav-links > li > a:hover, .mnav-links > li.active > a { color: var(--ink-900); }
.mnav-links > li > a:hover::after, .mnav-links > li.active > a::after { width: 70%; left: 15%; }
.mnav-badge { margin-left: 6px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: var(--radius-full); }

.header-xtra { display: flex; align-items: center; }
.topcart { position: relative; cursor: pointer; }
.topcart > span {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 14px;
    border-radius: var(--radius-full); background: var(--ink-100); color: var(--ink-900); font-weight: 700;
    white-space: nowrap; transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.topcart:hover > span { background: var(--ink-200); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.topcart .highlight { color: var(--accent); }
.cart-info {
    position: absolute; right: 0; top: calc(100% + 12px); width: 320px; max-width: 90vw;
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 16px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .22s var(--ease); z-index: 1200;
}
.topcart:hover .cart-info, .topcart:focus-within .cart-info, .topcart.is-open .cart-info { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-info > small { display: block; color: var(--ink-500); margin-bottom: 10px; }
.ci-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink-100); }
.ci-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.ci-item-info h5 { font-size: 13px; margin: 0 0 2px; }
.ci-item-info p { font-size: 12.5px; margin: 0; color: var(--ink-500); }
.ci-total { padding: 12px 0 6px; font-weight: 700; color: var(--ink-900); }
.cart-btn { display: flex; gap: 8px; }
.cart-btn a { flex: 1; text-align: center; padding: 9px 0; border-radius: var(--radius-sm); font-weight: 700; font-size: 12.5px; }
.cart-btn a:first-child { background: var(--ink-100); color: var(--ink-800); }
.cart-btn a:last-child { background: var(--accent); color: var(--accent-ink); }

.search-strip { background: var(--ink-100); border-bottom: 1px solid var(--ink-200); padding: 12px 0; }
.search-strip-form { display: flex; max-width: 620px; margin: 0 auto; }
.search-strip-input {
    flex: 1; height: 44px; padding: 0 16px; border: 1px solid var(--ink-300); border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md); font-size: 14px; background: var(--surface);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.search-strip-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.search-strip-btn {
    padding: 0 26px; border: none; background: var(--ink-900); color: #fff; font-weight: 700;
    border-radius: 0 var(--radius-md) var(--radius-md) 0; cursor: pointer; font-size: 13.5px;
    transition: transform .2s ease, background-color .2s ease;
}
.search-strip-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ============ 10. FOOTER ============ */
footer { background: var(--ink-900); color: #aeb3bf; padding: 50px 0 20px; margin-top: 60px; }
footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.widget-footer p { color: #9aa0ad; font-size: 13px; }
.widget-footer .flinks li { margin-bottom: 8px; }
.widget-footer .flinks a { color: #aeb3bf; font-size: 13px; }
.widget-footer .flinks a:hover { color: #fff; }
.f-social { display: flex; gap: 10px; margin-top: 14px; }
.f-social a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); background: rgba(255, 255, 255, .08); color: #fff;
    transition: all .2s ease;
}
.f-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-bottom { background: #0c0f14; padding: 16px 0; }
.footer-bottom p { margin: 0; color: #82889a; font-size: 12.5px; }
.footer-bottom a { color: #c6c9d2; font-weight: 700; }

#backtotop {
    position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: var(--radius-full);
    background: var(--ink-900); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s var(--ease); cursor: pointer; z-index: 900;
}
#backtotop.active { opacity: 1; visibility: visible; transform: translateY(0); }
#backtotop:hover { background: var(--accent); }

/* ============ 11. HOMEPAGE ============ */
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-top: 20px; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .5s ease; pointer-events: none;
}
.hero-slide:first-child { position: relative; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide img { width: 100%; display: block; }
.hero-slide-caption {
    position: absolute; left: 0; bottom: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff;
    padding: 40px 40px 24px; box-sizing: border-box;
}
.hero-slide-caption h3 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.hero-slide-caption p { margin: 0; color: #eee; }
.hero-dots { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; }
.hero-dot { width: 26px; height: 3px; border-radius: 2px; background: var(--ink-300); border: none; padding: 0; cursor: pointer; transition: all .25s ease; }
.hero-dot.is-active { background: var(--accent); width: 42px; }

.featured-section { border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); padding: 30px 0 10px; margin: 20px 0 30px; }

.cat-scroll-wrap { position: relative; margin-bottom: 10px; }
.cat-scroll {
    overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none; cursor: grab; touch-action: pan-x;
}
.cat-scroll::-webkit-scrollbar { display: none; height: 0; }
.cat-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cat-scroll-track { display: flex; flex-wrap: nowrap; width: max-content; }
.cat-scroll-item { flex: 0 0 auto; width: 140px; margin-right: 16px; text-align: center; display: block; -webkit-user-drag: none; }
.cat-scroll-item img { width: 140px; height: 110px; object-fit: cover; border-radius: var(--radius-lg); display: block; -webkit-user-drag: none; transition: transform .25s var(--ease); }
.cat-scroll-item:hover img { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-scroll-item span { display: block; margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--ink-800); white-space: normal; }
@media (max-width: 767px) {
    .cat-scroll-item, .cat-scroll-item img { width: 105px; }
    .cat-scroll-item img { height: 85px; }
}

/* ============ 12. PRODUCT CARD ============ */
.product {
    position: relative; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    padding: 10px; height: 100%; display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-thumb { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-100); }
.product-thumb .aspect-box { position: relative; width: 100%; padding-top: 100%; }
.product-thumb .aspect-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .4s var(--ease); }
.product:hover .product-thumb .aspect-box img { transform: scale(1.05); }
.product-info { text-align: center; padding: 14px 6px 6px; flex: 1; display: flex; flex-direction: column; }
.product-info h5 { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.product-info h5 a { color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-info h5 a:hover { color: var(--accent); }
.price { margin-bottom: 10px; font-size: 15px; }
.price del { color: var(--ink-400); font-weight: 400; margin-right: 6px; font-size: 13px; }
.price strong { color: var(--ink-900); font-weight: 800; }
.product-action-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; }
.product-action-row .quick-add-form, .product-action-row .select-options-btn, .product-action-row .btn-color { margin: 0; }
.product-action-row .quick-add-form { display: flex; align-items: center; }
.product-action-row .quick-add-form .btn-color,
.product-action-row .select-options-btn { height: 38px; padding: 0 16px; font-size: 12.5px; }
.out-of-stock-note { color: var(--danger); font-size: 12px; margin: 0; font-weight: 600; }

.wishlist-heart {
    position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px; padding: 0;
    border-radius: var(--radius-full); background: rgba(255, 255, 255, .92); border: 1px solid var(--ink-200);
    color: var(--ink-500); font-size: 14px; line-height: 32px; text-align: center; cursor: pointer;
    transition: all .15s ease; box-shadow: var(--shadow-sm);
}
.product-action-row .wishlist-heart { position: static; top: auto; right: auto; flex: 0 0 auto; }
.wishlist-heart:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.wishlist-heart.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wishlist-heart.is-loading { opacity: .5; pointer-events: none; }
.wishlist-heart--inline {
    position: static; display: inline-flex; align-items: center; gap: 7px; width: auto; height: auto;
    line-height: normal; padding: 9px 16px; border-radius: var(--radius-md); font-size: 13px;
    background: var(--surface); border: 1px solid var(--ink-300); font-weight: 700; color: var(--ink-700);
}
.wishlist-heart--inline:hover { color: var(--accent); background: var(--surface); border-color: var(--accent); }
.wishlist-heart--inline.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ 13. PRODUCT DETAIL PAGE ============ */
.product-single-wrap { margin-top: 24px; }
.product-title-wrap { margin-bottom: 14px; }
.product-single-title.clickable-title {
    font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--ink-900); cursor: pointer;
    margin: 0; display: inline-block; max-width: 100%; transition: all .2s ease; user-select: none;
}
.product-single-title.clickable-title.is-truncated .title-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-single-title.clickable-title .title-expand-icon { font-size: 14px; color: var(--ink-400); margin-left: 6px; vertical-align: middle; transition: transform .3s ease; display: inline-block; }
.product-single-title.clickable-title.is-expanded .title-expand-icon { transform: rotate(180deg); }

.product-info-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.info-pill { background: var(--ink-100); border: 1px solid var(--ink-200); border-radius: var(--radius-full); padding: 7px 15px; font-size: 13px; color: var(--ink-900); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.info-pill .pill-label { font-weight: 700; color: var(--ink-500); }
.info-pill .pill-val, .info-pill .pill-val * { font-weight: 700 !important; }

.key-features-block { margin-bottom: 20px; background: var(--surface); border: 1px solid var(--ink-200); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: var(--radius-md); }
.kf-title { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ink-900); }
.kf-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-700); }
.kf-list li { margin-bottom: 4px; }

.product-gallery-square { margin-bottom: 20px; }
.primary-image-frame { border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.primary-image-frame a { display: block; position: relative; cursor: zoom-in; }
.aspect-ratio-box { position: relative; width: 100%; padding-top: 100%; }
.aspect-ratio-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .4s var(--ease); }
.primary-image-frame:hover .aspect-ratio-box img { transform: scale(1.06); }
.zoom-hover-icon { position: absolute; bottom: 14px; right: 14px; background: rgba(20, 24, 31, .65); color: #fff; width: 34px; height: 34px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: .85; transition: opacity .2s; }
.primary-image-frame:hover .zoom-hover-icon { opacity: 1; }

.gallery-thumbs, .gallery-thumbs-square { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .15s ease; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--accent); opacity: 1; }
.thumb-square-item { width: 66px; height: 66px; border: 2px solid var(--ink-200); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: var(--surface); transition: all .2s ease; opacity: .75; }
.thumb-square-item img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.thumb-square-item:hover { opacity: 1; border-color: var(--ink-400); }
.thumb-square-item.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.variant-select-wrap { margin: 0 0 16px; }
.variant-select-wrap label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13px; }
.variant-hint { font-size: 12px; color: var(--ink-400); margin-top: 5px; display: block; }
.variant-hint.is-error { color: var(--danger); }

.buy-action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink-300); border-radius: var(--radius-md); overflow: hidden; height: 44px; background: var(--surface); }
.btn-stepper { width: 38px; height: 100%; background: var(--ink-100); border: none; font-size: 16px; font-weight: 700; color: var(--ink-700); cursor: pointer; transition: background .15s ease; }
.btn-stepper:hover { background: var(--ink-200); }
.btn-stepper:disabled { opacity: .4; cursor: not-allowed; }
.stepper-input { width: 50px; height: 100%; border: none; border-left: 1px solid var(--ink-300); border-right: 1px solid var(--ink-300); text-align: center; font-weight: 700; font-size: 14px; -moz-appearance: textfield; background: transparent; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-action {
    height: 44px; padding: 0 26px; font-size: 13.5px; font-weight: 800; border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: none;
    transition: all .2s ease; text-transform: uppercase; letter-spacing: .3px;
}
@keyframes buyPulse { 0% { box-shadow: 0 0 0 0 rgba(201, 130, 10, .45); } 70% { box-shadow: 0 0 0 10px rgba(201, 130, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 130, 10, 0); } }
.btn-buy-now { background: var(--warning) !important; color: #fff !important; animation: buyPulse 2.5s infinite; }
.btn-buy-now:hover { filter: brightness(0.92); color: #fff !important; }
.btn-add-cart { background: var(--accent); color: var(--accent-ink); }
.btn-action:disabled { opacity: .5; cursor: not-allowed; animation: none !important; }

.trust-badges-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--ink-200); }
.tb-item { display: flex; align-items: center; gap: 10px; background: var(--ink-100); padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--ink-200); }
.tb-icon { width: 34px; height: 34px; border-radius: var(--radius-full); background: var(--surface); color: var(--ink-700); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.tb-text strong { display: block; font-size: 12px; color: var(--ink-900); line-height: 1.2; }
.tb-text small { font-size: 11px; color: var(--ink-500); }

.social-share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ss-label { font-size: 12px; font-weight: 700; color: var(--ink-500); }
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; border: 1px solid var(--ink-200); background: var(--surface); color: var(--ink-700); cursor: pointer; transition: all .15s ease; text-decoration: none !important; }
.ss-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.ss-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.ss-copy:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.product-nav-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--ink-200); margin-top: 44px; margin-bottom: 25px; flex-wrap: wrap; }
.nav-tab-btn { padding: 11px 22px; font-size: 13.5px; font-weight: 700; background: var(--ink-100); border: 1px solid var(--ink-200); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--ink-700); cursor: pointer; transition: all .2s ease; margin-bottom: -2px; }
.nav-tab-btn:hover { background: var(--ink-200); color: var(--ink-900); }
.nav-tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.product-detail-section { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 25px; box-shadow: var(--shadow-sm); }
.product-detail-section .section-heading { font-size: 18px; font-weight: 800; margin-top: 0; margin-bottom: 20px; color: var(--ink-900); border-bottom: 2px solid var(--ink-100); padding-bottom: 12px; }
.spec-table-block { margin-bottom: 20px; }
.spec-table-header { background: var(--ink-100); color: var(--ink-900); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.spec-table { margin-bottom: 0; }
.spec-table tr:nth-child(even) { background-color: var(--ink-100); }
.spec-table td.spec-label { width: 30%; font-weight: 700; color: var(--ink-700); font-size: 13px; }
.spec-table td.spec-value { width: 70%; color: var(--ink-900); font-size: 13px; }

.ratings .fa-star { color: var(--ink-300); font-size: inherit; }
.ratings .fa-star.act { color: #f5a623; }
.avg-rating-line { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ink-700); font-size: 13px; }
.avg-rating-line:hover { color: var(--ink-900); }
.avg-rating-line .ratings { font-size: 14px; }
.avg-rating-line strong { color: var(--ink-900); }

.sticky-floating-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ink-200);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, .1); padding: 10px 0;
    transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-floating-bar.is-visible { transform: translateY(0); }
.sfb-content { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sfb-left { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.sfb-thumb { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--ink-200); background: var(--surface); flex-shrink: 0; }
.sfb-info { overflow: hidden; }
.sfb-title { font-weight: 700; font-size: 14px; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.sfb-price { font-weight: 800; color: var(--accent); font-size: 15px; }
.sfb-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sfb-btn { height: 38px; padding: 0 18px; font-size: 13px; }

/* Lightweight image lightbox (replaces the old jQuery Magnific Popup plugin) */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(10, 12, 16, .88); z-index: 99998;
    display: flex; align-items: center; justify-content: center; padding: 30px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); color: #fff; border: none; font-size: 20px; cursor: pointer; transition: background .2s ease; }
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }

/* ============ 14. CATEGORY / LISTING PAGE ============ */
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.listing-toolbar .form-inline select { width: auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 30px 0; flex-wrap: wrap; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 8px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm); color: var(--ink-700);
    font-weight: 700; font-size: 13px; transition: all .2s ease;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination-gap {
    display: inline-flex; align-items: flex-end; justify-content: center;
    min-width: 20px; height: 38px; color: var(--ink-400); font-weight: 700;
}

/* ============ 15. CART / CHECKOUT ============ */
.coupon-box { background: var(--ink-100); border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 18px; margin-bottom: 20px; }
.coupon-box h4, .coupon-box h5 { margin: 0 0 10px; font-size: 15px; }
.coupon-form { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon-form input[type="text"] { flex: 1; min-width: 160px; height: 42px; }
.coupon-applied-chip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--success-bg); border: 1px solid #bfe8c6; border-radius: var(--radius-sm); padding: 10px 14px; }
.coupon-applied-chip strong { color: var(--success); }
.coupon-applied-chip .remove-coupon-btn { background: none; border: none; color: var(--danger); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.order-total-row.discount-row td { color: var(--success); }

/* ============ 16. ACCOUNT / AUTH ============ */
.address-card { border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }

/* ---- Order tracking (track-order.php) ---- */
.track-intro { text-align: center; margin-bottom: 8px; }
.track-intro-icon {
    width: 56px; height: 56px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px;
}
.track-order-form { background: var(--ink-100); border-radius: var(--radius-lg); padding: 20px; margin: 20px 0; }
.track-result { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; box-shadow: var(--shadow-sm); animation: trackFadeIn .35s ease both; }
.track-result-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-200); }
@keyframes trackFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.track-copy-btn {
    background: none; border: none; color: var(--ink-400); cursor: pointer; font-size: 13px; padding: 2px 6px;
    border-radius: var(--radius-sm); transition: all .15s ease; vertical-align: middle;
}
.track-copy-btn:hover { color: var(--accent); background: var(--ink-100); }
.track-copy-btn.is-copied { color: var(--success); }

/* Status banner - big friendly message matching the current order status */
.track-status-banner {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md);
    margin-top: 20px; background: var(--ink-100);
}
.track-status-banner > .fa { font-size: 26px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.track-status-banner strong { font-size: 15px; color: var(--ink-900); }
.track-status-banner p { font-size: 13px; color: var(--ink-600); }
.track-status-banner.track-status-delivered { background: var(--success-bg); }
.track-status-banner.track-status-delivered > .fa { color: var(--success); }
.track-status-cancelled { background: var(--danger-bg); }
.track-status-cancelled > .fa { color: var(--danger); font-size: 26px; margin-top: 2px; }

.track-stepper { display: flex; align-items: flex-start; margin: 28px 0 8px; overflow-x: auto; }
.track-step { flex: 1; min-width: 110px; text-align: center; position: relative; opacity: 0; animation: trackStepIn .4s ease both; }
@keyframes trackStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.track-step::before {
    content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
    background: var(--ink-200); z-index: 0; transition: background .4s ease .2s;
}
.track-step:first-child::before { display: none; }
.track-step.is-done::before { background: var(--success); }
.track-step-dot {
    width: 32px; height: 32px; border-radius: 50%; background: var(--ink-100); border: 2px solid var(--ink-200);
    color: var(--ink-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
    position: relative; z-index: 1; font-size: 13px; transition: all .2s ease;
}
.track-step.is-done .track-step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.track-step.is-current .track-step-dot {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
    animation: trackPulse 1.8s ease-in-out infinite;
}
@keyframes trackPulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent); }
}
.track-step-label { font-size: 12.5px; font-weight: 700; color: var(--ink-500); }
.track-step.is-done .track-step-label, .track-step.is-current .track-step-label { color: var(--ink-900); }
.track-step-label small { display: block; font-weight: 400; color: var(--ink-400); margin-top: 2px; }

.track-eta { text-align: center; font-size: 13px; color: var(--ink-500); margin: 4px 0 0; }
.track-eta .fa { margin-right: 5px; }

.track-courier-box { background: var(--ink-100); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 20px; }

.track-review-box { background: var(--warning-bg); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 20px; }
.track-review-items { display: flex; flex-direction: column; gap: 8px; }
.track-review-item {
    display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm); padding: 8px 12px; transition: all .15s ease;
}
.track-review-item:hover { border-color: var(--accent); transform: translateX(2px); }
.track-review-item img { width: 36px; height: 36px; object-fit: contain; border-radius: var(--radius-sm); background: var(--ink-100); flex-shrink: 0; }
.track-review-item span:first-of-type { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink-800); }
.track-review-cta { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.track-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.track-item-thumb { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-sm); background: var(--ink-100); border: 1px solid var(--ink-200); }

.track-tips { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.track-tip { display: flex; align-items: center; gap: 12px; background: var(--ink-100); border-radius: var(--radius-md); padding: 12px 16px; font-size: 13.5px; color: var(--ink-700); }
.track-tip .fa { color: var(--accent); font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

@media (max-width: 600px) {
    .track-step-label { font-size: 11px; }
    .track-step-label small { display: none; }
    .track-status-banner { flex-direction: column; text-align: center; align-items: center; }
}

@media print {
    header, footer, #stickyHeaderWrapper, .track-order-form, .track-actions, .breadcrumbs, .seo-breadcrumbs,
    #backtotop, .track-tips, .track-intro { display: none !important; }
    .track-result { box-shadow: none; border: none; }
}

/* ============ 17. BREADCRUMBS / MISC ============ */
.seo-breadcrumbs { margin: 16px 0 6px; }
.seo-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.seo-breadcrumbs li { font-size: 12.5px; color: var(--ink-500); }
.seo-breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--ink-300); }
.seo-breadcrumbs a { color: var(--ink-500); }
.seo-breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.seo-breadcrumbs li[aria-current="page"] span { color: var(--ink-900); font-weight: 600; }

/* Static policy/info pages (returns.php) - readable prose lists, since the
   global reset strips list markers and padding from every ul/ol. */
.policy-list { list-style: disc; margin: 0 0 18px; padding-left: 22px; }
.policy-list-numbered { list-style: decimal; }
.policy-list li { margin-bottom: 7px; color: var(--ink-700); }
.policy-help {
    margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-md);
    background: var(--ink-100); border: 1px solid var(--ink-200); font-size: 14px;
}

/* ============ 18. FLASH MESSAGES & TOASTS ============ */
.js-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 99999999;
    min-width: 240px; max-width: 90%; text-align: center; padding: 12px 22px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 13px;
}
@keyframes flashSlideDown { from { transform: translateY(-130%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes flashSlideUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-130%); opacity: 0; } }
.flash-overlay { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 99999999; width: 92%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash-overlay .alert { position: relative; margin: 0; width: 100%; text-align: center; padding: 13px 34px 13px 16px; box-shadow: var(--shadow-lg); pointer-events: auto; animation: flashSlideDown .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.flash-overlay .alert.is-hiding { animation: flashSlideUp .35s ease-in forwards; }
.flash-overlay .alert .flash-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 16px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.flash-overlay .alert .flash-close:hover { opacity: 1; }

/* ============ 19. RESPONSIVE ============ */
@media (max-width: 991px) {
    /* The off-canvas drawer - slides from the LEFT (tap the hamburger, or
       swipe right from the screen's left edge; swipe left / tap outside /
       the X to close). Lives as its own stacking context so nothing about
       .mnav-header's decoration bleeds into the desktop navbar above. */
    .navbar-nav {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: -320px; width: 300px; max-width: 88vw; height: 100vh;
        height: 100dvh; /* follows the browser chrome as it shows/hides, so the drawer's own footer stays reachable */
        background: var(--surface); box-shadow: var(--shadow-lg);
        transition: left .32s cubic-bezier(.22, .68, 0, 1); z-index: 1100; overflow-y: auto; overflow-x: hidden;
        overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    .navbar-nav.is-open { left: 0; }
    .navbar-nav.is-dragging { transition: none; }
    .navbar-toggle { display: inline-flex; }
    .nav-overlay {
        position: fixed; inset: 0; background: rgba(10, 12, 16, .45); opacity: 0; visibility: hidden;
        transition: opacity .3s ease; z-index: 1090; touch-action: none; overscroll-behavior: none;
    }
    .nav-overlay.is-open { opacity: 1; visibility: visible; }
    .top_bar .tb_center { display: none; }

    /* ---- Branded header: logo on a white card over an accent gradient,
       with a couple of soft decorative bubbles so it doesn't feel flat. ---- */
    .mnav-header {
        display: block; position: relative; overflow: hidden; flex-shrink: 0;
        padding: 26px 18px 22px;
        background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #fff), color-mix(in srgb, var(--accent) 4%, #fff));
        border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, #fff);
    }
    .mnav-header::before, .mnav-header::after { content: ''; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent); }
    .mnav-header::before { width: 150px; height: 150px; top: -70px; right: -50px; }
    .mnav-header::after { width: 90px; height: 90px; bottom: -40px; left: -25px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
    .mnav-logo-card {
        position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    }
    .mnav-logo-card img { display: block; max-height: 32px; width: auto; }
    .mnav-close {
        position: absolute; top: 14px; right: 14px; z-index: 2;
        width: 32px; height: 32px; border-radius: 50%; border: none;
        background: color-mix(in srgb, var(--ink-900) 8%, transparent); color: var(--ink-700); font-size: 19px; line-height: 1; cursor: pointer;
    }
    .mnav-close:active { background: color-mix(in srgb, var(--ink-900) 16%, transparent); }

    /* ---- Logged-in greeting / guest auth shortcuts ---- */
    .mnav-user { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ink-100); flex-shrink: 0; }
    .mnav-user-avatar {
        width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
        background: color-mix(in srgb, var(--accent) 15%, #fff); color: var(--accent);
        display: flex; align-items: center; justify-content: center; font-size: 16px;
    }
    .mnav-user-info { min-width: 0; }
    .mnav-user-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mnav-user-info a { font-size: 12px; color: var(--accent); font-weight: 700; }
    .mnav-auth { display: flex; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--ink-100); flex-shrink: 0; }
    .mnav-auth-btn { flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-md); font-weight: 700; font-size: 13px; border: 1.5px solid var(--accent); color: var(--accent); }
    .mnav-auth-btn-primary { background: var(--accent); color: #fff !important; }

    /* ---- Nav links: icon + label, vertical list, active/hover fill ----
       align-items reset to stretch here - the desktop rule above sets it to
       center (to vertically center the horizontal row), which would otherwise
       leak through and center each row horizontally once flex-direction
       flips to column on mobile. */
    .mnav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 10px 10px; }
    .mnav-links > li > a {
        display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: var(--radius-md);
        font-weight: 700; font-size: 14px; color: var(--ink-800);
    }
    .mnav-links > li > a .fa { width: 18px; text-align: center; color: var(--ink-400); font-size: 15px; }
    .mnav-links > li.active > a, .mnav-links > li > a:hover { background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); }
    .mnav-links > li.active > a .fa, .mnav-links > li > a:hover .fa { color: var(--accent); }
    .mnav-links > li > a::after { display: none; }
    .mnav-badge { margin: 0 0 0 auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); min-width: 20px; text-align: center; }

    /* ---- Contact + social footer of the drawer ---- */
    .mnav-contact { display: flex; flex-direction: column; gap: 9px; padding: 14px 18px; border-top: 1px solid var(--ink-100); flex-shrink: 0; }
    .mnav-contact a { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-600); font-weight: 600; }
    .mnav-contact a .fa { color: var(--accent); width: 16px; text-align: center; }
    .mnav-social { display: flex; gap: 9px; padding: 2px 18px 18px; flex-shrink: 0; }
    .mnav-social a {
        width: 32px; height: 32px; border-radius: 50%; background: var(--ink-100); color: var(--ink-600);
        display: flex; align-items: center; justify-content: center; font-size: 13px;
        transition: background .15s ease, color .15s ease;
    }
    .mnav-social a:hover { background: var(--accent); color: #fff; }

    /* Subtle pulsing hint on the left edge suggesting the drawer can be
       swiped open - hidden for good (via localStorage, see main.js) once
       the visitor discovers it. */
    .nav-swipe-hint {
        position: fixed; left: 0; top: 50%; margin-top: -30px; width: 5px; height: 60px;
        border-radius: 0 8px 8px 0; background: var(--accent); opacity: .3; z-index: 500;
        pointer-events: none; animation: navSwipeHintPulse 2.2s ease-in-out infinite;
    }
    .nav-swipe-hint.is-hidden { display: none !important; }
    @keyframes navSwipeHintPulse {
        0%, 100% { opacity: .22; width: 5px; }
        50% { opacity: .6; width: 9px; }
    }

    /* ---- Scroll lock while the drawer is open ----
       The lock has to sit on <html>, not just <body>: the root carries
       `overflow-x: hidden` (section 2), which computes its overflow-y to
       `auto` rather than `visible`, so <html> is the scrolling element and
       body's overflow never propagates to the viewport - locking the body
       alone did nothing and the page kept scrolling behind the drawer.
       Locking the root (rather than pinning the body with position: fixed)
       keeps the current scroll offset and the sticky header exactly where
       they are, so nothing jumps when the drawer opens or closes.
       overscroll-behavior also kills pull-to-refresh for the duration. */
    html.nav-open, body.nav-open { overflow: hidden; overscroll-behavior: none; }
}
@media (min-width: 992px) {
    .nav-swipe-hint { display: none !important; }
}
@media (max-width: 767px) {
    .top_bar .tb_left { display: none; }
    .coupon-form { flex-direction: column; }
    .coupon-form button { width: 100%; }
    .wishlist-heart:not(.wishlist-heart--inline) { width: 30px; height: 30px; line-height: 28px; font-size: 12px; }
    .search-strip-form { max-width: 100%; }
    .sfb-title { max-width: 140px; font-size: 12px; }
    .sfb-price { font-size: 13px; }
    .sfb-btn { padding: 0 10px; font-size: 11px; height: 36px; }
    .sfb-stepper { display: none; }
    .hero-slide-caption { padding: 20px 20px 16px; }
    .hero-slide-caption h3 { font-size: 19px; }
}
