/* ==========================================================================
   ThaiInternationalBD — core design system + home page styles
   ========================================================================== */

:root {
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Sora', 'Outfit', 'Segoe UI', system-ui, sans-serif;

  --primary: #ff5d2e;
  --primary-dark: #e8431a;
  --primary-light: #ff8f66;
  --gold: #ffb020;
  --accent: #7c3aed;
  --grad: linear-gradient(135deg, #ff5d2e 0%, #ff8a3d 48%, #ffb020 100%);
  --grad-cool: linear-gradient(135deg, #7c3aed 0%, #2e90fa 100%);

  --bg: #f6f7fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --surface-3: #e8ecf6;
  --text: #0d1220;
  --text-2: #46506b;
  --muted: #7b869e;
  --border: #e6e9f2;

  --success: #12b76a;
  --danger: #f04438;
  --warning: #f79009;
  --info: #2e90fa;

  --shadow-xs: 0 1px 3px rgba(14, 20, 40, .06);
  --shadow-sm: 0 4px 14px rgba(14, 20, 40, .07);
  --shadow: 0 14px 34px rgba(14, 20, 40, .09);
  --shadow-lg: 0 28px 70px rgba(14, 20, 40, .16);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --container: 1240px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

[data-theme="dark"] {
  --bg: #080b14;
  --bg-2: #0d1120;
  --surface: #111725;
  --surface-2: #161e30;
  --surface-3: #1e2740;
  --text: #eaeefb;
  --text-2: #aab4cd;
  --muted: #7f8aa3;
  --border: #1e2740;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* -------------------------------- scrollbar ------------------------------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ================================ BUTTONS ================================ */
.btn {
  --btn-bg: var(--surface-2);
  --btn-color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--btn-bg); color: var(--btn-color);
  font-weight: 600; font-size: .94rem; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --btn-bg: var(--grad); --btn-color: #fff; box-shadow: 0 10px 26px rgba(255, 93, 46, .32); background-size: 160% 160%; }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 93, 46, .42); background-position: 100% 0; }
.btn-outline { --btn-bg: transparent; border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { --btn-bg: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-dark { --btn-bg: #111827; --btn-color: #fff; }
.btn-success { --btn-bg: var(--success); --btn-color: #fff; }
.btn-danger { --btn-bg: var(--danger); --btn-color: #fff; }
.btn-warning { --btn-bg: var(--warning); --btn-color: #fff; }
.btn-sm { padding: .48rem .95rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .6rem; width: 42px; height: 42px; border-radius: 50%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all .2s var(--ease); font-size: 1.05rem; position: relative;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-xs); }

/* ================================= FORMS ================================= */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.label { font-size: .82rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: .78rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: .94rem;
  transition: border .18s, box-shadow .18s, background .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 93, 46, .13);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b869e' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 2.4rem; cursor: pointer; }
.input-group { display: flex; gap: .5rem; }
.hint { font-size: .78rem; color: var(--muted); }
.error-text { font-size: .8rem; color: var(--danger); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .22s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease); }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ================================ BADGES ================================= */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .62rem; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-2);
}
.badge-new { background: var(--grad); color: #fff; }
.badge-hot { background: linear-gradient(135deg, #f04438, #ff7a45); color: #fff; }
.badge-sale { background: linear-gradient(135deg, #12b76a, #32d583); color: #fff; }
.badge-out { background: #334155; color: #fff; }
.badge-success { background: rgba(18, 183, 106, .14); color: #0b8a4f; }
.badge-warn { background: rgba(247, 144, 9, .16); color: #b54708; }
.badge-danger { background: rgba(240, 68, 56, .14); color: #b42318; }
.badge-info { background: rgba(46, 144, 250, .14); color: #175cd3; }
.badge-draft { background: rgba(124, 58, 237, .14); color: #6927d6; }
[data-theme="dark"] .badge-success { color: #6ce9a6; }
[data-theme="dark"] .badge-warn { color: #fec84b; }
[data-theme="dark"] .badge-danger { color: #fda29b; }
[data-theme="dark"] .badge-info { color: #84caff; }
[data-theme="dark"] .badge-draft { color: #c3b5fd; }

.chip {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .5rem 1rem; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255, 93, 46, .3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .7rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head p { margin: .4rem 0 0; max-width: 620px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ================================= TOPBAR ================================ */
.topbar {
  background: linear-gradient(90deg, #14182b 0%, #2b1c46 55%, #4a2318 100%);
  color: #eaeeff; font-size: .82rem; padding: .55rem 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: #fff; opacity: .88; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 1.1rem; }
.topbar .topbar-info:empty { display: none; } /* no empty announcement row */
/* Phones / small tablets: the announcement gets its own full-width row and
   wraps, so the FULL message is readable instead of being hidden at <=860px
   or squeezed/clipped next to the phone + e-mail links. */
@media (max-width: 860px) {
  .topbar { font-size: .78rem; padding: .5rem 0; }
  .topbar-inner { flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; }
  .topbar .topbar-info {
    display: block; flex: 1 0 100%; order: -1;
    text-align: center; line-height: 1.5; white-space: normal;
  }
  .topbar-links { width: 100%; justify-content: center; gap: .5rem 1.1rem; flex-wrap: wrap; }
}
/* Very small phones: tighten spacing — everything above stays visible and
   wraps onto its own line rather than being cut off. */
@media (max-width: 480px) {
  .topbar { font-size: .73rem; padding: .45rem 0; }
  .topbar-links { gap: .35rem .9rem; }
  .topbar-links a { white-space: normal; text-align: center; }
}

/* ================================ HEADER ================================= */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.header-main { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 1.45rem; box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  overflow: hidden; flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.brand-text strong { font-weight: 800; display: block; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .22em; color: var(--primary); font-weight: 700; }

.header-search { flex: 1; display: flex; max-width: 560px; position: relative; margin: 0 .4rem; }
.header-search .input { border-radius: var(--radius-full); padding-left: 2.7rem; height: 46px; }
.header-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search .btn { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 1.1rem; border-radius: var(--radius-full); }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.menu-toggle { display: none; }
.header-cta { display: none; }
@media (min-width: 1180px) { .header-cta { display: inline-flex; } }

.main-nav { border-top: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .35rem; padding: 1rem .95rem;
  font-weight: 600; font-size: .93rem; color: var(--text-2); position: relative; transition: color .2s;
}
.nav-links > li > a::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .55rem; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--text); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .6rem; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s var(--ease);
  max-height: 70vh; overflow: auto;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--text-2); }
.dropdown a:hover { background: var(--surface-2); color: var(--primary); }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; overflow: hidden; flex: none; }
.dropdown .dd-count { margin-left: auto; font-size: .74rem; color: var(--muted); background: var(--surface-2); padding: .1rem .5rem; border-radius: 999px; }
.nav-meta { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: var(--muted); padding: .6rem 0; }

@media (max-width: 1080px) {
  /* Row 2 = search field + "Shop Now" button. The flex-basis reserves room for
     the CTA so both always land on the same row, while row 1 keeps menu +
     brand + icon buttons with nothing squeezed or pushed off-screen. */
  .header-search { order: 3; flex: 1 1 calc(100% - 200px); min-width: 0; max-width: none; margin: 0; }
  .header-search .input { min-width: 0; }
  .header-cta { display: inline-flex; order: 4; flex: none; } /* was desktop-only before */
  .header-actions { margin-left: auto; } /* keep icon buttons pinned right on row 1 */
  .header-main { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  html { scroll-padding-top: 152px; } /* header is two rows tall here */
  /* collapsed header while scrolling: search folds away, "Shop Now" stays */
  .site-header.compact .header-search { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; animation: slideDown .25s var(--ease); }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .nav-links > li > a { padding: .8rem .4rem; border-bottom: 1px dashed var(--border); }
  .nav-links > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--surface-2); margin-bottom: .5rem; max-height: 42vh; overflow-y: auto; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ================================== HERO ================================= */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #3b1d5c 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, #5a2712 0%, transparent 55%), linear-gradient(135deg, #0b1020 0%, #171a35 55%, #241634 100%); color: #fff; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero::before { width: 460px; height: 460px; background: #ff5d2e; top: -140px; right: 8%; }
.hero::after { width: 380px; height: 380px; background: #7c3aed; bottom: -160px; left: -80px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 74px 0 84px; }
.hero h1 { color: #fff; }
.hero .hero-lead { color: rgba(255, 255, 255, .78); font-size: 1.06rem; max-width: 540px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: .45rem 1rem; border-radius: var(--radius-full); font-size: .82rem; font-weight: 600; backdrop-filter: blur(8px); margin-bottom: 1.2rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .22); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .75; } }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .btn-outline { --btn-bg: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: #0b1020; border-color: #fff; }
.hero-stats { display: flex; gap: 2.1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: .82rem; color: rgba(255, 255, 255, .62); }

.hero-showcase { position: relative; }
.showcase-card { position: relative; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; padding: 1.1rem; backdrop-filter: blur(14px); box-shadow: 0 40px 90px rgba(0, 0, 0, .45); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.showcase-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 20px; cursor: pointer; }
.showcase-meta { padding: .9rem .5rem .3rem; }
.showcase-meta .sc-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .6); font-weight: 700; }
.showcase-meta h3 { color: #fff; margin: .35rem 0 .2rem; font-size: 1.06rem; }
.showcase-meta .sc-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #ffd66b; }
.showcase-meta .sc-price del { font-size: .88rem; color: rgba(255, 255, 255, .45); margin-left: .5rem; font-weight: 500; }
.showcase-tag { position: absolute; top: -14px; left: -14px; background: var(--grad); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; box-shadow: 0 12px 26px rgba(255, 93, 46, .45); }
.showcase-dots { display: flex; gap: .45rem; justify-content: center; margin-top: 1.1rem; }
.showcase-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .28); cursor: pointer; padding: 0; transition: all .25s; }
.showcase-dots button.active { width: 26px; border-radius: 999px; background: var(--grad); }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; padding: 54px 0 64px; gap: 2.4rem; } .hero-showcase { max-width: 460px; } }

/* =============================== TRUST BAR =============================== */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item .ti-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); flex: none; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================== ABOUT US ================================ */
/* Banner image aligned with the page content column (same width as the
   1240px .container, including its 20px gutters) with the About Us text
   overlaid along its bottom edge (light text on a dark gradient). */
.about-section { padding: 0 20px 72px; }
.about-banner {
  position: relative; display: flex; align-items: flex-end;
  max-width: var(--container); margin: 0 auto;
  min-height: 480px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
/* Horizontal scrim — darkens the left half where the text sits, keeps the
   right side of the photo visible. */
.about-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(9, 12, 24, .72) 0%, rgba(9, 12, 24, .5) 42%, rgba(9, 12, 24, .2) 78%, rgba(9, 12, 24, .08) 100%);
}
/* Vertical scrim — strong enough that the white About Us text stays readable
   even on a completely white banner image. */
.about-banner::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9, 12, 24, .3) 0%, rgba(9, 12, 24, .55) 38%, rgba(9, 12, 24, .86) 72%, rgba(9, 12, 24, .95) 100%);
}
.about-banner-inner { position: relative; z-index: 2; padding-top: 3.2rem; padding-bottom: 3rem; width: 100%; }
.about-copy {
  max-width: 760px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4);
}
.about-copy .eyebrow { color: var(--gold); }
.about-copy h2 { color: #fff; margin-bottom: .5rem; }
.about-copy p { color: rgba(255, 255, 255, .86); }
.about-copy .about-sub { font-size: 1.02rem; }
.about-points { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1.5rem; }
.about-point {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .9rem; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: .84rem; font-weight: 600; backdrop-filter: blur(4px);
}
.about-copy .hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.about-copy .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.about-copy .btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* Below the content-column width (1240px + gutters) the banner goes
   full-bleed again — the rest of the page is edge-to-edge there too — while
   the .container inside keeps the text on the same 20px gutter as every
   other section. */
@media (max-width: 1280px) {
  .about-section { padding: 0 0 72px; }
  .about-banner { border-radius: 0; border: 0; box-shadow: none; }
}
/* Phones / small tablets: the photo becomes a fixed-height band on top and
   the copy sits on a solid dark panel below it. This stops the image from
   being cover-cropped into a huge blurry zoom (it used to be stretched to
   the full text height) while keeping the white text perfectly readable. */
@media (max-width: 700px) {
  .about-section { padding: 0 0 48px; }
  .about-banner { display: block; min-height: 0; background: #0b1020; } /* dark panel behind the copy */
  .about-banner > img { position: static; width: 100%; height: 240px; object-fit: cover; object-position: center; }
  .about-banner::before, .about-banner::after { display: none; } /* scrims not needed on the solid panel */
  .about-banner-inner { padding-top: 1.5rem; padding-bottom: 2rem; }
  .about-copy { text-shadow: none; }
}

/* ============================== CATEGORY GRID ============================ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.category-card {
  position: relative; overflow: hidden; padding: 1.7rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  display: flex; flex-direction: column; gap: .55rem;
}
.category-card::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--cat-color, var(--primary)); opacity: .1; transition: transform .4s var(--ease); }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.category-card:hover::after { transform: scale(1.35); }
.category-card .cc-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem; overflow: hidden; background: color-mix(in srgb, var(--cat-color, var(--primary)) 16%, transparent); }
.category-card h3 { margin: 0; font-size: 1.05rem; }
.category-card p { font-size: .84rem; margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card .cc-foot { margin-top: .5rem; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--cat-color, var(--primary)); }

/* category icon = uploaded image or first-letter fallback */
.cat-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cat-initial { font-weight: 800; line-height: 1; opacity: .85; }

/* ============================== PRODUCT GRID ============================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.35rem; }
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  position: relative;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.pc-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); cursor: pointer; }
.product-card:hover .pc-media img { transform: scale(1.07); }
.pc-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; z-index: 2; }
.pc-fav { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer; font-size: .95rem; transition: all .2s; }
.pc-fav:hover, .pc-fav.active { color: var(--primary); border-color: var(--primary); transform: scale(1.08); }
.pc-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pc-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.pc-title { font-size: .98rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.32; }
.pc-rating { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.pc-rating .stars { color: #ffb020; letter-spacing: -.06em; }
.pc-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.pc-price strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.pc-price del { color: var(--muted); font-size: .86rem; }
.pc-price .off { font-size: .74rem; font-weight: 700; color: var(--success); }
.pc-stock { font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.pc-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }
.pc-actions { display: flex; gap: .5rem; }
.pc-actions .btn { flex: 1; }

.empty-state { text-align: center; padding: 4rem 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state .es-icon { font-size: 3rem; margin-bottom: .6rem; }
.empty-state h3 { margin-bottom: .3rem; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card { height: 380px; border-radius: var(--radius-lg); }

/* ============================== FILTER BAR =============================== */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.15rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
  box-shadow: var(--shadow-xs); margin-bottom: 1.8rem;
}
.filter-bar .fb-search { flex: 1 1 240px; position: relative; }
.filter-bar .fb-search .input { padding-left: 2.5rem; }
.filter-bar .fb-search .search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-bar .select { width: auto; min-width: 160px; flex: 0 1 auto; }
.filter-count { font-size: .86rem; color: var(--muted); font-weight: 600; margin-left: auto; }
.active-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

/* ================================ MODALS ================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 20, .62); backdrop-filter: blur(6px); animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; z-index: 2; background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: popIn .3s var(--ease); border: 1px solid var(--border);
}
.modal-card.wide { max-width: 940px; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.4rem; }
.modal-foot { padding: 1.1rem 1.4rem; border-top: 1px solid var(--border); display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.modal-close { border: none; background: var(--surface-2); width: 36px; height: 36px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; transition: all .2s; flex: none; }
.modal-close:hover { background: var(--danger); color: #fff; }

/* product quick view */
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.qv-gallery .qv-main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1; }
.qv-gallery .qv-main img { width: 100%; height: 100%; object-fit: cover; }
.qv-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.qv-thumbs img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border .2s; }
.qv-thumbs img.active { border-color: var(--primary); }
.qv-info .qv-title { font-size: 1.35rem; margin: .5rem 0; }
.qv-price { display: flex; align-items: baseline; gap: .6rem; margin: .6rem 0; }
.qv-price strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.qv-price del { color: var(--muted); }
.qv-features { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.qv-features li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text-2); }
.qv-features li::before { content: '✓'; color: var(--success); font-weight: 800; }
.qv-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.1rem 0; }
.qv-meta div { background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .82rem; }
.qv-meta span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
@media (max-width: 760px) { .qv { grid-template-columns: 1fr; } }

/* ================================= TOASTS ================================ */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 400; display: flex; flex-direction: column; gap: .65rem; max-width: min(92vw, 380px); }
.toast {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--info);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .89rem;
  animation: toastIn .3s var(--ease); font-weight: 500;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warning); }
.toast .t-icon { font-size: 1.05rem; line-height: 1.3; }
.toast.hide { animation: toastOut .28s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@media (max-width: 560px) { .toast-wrap { left: 16px; right: 16px; bottom: 16px; } }

/* ============================== CONTACT / CTA ============================ */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-xs); }
.contact-info-list { display: grid; gap: 1rem; }
.contact-brand { margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.contact-brand h3 { margin: 0 0 .2rem; letter-spacing: .03em; }
.contact-motto { font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.ci-item { display: flex; gap: .9rem; align-items: flex-start; }
.ci-item .ci-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 1.2rem; background: var(--surface-2); flex: none; }
.ci-item strong { display: block; font-size: .92rem; }
.ci-item span, .ci-item a { font-size: .87rem; color: var(--muted); }
.ci-item a:hover { color: var(--primary); }
.social-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.social-btn {
  width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: all .22s var(--ease); font-size: 1.05rem; line-height: 0; flex: none;
}
.social-btn svg { display: block; width: 21px; height: 21px; fill: currentColor; transition: transform .22s var(--ease); }
.social-btn:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 93, 46, .38); }
.social-btn:hover svg { transform: scale(1.12); }

.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: 2.4rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 26px 60px rgba(255, 93, 46, .3); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: .4rem 0 0; }
.cta-band .btn { --btn-bg: #fff; --btn-color: #b8390f; }

/* ================================== FOOTER =============================== */
.site-footer { background: #0b0f1c; color: #b9c2d8; padding: 62px 0 0; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #05070e; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-bottom: 2.4rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-grid a { color: #b9c2d8; font-size: .89rem; display: block; padding: .28rem 0; transition: all .18s; }
.footer-grid a:hover { color: var(--gold); transform: translateX(4px); }
.footer-about p { font-size: .89rem; color: #94a0bb; max-width: 340px; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .brand-text { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.pay-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-tags span { background: rgba(255, 255, 255, .08); padding: .32rem .7rem; border-radius: 8px; font-size: .78rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================= MISC UTILITIES ============================ */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--grad); color: #fff; font-size: 1.15rem; cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 93, 46, .38); opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .28s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.toast-wrap + .back-to-top { bottom: 22px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Sections switched OFF in the admin (🧩 Home page content panel) ----
   The "sec-off-xxx" classes are put on <html> by the anti-flicker inline script in
   index.html BEFORE first paint, and kept in sync by applySectionVisibility() in
   home.js — so hidden sections never flash on reload and still update in realtime. */
html.sec-off-announcement .topbar,
html.sec-off-menu .main-nav,
html.sec-off-hero .hero,
html.sec-off-trust .trust-bar,
html.sec-off-about #about,
html.sec-off-categories #categories,
html.sec-off-latest #latest,
html.sec-off-offers #offers,
html.sec-off-products #products,
html.sec-off-filters .filter-bar,
html.sec-off-contact #contact,
html.sec-off-contactform #contactFormCard,
html.sec-off-footer .site-footer,
html.sec-off-socials #socialRow { display: none !important; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner.dark { border-color: var(--border); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 2.5rem; color: var(--muted); font-weight: 600; }

.marquee { overflow: hidden; white-space: nowrap; }

/* ==========================================================================
   MOBILE / RESPONSIVE FIXES
   Tuned for phones (320–640px) and small tablets (641–1080px):
   tighter spacing, 2-up product/category grids, stacked full-width controls,
   touch-friendly hit areas and no horizontal overflow.
   ========================================================================== */

/* iOS auto-zooms any focused field smaller than 16px */
@media (max-width: 900px) {
  .input, .select, .textarea { font-size: 16px; }
}

/* --------------------------------- header --------------------------------- */
@media (max-width: 640px) {
  .header-main { gap: .55rem; padding: .6rem 0; }
  .brand { gap: .5rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-text { font-size: 1rem; }
  .brand-text em { font-size: .58rem; letter-spacing: .16em; }
  .icon-btn { width: 38px; height: 38px; border-radius: 12px; font-size: .98rem; }
  .header-actions { gap: .4rem; }
  .header-search .input { height: 44px; font-size: 16px; }
  .header-search .btn { padding: 0 .9rem; font-size: .86rem; }
  .header-cta { padding: .55rem 1.05rem; font-size: .86rem; } /* compact "Shop Now" */
  .nav-links > li > a { padding: .78rem .3rem; font-size: .95rem; }
}
@media (max-width: 480px) {
  /* Icon-only submit keeps the search field wide enough next to "Shop Now"
     (the form still submits on Enter / the search icon). */
  .header-search .btn { width: 42px; padding: 0; font-size: 0; }
  .header-search .btn::after { content: '🔍'; font-size: .95rem; }
}
@media (max-width: 360px) {          /* very small phones (320px) */
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: .88rem; }
  .brand-text em { display: none; }
  .icon-btn { width: 36px; height: 36px; }
}

/* ---------------------------------- hero ---------------------------------- */
@media (max-width: 640px) {
  .hero-inner { padding: 42px 0 48px; gap: 1.9rem; }
  .hero .hero-lead { font-size: .98rem; }
  .hero-actions .btn { flex: 1 1 100%; }        /* stacked, full-width CTAs */
  .hero-stats { gap: .9rem 1.5rem; margin-top: 1.7rem; }
  .hero-stats .stat strong { font-size: 1.35rem; }
  .showcase-card { padding: .85rem; border-radius: 22px; }
  .showcase-tag { left: 8px; top: -12px; padding: .4rem .85rem; }
  .showcase-meta { padding: .75rem .3rem .2rem; }
}

/* --------------------------- sections & cards ----------------------------- */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 1.5rem; gap: .9rem 1rem; }
  .section-head p { font-size: .92rem; }
  .card { padding: 1.15rem; }
  .empty-state { padding: 2.5rem 1rem; }
  .sk-card { height: 300px; }
}

/* -------------------------------- trust bar ------------------------------- */
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; gap: .8rem; padding: 1.1rem 0; }
  .trust-item { gap: .75rem; }
  .trust-item .ti-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 1.15rem; }
  .trust-item strong { font-size: .9rem; }
}

/* ------------------------------- categories ------------------------------- */
@media (max-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .category-card { padding: 1rem .9rem; gap: .35rem; border-radius: 18px; }
  .category-card .cc-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem; }
  .category-card h3 { font-size: .93rem; }
  .category-card p { font-size: .76rem; }
  .category-card .cc-foot { margin-top: .35rem; flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .72rem; }
}

/* ------------------------------- products --------------------------------- */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .pc-body { padding: .75rem .7rem .85rem; gap: .4rem; }
  .pc-cat { font-size: .66rem; }
  .pc-title { font-size: .88rem; min-height: 2.3em; }
  .pc-rating { font-size: .7rem; gap: .25rem; }
  .pc-price { gap: .35rem; }
  .pc-price strong { font-size: 1.05rem; }
  .pc-price del { font-size: .76rem; }
  .pc-price .off { font-size: .66rem; }
  .pc-stock { font-size: .7rem; }
  .pc-actions .btn { padding: .45rem .5rem; font-size: .78rem; }
  .pc-badges { top: .5rem; left: .5rem; gap: .25rem; }
  .pc-badges .badge { font-size: .6rem; padding: .18rem .45rem; }
  .pc-fav { top: .5rem; right: .5rem; width: 30px; height: 30px; font-size: .85rem; }
  .product-card:hover { transform: none; }
}
/* touch devices keep a pressed state instead of a sticky hover lift */
@media (hover: none) {
  .product-card:hover, .category-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .category-card:hover::after { transform: none; }
  .btn:hover { transform: none; }
}

/* ------------------------------- filter bar ------------------------------- */
@media (max-width: 640px) {
  .filter-bar { padding: .85rem; gap: .6rem; }
  .filter-bar .fb-search { flex: 1 0 100%; }
  .filter-bar .select { width: 100%; min-width: 0; flex: 1 1 calc(50% - .3rem); }
  .filter-bar #gridCategory { flex: 1 0 100%; }
  .filter-bar .btn { flex: 1 1 auto; }
  .filter-count { margin-left: 0; flex: 1 0 100%; text-align: right; }
}

/* --------------------------------- modals --------------------------------- */
@media (max-width: 640px) {
  .modal { padding: .6rem; }
  .modal-card, .modal-card.wide { max-height: 94vh; border-radius: 20px; }
  .modal-head { padding: 1rem; gap: .6rem; }
  .modal-body { padding: 1rem; }
  .qv-price strong { font-size: 1.5rem; }
  .qv-info .qv-title { font-size: 1.15rem; }
}

/* --------------------------- contact / CTA band --------------------------- */
@media (max-width: 640px) {
  .contact-grid { gap: 1.4rem; }
  .ci-item { gap: .7rem; }
  .ci-item .ci-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 1.05rem; }
  .cta-band { padding: 1.4rem; flex-direction: column; align-items: stretch; gap: 1rem; }
  .cta-band .btn { width: 100%; }
  .social-btn { width: 42px; height: 42px; }
}

/* --------------------------------- about ---------------------------------- */
@media (max-width: 640px) {
  .about-copy h2 { font-size: 1.35rem; }
  .about-copy .about-sub { font-size: .95rem; }
  .about-point { font-size: .78rem; padding: .35rem .75rem; }
  .about-banner > img { height: 210px; } /* slightly shorter band on small phones */
}

/* --------------------------------- footer --------------------------------- */
@media (max-width: 560px) {
  .site-footer { padding-top: 44px; }
  .footer-grid { gap: 1.6rem; padding-bottom: 1.6rem; }
  .footer-bottom { justify-content: flex-start; }
  .pay-tags span { font-size: .72rem; padding: .28rem .6rem; }
}

/* ------------------------ floating UI (toasts / FAB) ---------------------- */
@media (max-width: 560px) {
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  /* keep the back-to-top button above the toast strip instead of under it */
  .back-to-top, .toast-wrap + .back-to-top { right: 14px; bottom: 74px; width: 44px; height: 44px; }
}
