/* ============================================================
   Pefip Graphic - Core Theme
   Colors are driven by CSS variables so the admin panel can
   override them live (see the <style> block in header.php).
   ============================================================ */

:root {
  --c-primary: #12376E;
  --c-secondary: #18A69A;
  --c-accent: #F5941E;
  --c-dark: #0F2547;
  --c-light: #F5F8FC;

  --c-text: #1e2a3a;
  --c-muted: #5f6c7b;
  --c-border: #e6ecf3;
  --c-white: #ffffff;

  --grad-brand: linear-gradient(120deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  --grad-accent: linear-gradient(120deg, var(--c-secondary) 0%, var(--c-accent) 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(18, 55, 110, 0.06);
  --shadow: 0 10px 30px rgba(18, 55, 110, 0.10);
  --shadow-lg: 0 20px 50px rgba(18, 55, 110, 0.16);

  --container: 1200px;
  --header-h: 76px;

  --ff-head: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--ff-head); font-weight: 700; line-height: 1.2; color: var(--c-dark); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.bg-light { background: var(--c-light); }
.bg-brand { background: var(--grad-brand); color: #fff; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: 13px 28px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(18,55,110,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,55,110,.36); }
.btn-accent { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(245,148,30,.3); }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--c-primary); }
.btn-ghost { border-color: var(--c-border); color: var(--c-primary); background: #fff; }
.btn-ghost:hover { border-color: var(--c-primary); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 600;
  color: var(--c-secondary); letter-spacing: 2px; text-transform: uppercase;
  font-size: .8rem; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-lead { color: var(--c-muted); max-width: 720px; margin: 16px auto 0; }

/* ============================================================
   Header / Navbar
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; border-radius: 8px; }
.brand-text { font-family: var(--ff-head); font-weight: 700; color: var(--c-primary); font-size: 1.15rem; line-height: 1.1; }
.brand-text span { display: block; font-size: .68rem; font-weight: 500; color: var(--c-secondary); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--ff-head); font-weight: 500; font-size: .96rem; color: var(--c-text);
  padding: 10px 16px; border-radius: 10px; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-primary); background: var(--c-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cart { position: relative; font-size: 1.3rem; color: var(--c-primary); padding: 6px; }
.nav-cart .badge {
  position: absolute; top: -4px; right: -6px; background: var(--c-accent); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--c-primary); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--grad-brand); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,148,30,.35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(24,166,154,.4), transparent 40%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.12rem; margin-top: 18px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 50px;
  font-size: .85rem; font-weight: 500; margin-bottom: 22px;
}

/* ============================================================
   Stat counters
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--ff-head); font-weight: 800; font-size: 2.4rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--c-muted); font-weight: 500; margin-top: 6px; }

/* ============================================================
   Trust badges
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.trust-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 1.4rem;
}
.trust-card h4 { font-size: 1.02rem; margin-bottom: 3px; }
.trust-card p { color: var(--c-muted); font-size: .9rem; }

/* ============================================================
   Service / product cards
   ============================================================ */
/* Compact, professional product cards: more per row, tighter spacing. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .thumb { aspect-ratio: 16 / 10; background: var(--c-light); overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.02rem; line-height: 1.3; }
.service-card p { color: var(--c-muted); font-size: .84rem; line-height: 1.55; margin-top: 6px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .badge-pill { font-size: .68rem; padding: 3px 9px; }
.service-card .explore { margin-top: 12px; color: var(--c-secondary); font-weight: 600; font-family: var(--ff-head); font-size: .86rem;
  display: inline-flex; align-items: center; gap: 6px; }
.service-card .explore i { transition: transform .2s; font-size: .78rem; }
.service-card:hover .explore i { transform: translateX(4px); }
.service-card .price-tag { font-size: .98rem; }
.tag-new {
  position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--c-accent); color: #fff;
  font-size: .66rem; font-weight: 700; font-family: var(--ff-head); padding: 3px 10px; border-radius: 50px;
}

/* ---------- Feature icon (thumb placeholder) ---------- */
.thumb-icon { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: var(--grad-brand); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 90% 10%, rgba(245,148,30,.4), transparent 40%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 12px auto 26px; max-width: 640px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--c-dark); color: #c6d3e4; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-brand img { height: 52px; border-radius: 8px; margin-bottom: 16px; background:#fff; padding:4px; }
.footer-grid p { font-size: .92rem; line-height: 1.7; }
.footer-links a { display: block; padding: 6px 0; color: #c6d3e4; font-size: .93rem; transition: color .2s; }
.footer-links a:hover { color: var(--c-accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; }
.footer-contact i { color: var(--c-secondary); margin-top: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; font-size: 1.1rem; transition: all .2s; }
.footer-social a:hover { background: var(--c-accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; text-align: center; font-size: .88rem; }

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 58px; height: 58px;
  border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center;
  font-size: 1.8rem; box-shadow: 0 8px 24px rgba(37,211,102,.5); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   Utility: Vision/Mission, page hero
   ============================================================ */
.page-hero { background: var(--grad-brand); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; margin: 14px auto 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.info-card { background:#fff; border:1px solid var(--c-border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.info-card .ic { width:60px;height:60px;border-radius:16px;background:var(--grad-accent);color:#fff;display:grid;place-items:center;font-size:1.6rem;margin-bottom:18px; }

/* Contact department cards */
.dept-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.dept-card { background:#fff;border:1px solid var(--c-border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm); }
.dept-card .role { color: var(--c-secondary); font-weight:600; font-family:var(--ff-head); }
.dept-card .time { color: var(--c-muted); font-size:.85rem; }
.dept-card .person { font-size:1.1rem; font-weight:700; color:var(--c-dark); margin-top:10px; }
.dept-card .phone { color: var(--c-primary); font-weight:600; }

/* ============================================================
   Animations (fallback for AOS)
   ============================================================ */
[data-aos] { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 20px; gap: 2px; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s ease; height: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 22px; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.cols-4, .stats, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1rem; }
}

/* ============================================================
   Forms, alerts & shared components (Task 3+)
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: #e7f8f0; color: #12724d; border-color: #b7e6cf; }
.alert-error   { background: #fdecec; color: #b42323; border-color: #f6c6c6; }
.alert-info    { background: #e9f2fe; color: #14508f; border-color: #c3ddf9; }
.alert-warning { background: #fef6e7; color: #915b12; border-color: #f8e2b5; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--ff-head); font-weight: 500; font-size: .92rem; margin-bottom: 7px; color: var(--c-dark); }
.form-control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--c-border); border-radius: 10px;
  font-family: var(--ff-body); font-size: .97rem; color: var(--c-text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(24,166,154,.15); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6c7b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .82rem; color: var(--c-muted); margin-top: 5px; }
.required { color: #e11d48; }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: rgba(255,255,255,.8); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }

/* Price tags */
.price-from { color: var(--c-muted); font-size: .82rem; }
.price-tag { font-family: var(--ff-head); font-weight: 700; color: var(--c-primary); font-size: 1.15rem; }
.badge-pill { display:inline-block; background: var(--c-light); color: var(--c-primary); font-size:.72rem; font-weight:600; padding:4px 12px; border-radius:50px; font-family:var(--ff-head); }
.badge-quote { background: #fef0e0; color: #b4661a; }

/* Category filter chips */
.chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin: 8px 0 36px; }
.chip { padding:8px 20px; border-radius:50px; border:1.5px solid var(--c-border); background:#fff; font-family:var(--ff-head); font-weight:500; font-size:.9rem; color:var(--c-text); cursor:pointer; transition:all .2s; }
.chip:hover { border-color: var(--c-secondary); color: var(--c-primary); }
.chip.active { background: var(--grad-brand); color:#fff; border-color:transparent; }

/* Product detail */
.pd-grid { display:grid; grid-template-columns: 1fr 1fr; gap:44px; align-items:start; }
.pd-media { position: sticky; top: 96px; }
.pd-image { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); background: var(--grad-brand); display:grid; place-items:center; }
.pd-image .thumb-icon { font-size: 5rem; }
.pd-image img { width:100%; height:100%; object-fit:cover; }
.pd-title { font-size: clamp(1.6rem,3vw,2.2rem); }
.opt-group { margin: 18px 0; }
.opt-group > label { display:block; font-family:var(--ff-head); font-weight:600; margin-bottom:8px; }
.opt-values { display:flex; flex-wrap:wrap; gap:10px; }
.opt-pill { padding:9px 18px; border:1.5px solid var(--c-border); border-radius:10px; cursor:pointer; font-size:.9rem; transition:all .2s; background:#fff; }
.opt-pill:hover { border-color: var(--c-secondary); }
.opt-pill.selected { background: var(--c-primary); color:#fff; border-color:var(--c-primary); }
.qty-box { display:inline-flex; align-items:center; border:1.5px solid var(--c-border); border-radius:10px; overflow:hidden; }
.qty-box button { width:42px; height:44px; border:0; background:#f4f7fb; font-size:1.2rem; cursor:pointer; color:var(--c-primary); }
.qty-box input { width:60px; text-align:center; border:0; font-size:1rem; }
.pd-price { font-family:var(--ff-head); font-weight:800; font-size:2rem; color:var(--c-primary); }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:start; }
.contact-info-card { display:flex; gap:16px; align-items:flex-start; padding:20px; border:1px solid var(--c-border); border-radius:var(--radius); margin-bottom:16px; background:#fff; }
.contact-info-card .ic { flex:none; width:48px; height:48px; border-radius:12px; background:var(--grad-brand); color:#fff; display:grid; place-items:center; font-size:1.2rem; }
.map-embed { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--c-border); }
@media (max-width: 991px){ .pd-grid, .contact-grid { grid-template-columns: 1fr; } .pd-media{ position:static; } .form-row{ grid-template-columns:1fr; } }

/* ============================================================
   Auth pages (login / register / reset)
   ============================================================ */
.auth-wrap { display:grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-brand { background: var(--grad-brand); color:#fff; padding: 60px; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.auth-brand::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(245,148,30,.35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(24,166,154,.4), transparent 40%); }
.auth-brand > * { position:relative; z-index:2; }
.auth-logo { display:inline-block; width:auto; height:auto; max-height:56px; max-width:210px;
  object-fit:contain; background:#fff; border-radius:12px; padding:8px 16px; margin-bottom:22px; box-shadow:0 8px 24px rgba(0,0,0,.12); }
.auth-brand h2 { color:#fff; font-size: 2rem; }
.auth-brand ul { margin-top: 24px; }
.auth-brand li { display:flex; gap:12px; align-items:center; margin-bottom:14px; color:rgba(255,255,255,.92); }
.auth-brand li i { width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.16); display:grid; place-items:center; }
.auth-form-panel { padding: 60px; display:flex; align-items:center; justify-content:center; background:#fff; }
.auth-form { width:100%; max-width: 420px; }
.auth-tabs { display:flex; gap:6px; background:var(--c-light); padding:6px; border-radius:12px; margin-bottom:26px; }
.auth-tab { flex:1; text-align:center; padding:11px; border-radius:9px; font-family:var(--ff-head); font-weight:600; cursor:pointer; color:var(--c-muted); border:0; background:transparent; transition:all .2s; }
.auth-tab.active { background:#fff; color:var(--c-primary); box-shadow: var(--shadow-sm); }
.auth-pane { display:none; }
.auth-pane.active { display:block; }
.auth-alt { text-align:center; margin-top:18px; color:var(--c-muted); font-size:.9rem; }
.auth-alt a { color:var(--c-secondary); font-weight:600; }
.input-check { display:flex; align-items:center; gap:8px; font-size:.9rem; color:var(--c-muted); }
.input-check input { width:16px; height:16px; }
.auth-row-between { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media (max-width: 900px){ .auth-wrap{ grid-template-columns:1fr; } .auth-brand{ display:none; } .auth-form-panel{ padding:40px 22px; } }

/* ============================================================
   Cart & checkout summary (Task 8+)
   ============================================================ */
.cart-layout { display:grid; grid-template-columns: 1fr 360px; gap: 30px; align-items:start; }
.cart-table { width:100%; border-collapse:collapse; }
.cart-table th, .cart-table td { padding:16px; text-align:left; border-bottom:1px solid var(--c-border); vertical-align:middle; }
.cart-table th { font-family:var(--ff-head); font-size:.8rem; text-transform:uppercase; letter-spacing:.5px; color:var(--c-muted); }
.cart-table tbody tr:last-child td { border-bottom:0; }
.summary-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--c-border); color:var(--c-muted); }
.summary-row span:last-child { color:var(--c-dark); font-weight:600; }
.summary-total { font-family:var(--ff-head); font-size:1.15rem; border-bottom:0; padding-top:14px; }
.summary-total span { color:var(--c-primary) !important; font-weight:800; }
@media (max-width: 900px){ .cart-layout { grid-template-columns:1fr; } }

/* Coupon UI (cart) */
.coupon-form { display:flex; gap:8px; margin-bottom:16px; }
.coupon-form .form-control { flex:1; }
.coupon-applied { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#e7f8f0; color:#12724d; border:1px solid #b7e6cf; border-radius:10px; padding:10px 14px; margin-bottom:16px; font-size:.9rem; }
.link-btn { background:none; border:0; color:#b42323; cursor:pointer; font-weight:600; font-size:.85rem; text-decoration:underline; }

/* Checkout payment options */
.pay-option { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1.5px solid var(--c-border); border-radius:12px; margin-bottom:10px; cursor:pointer; transition:border-color .2s, background .2s; }
.pay-option:hover { border-color:var(--c-secondary); }
.pay-option input { width:18px; height:18px; }
.pay-option:has(input:checked) { border-color:var(--c-primary); background:var(--c-light); }

/* Order tracking timeline */
.track { display:flex; justify-content:space-between; position:relative; }
.track::before { content:''; position:absolute; top:18px; left:6%; right:6%; height:3px; background:var(--c-border); z-index:0; }
.track-step { position:relative; z-index:1; text-align:center; flex:1; }
.track-step .dot { width:38px; height:38px; border-radius:50%; background:#fff; border:3px solid var(--c-border); display:grid; place-items:center; margin:0 auto 8px; color:var(--c-muted); font-size:.9rem; }
.track-step.done .dot { background:var(--grad-brand); border-color:transparent; color:#fff; }
.track-step .lbl { font-size:.82rem; color:var(--c-muted); font-family:var(--ff-head); font-weight:500; }
.track-step.done .lbl { color:var(--c-primary); }
@media (max-width:560px){ .track-step .lbl{ font-size:.68rem; } }

/* Blog post content */
.blog-content { font-size:1.05rem; line-height:1.8; color:var(--c-text); }
.blog-content h2, .blog-content h3 { margin:26px 0 12px; }
.blog-content p { margin-bottom:16px; }
.blog-content ul, .blog-content ol { margin:0 0 16px 22px; }
.blog-content li { margin-bottom:8px; }
.blog-content img { max-width:100%; border-radius:var(--radius); margin:16px 0; }
.blog-content a { color:var(--c-secondary); text-decoration:underline; }

/* ============================================================
   Announcement bar (top strip)
   ============================================================ */
.announce-bar {
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    position: relative;
    z-index: 20;
}
.announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 9px 44px 9px 16px;
    text-align: center;
}
.announce-msg { display: inline-flex; align-items: center; gap: 8px; }
.announce-msg i { opacity: .9; }
.announce-msg a { color: #fff; text-decoration: underline; }
.announce-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
    border: 0;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.announce-close:hover { background: rgba(255, 255, 255, .35); }

/* ============================================================
   Home banner slider / carousel
   ============================================================ */
.pg-slider {
    position: relative;
    height: var(--slider-h, 480px);
    overflow: hidden;
    background: var(--c-dark, #0F2547);
}
.pg-slides { height: 100%; }
.pg-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* branded gradient fallback when no image is set */
    background-color: var(--c-primary, #12376E);
    background-image: linear-gradient(120deg, var(--c-primary, #12376E) 0%, var(--c-secondary, #18A69A) 100%);
    opacity: 0;
    visibility: hidden;
    /* start off to the right, slide in to centre when active */
    transform: translateX(90px);
    transition: opacity .7s ease, transform .95s cubic-bezier(.16, .84, .34, 1), visibility .7s ease;
    z-index: 1;
}
.pg-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}
/* slide that just left drifts slightly to the left as it fades */
.pg-slide.is-leaving {
    opacity: 0;
    transform: translateX(-60px);
    z-index: 1;
}
.pg-slide.has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 37, 71, .72) 0%, rgba(15, 37, 71, .38) 60%, rgba(15, 37, 71, .12) 100%);
}
.pg-slide.align-center.has-overlay::before { background: rgba(15, 37, 71, .55); }
.pg-slide.align-right.has-overlay::before {
    background: linear-gradient(270deg, rgba(15, 37, 71, .72) 0%, rgba(15, 37, 71, .38) 60%, rgba(15, 37, 71, .12) 100%);
}
.pg-slide-inner { position: relative; z-index: 3; width: 100%; }
.pg-slide-content {
    max-width: 620px;
    color: #fff;
}
/* each line/button of the active slide slides in from the right, staggered */
.pg-slide-content > * {
    opacity: 0;
    transform: translateX(45px);
}
.pg-slide.is-active .pg-slide-content > * {
    animation: pgSlideInRight .75s cubic-bezier(.16, .84, .34, 1) forwards;
}
.pg-slide.is-active .pg-slide-content > *:nth-child(1) { animation-delay: .18s; }
.pg-slide.is-active .pg-slide-content > *:nth-child(2) { animation-delay: .32s; }
.pg-slide.is-active .pg-slide-content > *:nth-child(3) { animation-delay: .46s; }
.pg-slide.align-center .pg-slide-content { margin: 0 auto; text-align: center; }
.pg-slide.align-right .pg-slide-content { margin-left: auto; text-align: right; }
.pg-slide-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0 0 14px;
    color: #fff;
}
.pg-slide-content p {
    font-size: clamp(.98rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .92);
}
.pg-slide.align-center .pg-slide-content p { margin-left: auto; margin-right: auto; }

@keyframes pgSlideInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Prev / next arrows */
.pg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .85);
    color: var(--c-primary, #12376E);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: background .2s ease, transform .2s ease;
}
.pg-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pg-prev { left: 18px; }
.pg-next { right: 18px; }

/* Dots */
.pg-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
}
.pg-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.pg-dot.is-active { background: #fff; transform: scale(1.15); }

@media (max-width: 640px) {
    .pg-slider { height: calc(var(--slider-h, 480px) * .78); min-height: 320px; }
    .pg-nav { width: 36px; height: 36px; }
    .pg-prev { left: 8px; }
    .pg-next { right: 8px; }
    .pg-slide.align-right .pg-slide-content,
    .pg-slide.align-center .pg-slide-content { text-align: left; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-slide { transition: opacity .3s ease, visibility .3s ease; transform: none; }
    .pg-slide.is-active, .pg-slide.is-leaving { transform: none; }
    .pg-slide.is-active .pg-slide-content > * { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   Password show / hide toggle
   ============================================================ */
.pw-field { position: relative; display: block; }
.pw-field .form-control { padding-right: 44px; width: 100%; }
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--c-muted, #66788f);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: .95rem;
    transition: color .2s ease, background .2s ease;
}
.pw-toggle:hover { color: var(--c-secondary, #18A69A); background: rgba(24, 166, 154, .1); }

/* ============================================================
   Product carousel ("You may also like" – horizontal sliding strip)
   ============================================================ */
.pc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pc-nav { display: flex; gap: 10px; }
.pc-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-border);
    background: #fff; color: var(--c-primary); cursor: pointer; display: grid; place-items: center;
    font-size: .95rem; box-shadow: var(--shadow-sm); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pc-btn:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }

.pc-slider { position: relative; }
.pc-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pc-track::-webkit-scrollbar { display: none; }
.pc-card {
    scroll-snap-align: start; flex: 0 0 250px; max-width: 250px;
    position: relative; background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pc-thumb { aspect-ratio: 16 / 10; background: var(--c-light); overflow: hidden; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pc-card:hover .pc-thumb img { transform: scale(1.06); }
.pc-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 1rem; line-height: 1.3; }
.pc-body p { color: var(--c-muted); font-size: .82rem; line-height: 1.5; margin-top: 6px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.pc-foot .explore { color: var(--c-secondary); font-weight: 600; font-family: var(--ff-head); font-size: .82rem;
    display: inline-flex; align-items: center; gap: 5px; }
.pc-foot .explore i { font-size: .72rem; transition: transform .2s; }
.pc-card:hover .pc-foot .explore i { transform: translateX(4px); }
.pc-foot .price-tag { font-size: .95rem; }

@media (max-width: 640px) {
    .pc-card { flex-basis: 78%; max-width: 78%; }
}

/* ============================================================
   Motion polish & micro-interactions (site-wide)
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--c-secondary), var(--c-accent));
    z-index: 2000; transition: width .12s ease; pointer-events: none;
}

/* Buttons: shine sweep on hover + lift for all variants */
.btn { position: relative; overflow: hidden; }
.btn::before {
    content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn:hover::before { left: 150%; }
.btn-ghost:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* Animated nav underline */
.nav-links a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
    background: var(--c-secondary); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Section titles get an animated accent underline (centred headers) */
.section-title { position: relative; }
.text-center .section-title::after {
    content: ''; display: block; width: 60px; height: 3px; margin: 14px auto 0;
    background: linear-gradient(90deg, var(--c-secondary), var(--c-accent)); border-radius: 3px;
    animation: growLine .8s ease both;
}
@keyframes growLine { from { width: 0; opacity: 0; } to { width: 60px; opacity: 1; } }

/* Ambient gradient drift on hero-style banners */
.page-hero, .cta-band { background-size: 180% 180%; animation: gradDrift 14s ease infinite; }
@keyframes gradDrift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Card lift + icon playfulness */
.info-card, .dept-card, .contact-info-card, .trust-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.info-card:hover, .dept-card:hover, .contact-info-card:hover, .trust-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.trust-icon, .info-card .ic, .contact-info-card .ic {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.trust-card:hover .trust-icon, .info-card:hover .ic, .contact-info-card:hover .ic {
    transform: rotate(-8deg) scale(1.12);
}

/* Footer links slide on hover */
.footer-links a { transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { transform: translateX(6px); }
.footer-social a { transition: transform .25s ease, background .25s ease; }
.footer-social a:hover { transform: translateY(-4px) scale(1.08); }

/* WhatsApp float: pulsing ring + gentle bob */
.wa-float { animation: waBob 3s ease-in-out infinite; }
.wa-float::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
    animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes waBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.wa-float:hover { transform: scale(1.1); animation-play-state: paused; }

/* Badge pills + tags subtle pop-in on hover of their card */
.tag-new { animation: tagPop .5s ease both; }
@keyframes tagPop { from { transform: scale(0); } to { transform: scale(1); } }

/* Cart badge bounce when present */
.nav-cart .badge { animation: badgePop .4s ease both; }
@keyframes badgePop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .page-hero, .cta-band, .wa-float, .wa-float::after, .tag-new, .nav-cart .badge { animation: none; }
    .btn::before { display: none; }
}

/* ============================================================
   Card animation upgrade (service cards + related carousel cards)
   ============================================================ */
.service-card, .pc-card {
    transition: transform .4s cubic-bezier(.16, .84, .34, 1), box-shadow .4s ease, border-color .3s ease;
}
/* "Lift" = how far the card rises toward you on hover (translateY) + a slight
   scale and a deeper shadow so it feels like it floats off the page. */
.service-card:hover, .pc-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 56px rgba(15, 37, 71, .24);
}

/* Growing accent bar along the top on hover */
.service-card::after, .pc-card::after {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; z-index: 5;
    background: linear-gradient(90deg, var(--c-secondary), var(--c-accent));
    transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.service-card:hover::after, .pc-card:hover::after { transform: scaleX(1); }

/* Thumb: relative for shine, animated gradient + icon pop */
.service-card .thumb, .pc-thumb { position: relative; }
.service-card .thumb-icon, .pc-thumb .thumb-icon {
    background-size: 180% 180%; background-position: 0% 0%;
    transition: background-position .7s ease;
}
.service-card:hover .thumb-icon, .pc-card:hover .thumb-icon { background-position: 100% 100%; }
.service-card .thumb-icon i, .pc-thumb .thumb-icon i {
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.service-card:hover .thumb-icon i, .pc-card:hover .thumb-icon i {
    transform: scale(1.18) rotate(-6deg);
}

/* Diagonal shine sweep across the thumbnail on hover */
.service-card .thumb::before, .pc-thumb::before {
    content: ''; position: absolute; top: 0; left: -130%; width: 60%; height: 100%; z-index: 2;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg); transition: left .75s ease; pointer-events: none;
}
.service-card:hover .thumb::before, .pc-card:hover .pc-thumb::before { left: 150%; }

/* Explore arrow travels a touch further, smoother */
.service-card:hover .explore i, .pc-card:hover .pc-foot .explore i { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
    .service-card::after, .pc-card::after,
    .service-card .thumb::before, .pc-thumb::before { display: none; }
    .service-card:hover, .pc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* ============================================================
   Premium polish: selection, scrollbar, header shrink, focus,
   back-to-top, page fade-in
   ============================================================ */

/* Branded text selection */
::selection { background: var(--c-secondary); color: #fff; }
::-moz-selection { background: var(--c-secondary); color: #fff; }

/* Slim branded scrollbar (desktop) */
@media (min-width: 900px) {
    html { scrollbar-width: thin; scrollbar-color: var(--c-secondary) #eef2f7; }
    ::-webkit-scrollbar { width: 11px; height: 11px; }
    ::-webkit-scrollbar-track { background: #eef2f7; }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(var(--c-primary), var(--c-secondary));
        border-radius: 10px; border: 2px solid #eef2f7;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--c-secondary); }
}

/* Header subtly shrinks + deepens shadow once you scroll */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(18, 55, 110, .12);
}
.site-header .nav { transition: height .3s ease; }
.site-header.scrolled .nav { height: 62px; }
.site-header .brand img { transition: height .3s ease; }
.site-header.scrolled .brand img { height: 38px; }

/* Premium focus states */
:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 2px; border-radius: 4px; }
.form-control:focus {
    outline: none; border-color: var(--c-secondary);
    box-shadow: 0 0 0 3px rgba(24, 166, 154, .16);
}

/* Back-to-top button (created by JS) */
.to-top {
    position: fixed; right: 26px; bottom: 90px; z-index: 949;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--c-primary); color: #fff; font-size: 1rem;
    display: grid; place-items: center; box-shadow: 0 8px 22px rgba(18, 55, 110, .35);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--c-secondary); transform: translateY(-3px) scale(1.05); }

/* Gentle page fade-in on load */
body { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Product & card images fade/scale in as they render */
.service-card .thumb img, .pc-thumb img, .pd-image img { animation: imgIn .7s ease both; }
@keyframes imgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    body, .service-card .thumb img, .pc-thumb img, .pd-image img { animation: none; }
    .to-top { transition: opacity .2s ease; }
}

/* ============================================================
   Product image gallery + lightbox
   ============================================================ */
.pd-gallery { position: relative; }
.pd-stage {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); background: var(--c-light);
}
.pd-stage-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; visibility: hidden; transform: scale(1.03); cursor: zoom-in;
    transition: opacity .45s ease, transform .6s ease, visibility .45s ease;
}
.pd-stage-img.is-active { opacity: 1; visibility: visible; transform: scale(1); }

.pd-gnav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .9); color: var(--c-primary); display: grid; place-items: center;
    box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease; font-size: .9rem;
}
.pd-gnav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pd-gprev { left: 12px; }
.pd-gnext { right: 12px; }
.pd-zoom {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 38px; height: 38px; border-radius: 10px; border: 0; cursor: pointer;
    background: rgba(15, 37, 71, .55); color: #fff; display: grid; place-items: center;
    backdrop-filter: blur(4px); transition: background .2s ease; font-size: .85rem;
}
.pd-zoom:hover { background: rgba(15, 37, 71, .8); }

.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
    width: 66px; height: 66px; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
    border: 2px solid transparent; background: none; transition: border-color .2s ease, transform .2s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--c-secondary); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
    background: rgba(6, 14, 28, .92); opacity: 0; transition: opacity .3s ease; padding: 24px;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); animation: lbIn .35s ease; }
@keyframes lbIn { from { transform: scale(.94); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.lb-close {
    position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.7rem; line-height: 1; border-radius: 50%;
    transition: background .2s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .25); }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; border-radius: 50%;
    transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ============================================================
   Header search, wishlist heart, mid-page ad banner
   ============================================================ */
/* Search / icon buttons in the header */
.nav-icon {
    background: none; border: 0; cursor: pointer; color: var(--c-primary);
    font-size: 1.05rem; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.nav-icon:hover { background: rgba(15, 37, 71, .07); color: var(--c-secondary); }

/* Slide-down search panel under the header */
.site-search {
    max-height: 0; overflow: hidden; background: #fff;
    transition: max-height .35s ease, box-shadow .35s ease;
}
.site-search.open { max-height: 130px; box-shadow: 0 12px 26px rgba(15, 37, 71, .10); }
.site-search form { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.site-search .fa-magnifying-glass { color: var(--c-muted); }
.site-search input { flex: 1; border: 0; outline: 0; font-size: 1.02rem; padding: 8px 4px; background: transparent; color: var(--c-text); }
.site-search-close { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--c-muted); cursor: pointer; padding: 0 4px; }
.site-search-close:hover { color: var(--c-primary); }

/* Search page inline search bar */
.search-bar {
    display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto;
    background: #fff; border: 1.5px solid var(--c-border); border-radius: 14px;
    padding: 8px 16px; box-shadow: var(--shadow-sm);
}
.search-bar .fa-magnifying-glass { color: var(--c-muted); }
.search-bar input { flex: 1; border: 0; outline: 0; font-size: 1rem; padding: 10px 4px; background: transparent; }

/* Wishlist heart button */
.wish-btn {
    -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; background: #fff;
    color: #cbd5e1; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    font-size: 1rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, color .2s ease;
}
.wish-btn:hover { transform: scale(1.12); color: #e63946; }
.wish-btn.is-active { color: #e63946; }
.wish-btn.is-active i { animation: wishPop .32s ease; }
@keyframes wishPop { 0% { transform: scale(.5); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
/* Heart overlaid on product card thumbnails */
.service-card .thumb { position: relative; }
.service-card .thumb .wish-btn { position: absolute; top: 10px; right: 10px; z-index: 3; }

/* Mid-page ad banner slider (smaller than the hero) */
.pg-slider--mid { --slider-h: 300px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 640px) {
    .pg-slider--mid { --slider-h: 200px; min-height: 0; height: 200px; }
}

/* ============================================================
   Home category cards + in-card image slideshow
   ============================================================ */
.cat-card { text-decoration: none; color: inherit; cursor: pointer; }
.cat-card .body h3 { color: var(--c-primary); }
.card-slider { position: absolute; inset: 0; }
.service-card .thumb .cs-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .9s ease, transform .5s ease;
}
.service-card .thumb .cs-img.is-active { opacity: 1; }

/* ============================================================
   Mobile responsiveness polish
   ============================================================ */
@media (max-width: 768px) {
    .container { padding-inline: 16px; }

    /* Header: tighter so search + wishlist + cart + auth fit */
    .nav-actions { gap: 8px; }
    .brand img { height: 40px; }
    .brand-text { font-size: 1rem; }
    .nav-cart { font-size: 1.2rem; padding: 4px; }
    .nav-icon { width: 36px; height: 36px; }

    /* Slider text scales down on phones */
    .pg-slide-content h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
    .pg-slide-content p { font-size: .95rem; margin-top: 8px; }
    .pg-slide-content .btn { padding: 11px 20px; font-size: .88rem; }

    /* Trim vertical spacing */
    .page-hero { padding: 48px 0; }
    .section { padding: 52px 0; }
    .section-sm { padding: 38px 0; }
    .cta-band { padding: 36px 20px; }
    .card { padding: 22px; }
    .pd-grid { gap: 26px; }
}

@media (max-width: 480px) {
    .container { padding-inline: 14px; }

    /* Free up header space on small phones */
    .brand-text span { display: none; }            /* hide tagline */
    .brand img { height: 36px; }
    .nav-actions { gap: 6px; }
    .nav-actions .btn-sm { padding: 8px 12px; font-size: .8rem; }

    .hero-inner { padding: 60px 0; }
    .hero p { font-size: 1rem; }
    /* Full-width, easy-to-tap primary actions */
    .hero-actions .btn, .cta-band .hero-actions .btn { width: 100%; justify-content: center; }

    .section { padding: 42px 0; }
    .section-sm { padding: 32px 0; }
    .page-hero { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }

    /* Mid-page ad banner: shorter + readable on small phones */
    .pg-slider--mid { --slider-h: 190px; height: 190px; }
    .pg-slide-content h2 { font-size: 1.3rem; }
    .pg-slide-content p { font-size: .88rem; }

    .card { padding: 18px; }
    .pd-price { font-size: 1.6rem; }

    /* Roomier chips/filters + compact tables */
    .chips { gap: 8px; margin-bottom: 24px; }
    .chip { padding: 7px 14px; font-size: .82rem; }
    .cart-table th, .cart-table td { padding: 10px 8px; font-size: .88rem; }

    /* Product gallery thumbnails a touch smaller */
    .pd-thumb { width: 56px; height: 56px; }

    /* Keep float buttons clear of content */
    .wa-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
    /* Align back-to-top neatly above the WhatsApp button */
    .to-top { right: 16px; bottom: 78px; width: 42px; height: 42px; }
}

/* Auth buttons: in the top bar on desktop, inside the hamburger menu on mobile */
.nav-menu-auth { display: none; }
@media (max-width: 768px) {
    .nav-auth { display: none; }                 /* declutter the mobile top bar */
    .nav-menu-auth { display: block; border-top: 1px solid var(--c-border); margin-top: 6px; padding-top: 8px; }
    .nav-menu-auth a { display: block; padding: 13px 12px; border-radius: 8px; font-family: var(--ff-head); font-weight: 600; color: var(--c-primary); }
    .nav-menu-auth a:hover { background: var(--c-light); }
    /* Keep the remaining icons tidy and vertically centred */
    .nav-actions { gap: 10px; align-items: center; }
}

/* When a full-width top ad banner sits above it, the page title becomes a clean
   centered heading on the default white background (dark text) — like the home page. */
.page-hero--slim {
    background: #fff !important;
    color: var(--c-dark);
    padding: 40px 0 8px !important;
}
.page-hero--slim h1 { color: var(--c-dark); font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.page-hero--slim p { color: var(--c-muted); font-size: 1rem; margin-top: 10px; }
.page-hero--slim .breadcrumb { color: var(--c-muted); margin-bottom: 10px !important; }
.page-hero--slim .breadcrumb a { color: var(--c-secondary); }
.page-hero--slim .breadcrumb a:hover { color: var(--c-primary); }
.page-hero--slim .breadcrumb i { color: var(--c-muted); }
@media (max-width: 480px) { .page-hero--slim { padding: 28px 0 4px !important; } }

/* ============================================================
   Announcement bar marquee (admin-toggled continuous scroll)
   ============================================================ */
.announce-bar.is-scrolling .announce-inner { display: block; overflow: hidden; white-space: nowrap; }
.announce-bar.is-scrolling .announce-msg {
    display: inline-block; white-space: nowrap; padding-left: 100%;
    animation: announceMarquee 22s linear infinite; will-change: transform;
}
.announce-bar.is-scrolling .announce-msg:hover { animation-play-state: paused; }
@keyframes announceMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .announce-bar.is-scrolling .announce-inner { display: flex; justify-content: center; overflow: visible; }
    .announce-bar.is-scrolling .announce-msg { padding-left: 0; animation: none; }
}
/* Announcement text size (admin-selectable) */
.announce-size-small  { font-size: .8rem; }
.announce-size-medium { font-size: .95rem; }
.announce-size-large  { font-size: 1.18rem; }
.announce-size-large .announce-inner { padding-top: 12px; padding-bottom: 12px; }