/* ============================================================
   MODERN SURGICALS — PUBLIC SITE STYLESHEET (core)
   Mobile-first: base = 360px, enhanced at 640 / 960 / 1200.
   Page-specific styles live in assets/css/pages/*.css
   ============================================================ */

:root {
  /* brand */
  --primary:        #0898CC;   /* supplied blue: icons, borders, large text */
  --primary-btn:    #067DA9;   /* solid buttons (white text >= 4.5:1) */
  --primary-dark:   #056A91;
  --primary-deep:   #034B69;
  --primary-light:  #E6F6FC;
  --primary-tint:   #F4FBFE;
  --brand-navy:     #313095;   /* sampled from the MSC logo */
  --brand-navy-dk:  #25246F;
  --accent:         #EF1C24;   /* logo red: strips, decoration */
  --accent-strong:  #C8141C;   /* red used behind/for text */
  --accent-tint:    #FDECEC;

  /* neutrals */
  --ink:       #0B2A3A;
  --ink-soft:  #4F6572;
  --ink-faint: #7A8F9B;
  --line:      #D6E4EC;
  --line-soft: #E8F0F5;
  --bg:        #FFFFFF;
  --bg-soft:   #F4FAFD;

  /* status */
  --ok:        #1B8A4B;
  --ok-tint:   #E5F6EC;
  --warn:      #B76E00;
  --warn-tint: #FFF3DC;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-sm: 0 1px 2px rgba(3,75,105,.07), 0 2px 6px rgba(3,75,105,.05);
  --shadow-md: 0 10px 28px rgba(3,75,105,.10);
  --shadow-lg: 0 24px 56px rgba(3,75,105,.16);

  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22,.8,.3,1);
  --header-h: 64px;
  --gutter: 20px;                                   /* side margin of every page section */
  --container-w: min(1240px, 100% - (var(--gutter) * 2));
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }

.container { width: var(--container-w); margin-inline: auto; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--brand-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
[hidden] { display: none !important; }

/* ---------- layout helpers ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--primary-tint); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }

.section-heading {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.section-heading h2 { margin: 0; position: relative; padding-bottom: 14px; }
.section-heading h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
  background: var(--primary);
}
.section-heading p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.section-heading.center { align-items: center; text-align: center; }
.section-heading.center h2::after { left: 50%; transform: translateX(-50%); }
.view-all {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-strong);
  transition: gap .25s var(--ease);
}
.view-all:hover { gap: 12px; }

@media (min-width: 640px) {
  .section { padding: 72px 0; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-heading.center { flex-direction: column; align-items: center; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  border: 2px solid transparent; border-radius: var(--radius-s);
  background: var(--primary-btn); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6,125,169,.32); }
.btn:active { transform: translateY(0); }
.btn::after { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: rgba(255,255,255,.28);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--primary-btn); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-navy { background: var(--brand-navy); }
.btn-navy:hover { background: var(--brand-navy-dk); box-shadow: 0 10px 22px rgba(49,48,149,.3); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); box-shadow: none; }
.btn-white { background: #fff; color: var(--brand-navy); }
.btn-white:hover { box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.btn-whatsapp { background: #1B9E50; }
.btn-whatsapp:hover { background: #157B3E; box-shadow: 0 10px 22px rgba(27,158,80,.3); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%; color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label, .field-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--accent-strong); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=search], .field input[type=date], .field select, .field textarea,
select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea, textarea.input { min-height: 120px; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: #A9C7D6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(8,152,204,.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent-strong); background: #FFF8F8; }
.field-error { display: none; margin-top: 6px; font-size: .82rem; font-weight: 500; color: var(--accent-strong); }
.field.has-error .field-error { display: block; animation: shake .35s; }
.field-hint { margin-top: 6px; font-size: .8rem; color: var(--ink-faint); }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } .form-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.input-group { position: relative; }
.input-group .toggle-pass {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; color: var(--ink-faint);
}
.input-group .toggle-pass:hover { color: var(--primary-dark); background: var(--primary-light); }
.input-group input { padding-right: 48px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary-btn); flex-shrink: 0; }

.alert { padding: 14px 16px; border-radius: var(--radius-s); font-size: .92rem; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--ok-tint); color: #11693A; border-color: #A9DDBF; }
.alert-error   { background: var(--accent-tint); color: var(--accent-strong); border-color: #F5B8BB; }
.alert-info    { background: var(--primary-light); color: var(--primary-deep); border-color: #B5E3F3; }

/* ---------- top strip + header ---------- */
.top-strip { position: relative; height: 5px; background: var(--brand-navy); }
.top-strip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 28%; background: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(3,75,105,.12); }
.header-main {
  display: flex; align-items: center; gap: 4px;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-main { min-height: 56px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; margin-left: 4px; }
.logo img { height: 36px; width: auto; border-radius: 4px; transition: height .3s var(--ease), transform .3s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.logo-text { display: none; line-height: 1.2; }
.logo-text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--brand-navy); }
.logo-text span { font-size: .72rem; color: var(--ink-soft); }

.header-actions { display: flex; align-items: center; gap: 2px; }
.header-action {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px; font-weight: 600; font-size: .9rem; border-radius: var(--radius-s);
  transition: background .2s, color .2s;
}
.header-action:hover { background: var(--primary-light); color: var(--primary-dark); }
.login-link span { display: none; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #fff; background: var(--accent-strong);
  border-radius: 999px; border: 2px solid #fff;
}
.cart-count.bump { animation: bump .5s var(--ease); }

/* search: icon-toggled bar on mobile, inline on desktop */
.search-box {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; padding: 10px 16px 14px; background: #fff; border-bottom: 1px solid var(--line-soft);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  box-shadow: 0 14px 24px rgba(3,75,105,.10);
}
.search-box.open { transform: none; opacity: 1; visibility: visible; }
.search-box input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); outline: none;
  background: #fff;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(8,152,204,.15); }
.search-button {
  width: 54px; border: 0; background: var(--primary-btn); color: #fff;
  border-radius: 0 var(--radius-s) var(--radius-s) 0; display: grid; place-items: center;
  transition: background .2s;
}
.search-button:hover { background: var(--primary-dark); }

/* nav: slide-in drawer on mobile */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(3,40,60,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; backdrop-filter: blur(2px);
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
.site-nav {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 160;
  width: min(86vw, 340px); background: #fff; overflow-y: auto;
  transform: translateX(-102%); transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.site-nav.open { transform: none; }
.site-nav .nav-inner { width: 100%; padding: 0; display: flex; flex-direction: column; min-height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--brand-navy); }
.drawer-head img { height: 38px; width: auto; border-radius: 4px; }
.drawer-head .icon-btn { color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-nav ul { padding: 10px 0; }
.site-nav li a {
  display: block; padding: 14px 20px; font-weight: 600; border-left: 4px solid transparent;
  transition: background .2s, border-color .2s, padding-left .25s var(--ease);
}
.site-nav li a:hover { background: var(--primary-tint); padding-left: 26px; }
.site-nav li a.active { color: var(--primary-dark); background: var(--primary-light); border-left-color: var(--primary); }
.drawer-foot { margin-top: auto; padding: 18px 20px 24px; display: grid; gap: 12px; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.drawer-foot a:not(.btn) { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.drawer-foot .icon { color: var(--primary); }

@media (min-width: 640px) {
  .logo img { height: 42px; }
  .logo-text { display: block; }
  .login-link span { display: inline; }
}
@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .container.header-main { gap: 20px; }
  .nav-toggle, .search-toggle, .drawer-head, .drawer-foot, .nav-backdrop { display: none; }
  .logo { margin: 0; }
  .logo img { height: 48px; }
  .search-box {
    position: static; flex: 1; max-width: 560px; padding: 0; background: transparent; border: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible; margin: 0 auto;
  }
  .header-actions { margin-left: auto; gap: 6px; }
  .site-nav {
    position: static; width: auto; transform: none; overflow: visible; box-shadow: none; background: transparent;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav .nav-inner { width: var(--container-w); flex-direction: row; min-height: 0; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav li a {
    position: relative; padding: 14px 16px; font-size: .92rem; border-left: 0; font-weight: 500; color: var(--ink-soft);
  }
  .site-nav li a:hover { background: transparent; padding-left: 16px; color: var(--primary-dark); }
  .site-nav li a.active { background: transparent; color: var(--brand-navy); font-weight: 700; }
  .site-nav li a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px;
    background: var(--primary);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .site-nav li a:hover::after, .site-nav li a.active::after { transform: scaleX(1); }
  .site-nav li:first-child a { padding-left: 0; }
  .site-nav li:first-child a::after { left: 0; }
}

/* ---------- page banner + breadcrumb ---------- */
.page-banner {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-navy);
  color: #fff; padding: 40px 0 44px;
}
.banner-shape { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.banner-shape-a { width: 260px; height: 260px; right: -60px; top: -90px; background: rgba(8,152,204,0.28); animation: float 9s ease-in-out infinite; }
.banner-shape-b { width: 200px; height: 200px; left: -50px; bottom: -90px; background: rgba(239,28,36,0.17); animation: float 11s ease-in-out infinite reverse; }
.page-banner-content { width: var(--container-w); margin-inline: auto; animation: rise .7s var(--ease) both; }
.page-banner h1 { color: #fff; margin: 8px 0 8px; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.page-banner p { color: rgba(255,255,255,.85); max-width: 62ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.breadcrumb.dark { color: var(--ink-soft); padding: 18px 0; }
.breadcrumb.dark a:hover { color: var(--primary-dark); }
.breadcrumb.dark [aria-current] { color: var(--ink); }
@media (min-width: 960px) { .page-banner { padding: 56px 0 60px; } }

/* ---------- cards / chips / badges ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card-hover:hover,
.js .card-hover[data-reveal].is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.icon-bubble, .usp-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary-dark); margin-bottom: 14px;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.card-hover:hover .icon-bubble, .card-hover:hover .usp-icon { background: var(--primary-btn); color: #fff; transform: rotate(-6deg) scale(1.06); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: .85rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary-deep); border: 1px solid transparent; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
a.chip:hover, button.chip:hover { background: #fff; border-color: var(--primary); }
.empty-state {
  text-align: center; padding: 56px 20px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-l);
}
.empty-state .usp-icon { width: 64px; height: 64px; border-radius: 50%; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--ink-soft); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.08); }
.discount {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 9px; font-size: .72rem; font-weight: 700;
  color: #fff; background: var(--accent-strong); border-radius: 6px;
}
.quick-view {
  position: absolute; left: 50%; bottom: 12px; z-index: 1; display: none; align-items: center; gap: 6px;
  transform: translate(-50%, 14px); opacity: 0; padding: 8px 14px; font-size: .8rem; font-weight: 600;
  background: #fff; color: var(--primary-dark); border-radius: 999px; box-shadow: var(--shadow-md); white-space: nowrap;
  transition: transform .35s var(--ease), opacity .3s;
}
.product-card:hover .quick-view { transform: translate(-50%, 0); opacity: 1; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 6px; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: .7rem; color: var(--ink-faint); }
.stock-badge { font-weight: 700; }
.stock-badge.in { color: var(--ok); }
.stock-badge.low { color: var(--warn); }
.stock-badge.out { color: var(--accent-strong); }
.product-name { font-size: .95rem; line-height: 1.35; margin: 0; flex: 1; }
.product-name a:hover { color: var(--primary-dark); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--brand-navy); }
.old-price { font-size: .82rem; color: var(--ink-faint); text-decoration: line-through; }
.add-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: 4px;
  font-weight: 700; font-size: .85rem; color: var(--primary-dark); background: var(--primary-light);
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  transition: background .2s, color .2s, transform .2s;
}
.add-button:hover:not(:disabled) { background: var(--primary-btn); color: #fff; }
.add-button:active:not(:disabled) { transform: scale(.97); }
.add-button.added { background: var(--ok); color: #fff; }
.add-button:disabled { background: var(--line-soft); color: var(--ink-faint); cursor: not-allowed; }
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product-body { padding: 16px; }
  .product-name { font-size: 1rem; }
  .quick-view { display: inline-flex; }
}
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px; justify-content: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); font-weight: 600; font-size: .9rem; background: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); }
.pagination .current { background: var(--primary-btn); border-color: var(--primary-btn); color: #fff; }
.pagination .disabled { opacity: .45; }

/* ---------- CTA band (shared) ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: var(--brand-navy);
  border-radius: var(--radius-l); padding: 36px 24px; display: grid; gap: 20px; align-items: center;
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.cta-band::before { width: 320px; height: 320px; right: -80px; top: -140px; background: rgba(8,152,204,0.25); animation: float 10s ease-in-out infinite; }
.cta-band::after { width: 220px; height: 220px; left: -60px; bottom: -110px; background: rgba(239,28,36,0.17); animation: float 12s ease-in-out infinite reverse; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 72px; background: var(--brand-navy); color: rgba(255,255,255,.82); padding: 56px 0 0; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent); }
.footer-glow { position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: rgba(8,152,204,0.17); pointer-events: none; }
.footer-grid { position: relative; display: grid; gap: 32px; padding-bottom: 40px; }
.footer-logo img { height: 56px; width: auto; border-radius: 4px; }
.footer-col p { margin: 16px 0; font-size: .92rem; max-width: 42ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer-col li { margin-bottom: 10px; font-size: .92rem; }
.footer-col li a { display: inline-block; transition: color .2s, transform .25s var(--ease); }
.footer-col li a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--primary); margin-top: 3px; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.trust-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .78rem; font-weight: 600; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.social-row { display: flex; gap: 10px; }
.social-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .25s, transform .3s var(--ease); }
.social-row a:hover { background: var(--primary); transform: translateY(-4px); }
.footer-bottom {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 0 88px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; padding-bottom: 24px; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 40px; } }

/* ---------- floating widgets ---------- */
.whatsapp-float, .back-top { position: fixed; right: 16px; z-index: 90; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow-md); }
.whatsapp-float { bottom: 16px; width: 54px; height: 54px; background: #1B9E50; color: #fff; transition: transform .3s var(--ease); }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1B9E50; z-index: -1; animation: ping 2.4s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
.back-top {
  bottom: 82px; width: 44px; height: 44px; border: 0; background: var(--brand-navy); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary-btn); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; max-width: calc(100% - 32px);
  padding: 13px 20px; font-size: .92rem; font-weight: 600; color: #fff; background: var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-lg); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
body.has-sticky-bar .whatsapp-float { bottom: 88px; }
body.has-sticky-bar .back-top { bottom: 154px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"]  { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="zoom"]  { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* revealed cards keep a fast hover transition instead of the slow reveal one */
.js .card-hover[data-reveal].is-visible { transition: opacity .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; transition-delay: var(--d, 0ms), 0s, 0s, 0s; }
/* product cards keep their own hover transform once revealed */
.js .product-card[data-reveal].is-visible { transition: opacity .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; transition-delay: var(--d, 0ms), 0s, 0s, 0s; }

/* ---------- keyframes ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.06); } }
@keyframes pulse  { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .5; } }
@keyframes bump   { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes ping   { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes shake  { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes pop    { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
