/* =====================================================================
   ShopNova / MGoury Enterprises — modern SaaS-style theme layer
   Palette pulled from the brand logo:
     Teal   #0E5C6B (primary)   Orange #F76420 (accent/CTA)
     Snow   #FFFFFF             Bone   #F6F7F9 (page background)
     Slate  #6B7280 (muted text)
   Type: "Sora" for display/headings, "Inter" for body/UI
   ===================================================================== */

:root {
  --ink: #0e5c6b;          /* primary brand (was dark navy, now brand teal) */
  --ink-dark: #0a4651;
  --amber: #f76420;        /* accent/CTA (was amber/gold, now brand orange) */
  --amber-dark: #df591c;
  --teal-soft: #e6f2f3;
  --orange-soft: #fff1e8;
  --bone: #f6f7f9;
  --snow: #ffffff;
  --slate: #6b7280;
  --border-color: #e7e9ed;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 92, 107, 0.05);
  --shadow-md: 0 8px 20px rgba(14, 92, 107, 0.08);
  --shadow-lift: 0 14px 28px rgba(14, 92, 107, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1d29;
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #14213d;
}

a { text-decoration: none; }
.text-muted { color: var(--slate) !important; }

/* ---------------- Header ---------------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .logo { display: inline-flex; align-items: center; }
.site-header .logo img { height: 40px; width: auto; display: block; }

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--border-color);
  background: var(--snow);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
}

.search-bar-wrap { position: relative; }
.search-bar-wrap .input-group { border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); }
.search-bar-wrap .form-control {
  border: 1px solid var(--border-color);
  border-right: none;
  padding-left: 18px;
}
.search-bar-wrap .form-control:focus { box-shadow: none; border-color: var(--amber); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--snow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-color);
  z-index: 1050;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.show { display: block; }
.search-suggestions .suggestion-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bone);
  cursor: pointer;
  color: #14213d;
}
.search-suggestions .suggestion-item:hover { background: var(--teal-soft); }
.search-suggestions img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }

.cart-icon-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--amber);
  color: var(--snow);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.category-strip { border-top: 1px solid var(--border-color); font-size: 0.92rem; }
.category-strip a { color: #14213d; font-weight: 600; padding: 10px 14px; display: inline-block; }
.category-strip a:hover { color: var(--amber); }

/* ---------------- Buttons ---------------- */
.btn-brand {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--snow);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .15s ease;
}
.btn-brand:hover { background: var(--ink-dark); color: var(--snow); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--snow);
  font-weight: 700;
  border-radius: var(--radius);
  transition: all .15s ease;
}
.btn-amber:hover { background: var(--amber-dark); color: var(--snow); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline-brand {
  border: 1.5px solid var(--border-color);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--snow);
  transition: all .15s ease;
}
.btn-outline-brand:hover { background: var(--ink); border-color: var(--ink); color: var(--snow); }

/* ---------------- Mega Menu ---------------- */
.mega-menu-bar { border-top: 1px solid var(--border-color); background: var(--snow); position: relative; z-index: 1020; }
.mega-menu-list { display: flex; list-style: none; margin: 0; padding: 6px 0; font-size: 0.92rem; gap: 2px; }
.mega-menu-list > li { position: relative; flex: 0 0 auto; }
.mega-trigger { color: #14213d; font-weight: 600; padding: 10px 16px; display: inline-block; white-space: nowrap; border-radius: 999px; transition: background .15s ease; }
.mega-trigger:hover { color: var(--ink); background: var(--teal-soft); }
.mega-trigger.active { color: var(--snow); background: var(--ink); }

.mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--snow);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: 760px;
  max-width: calc(100vw - 32px);
  z-index: 1040;
  margin-top: 6px;
}
.mega-item:hover .mega-panel { display: block; }
.mega-col-title { font-weight: 700; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mega-panel ul li { margin-bottom: 6px; }
.mega-panel ul li a { color: var(--slate); font-size: 0.88rem; }
.mega-panel ul li a:hover { color: var(--amber); }
.mega-featured-item { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.mega-featured-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bone); }
.mega-featured-item span.small { color: #14213d; }

/* Menu Manager (admin/menu.php) extras: badges, highlight style, simple dropdown */
.nav-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; vertical-align: 2px; color: #fff; }
.nav-badge-orange { background: #f26a1b; }
.nav-badge-green  { background: #1f9d55; }
.nav-badge-red    { background: #d63a3a; }
.nav-badge-teal   { background: var(--ink); }
.mega-trigger.active .nav-badge-teal { background: #fff; color: var(--ink); }
.mega-trigger.nav-highlight { border: 1.5px solid #f26a1b; color: #f26a1b; }
.mega-trigger.nav-highlight:hover { background: #fff2ea; color: #d9560d; }
.mega-trigger.nav-highlight.active { background: #f26a1b; border-color: #f26a1b; color: #fff; }
.mega-panel.nav-simple-panel { width: 240px; padding: 14px 18px; }
.mega-panel.nav-simple-panel ul li:last-child { margin-bottom: 0; }
.mega-panel.nav-simple-panel ul li a { display: block; padding: 3px 0; }
.menu-preview { border: 1px dashed var(--border-color); border-radius: 12px; padding: 6px 10px; overflow-x: auto; background: #fff; }
.menu-preview .mega-menu-list { padding: 0; flex-wrap: wrap; }
.menu-preview .mega-trigger { cursor: default; }
.menu-preview .is-hidden-item { opacity: .38; text-decoration: line-through; }

.site-header .dropdown-menu { z-index: 2000; box-shadow: var(--shadow-lift); border: 1px solid var(--border-color); border-radius: var(--radius); min-width: 210px; padding: 8px; }
.site-header .dropdown-menu .dropdown-item { border-radius: 10px; padding: 8px 12px; font-size: 0.92rem; }
.site-header .dropdown-menu .dropdown-item:hover { background: var(--teal-soft); color: var(--ink); }
.site-header .dropdown { position: relative; z-index: 1050; }

@media (max-width: 991px) {
  .mobile-nav-toggle { display: flex; }
  .mega-menu-bar { display: none; }
  .mega-menu-bar.open { display: block; }
  .mega-panel { position: static; width: 100%; box-shadow: none; border: none; display: block; padding: 10px 0 10px 14px; border-left: 2px solid var(--amber); border-radius: 0; margin-top: 0; }
  .mega-item:hover .mega-panel { display: block; }
  .mega-menu-list { flex-direction: column; overflow-x: visible; padding: 8px 0; }
}

/* ---------------- Hero Slider ---------------- */
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  color: var(--snow);
  padding: 36px;
  position: relative;
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--overlay-start, rgba(14,92,107,0.78)), var(--overlay-end, rgba(14,92,107,0.15))); }
.hero-slide.no-overlay::before { display: none; }
.hero-slide .hero-content { max-width: 480px; position: relative; z-index: 2; }
.hero-slide h2 { font-size: 1.9rem; color: var(--snow); }
@media (min-width: 768px) { .hero-slide { min-height: 400px; padding: 60px; } .hero-slide h2 { font-size: 2.6rem; } }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s ease;
}
.hero-arrow:hover { background: var(--snow); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--amber); width: 22px; border-radius: 5px; }

/* ---------------- Deal of the Day slider ---------------- */
.deal-slider { position: relative; }
.deal-slide { padding: 22px; }
.deal-slide-img { aspect-ratio: 1/1; object-fit: cover; }
.deal-arrow { background: var(--snow); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); color: var(--ink); }
.deal-arrow:hover { background: #f5f5f5; }
.deal-arrow.prev { left: -6px; }
.deal-arrow.next { right: -6px; }
.deal-dots { position: static; margin-top: 14px; }
.deal-dots button { background: var(--border-color); }
.deal-dots button.active { background: var(--amber); }
@media (min-width: 768px) { .deal-arrow.prev { left: -18px; } .deal-arrow.next { right: -18px; } }

/* ---------------- Admin image previews ---------------- */
.admin-img-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color);
  display: block;
}
.admin-img-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  color: #b8b8b8;
  font-size: 2rem;
}
.admin-img-preview-sm { max-width: none; border-radius: 8px; }

/* ---------------- Section headers ---------------- */
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-heading h3 { margin: 0; }
.section-heading a { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.home-section { padding: 32px 0; }

/* ---------------- Category cards ---------------- */
.category-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 160px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card .label { position: relative; z-index: 2; color: var(--snow); font-weight: 700; padding: 16px; background: linear-gradient(to top, rgba(14,92,107,0.85), transparent); width: 100%; }
.category-card-fallback { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ink), var(--ink-dark)); display: flex; align-items: center; justify-content: center; }
.category-card-fallback i { font-size: 2.4rem; color: rgba(255,255,255,0.35); }

/* ---------------- Featured Categories (premium circular icons) ---------------- */
.featured-cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 44px; padding: 12px 0 6px; }
.featured-cat-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; width: 120px; text-align: center; }
.featured-cat-icon {
  width: 96px; height: 96px; border-radius: 50%; background: var(--snow); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 3px solid transparent; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.featured-cat-item:hover .featured-cat-icon { border-color: var(--amber); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.featured-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.featured-cat-icon i { font-size: 2rem; color: var(--ink); }
.featured-cat-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.featured-cat-item:hover .featured-cat-name { color: var(--amber); }

/* ---------------- Brand logos ---------------- */
.brand-tile { background: var(--snow); border: 1px solid var(--border-color); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; height: 92px; padding: 12px; transition: box-shadow .15s ease; }
.brand-tile:hover { box-shadow: var(--shadow-sm); }
.brand-tile img { max-height: 50px; max-width: 100%; object-fit: contain; }

/* ---------------- Countdown timer ---------------- */
.countdown-pills { display: flex; gap: 8px; }
.countdown-pills .pill { background: var(--ink); color: var(--snow); border-radius: 8px; padding: 5px 11px; font-weight: 700; font-size: 0.9rem; min-width: 42px; text-align: center; }

/* ---------------- Wishlist heart toggle ---------------- */
.wishlist-toggle { position: absolute; top: 10px; right: 10px; background: var(--snow); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); cursor: pointer; z-index: 3; font-size: 1rem; color: var(--slate); transition: all .15s ease; }
.wishlist-toggle:hover { box-shadow: var(--shadow-sm); }
.wishlist-toggle.active { color: var(--danger); border-color: var(--danger); }

/* ---------------- Product Card ---------------- */
.product-card { background: var(--snow); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; height: 100%; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card .thumb-wrap { position: relative; aspect-ratio: 1/1; background: var(--bone); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .thumb-wrap img { transform: scale(1.05); }
.product-card .body { padding: 16px; }
.product-card .title { font-size: 0.95rem; font-weight: 600; color: #14213d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-weight: 700; font-size: 1.05rem; color: #14213d; }
.price-mrp { color: var(--slate); text-decoration: line-through; font-size: 0.85rem; }
.price-off { color: var(--success); font-size: 0.82rem; font-weight: 600; }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--amber); color: var(--snow); font-size: 0.7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

/* ---------------- Stepper (qty) ---------------- */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { background: var(--bone); border: none; width: 34px; height: 34px; font-weight: 700; color: #14213d; }
.qty-stepper input { width: 42px; border: none; text-align: center; font-weight: 600; }
.qty-stepper input:focus { outline: none; }

/* ---------------- Variant swatches ---------------- */
.swatch { border: 1.5px solid var(--border-color); border-radius: 999px; padding: 6px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; background: var(--snow); color: #14213d; }
.swatch.active { border-color: var(--ink); background: var(--ink); color: var(--snow); }
.swatch.disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* ---------------- Cart / Checkout ---------------- */
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--bone); flex-shrink: 0; }
.cart-line > .flex-grow-1 { min-width: 0; }
@media (max-width: 480px) {
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .qty-stepper { transform: scale(0.9); transform-origin: left center; }
}

.summary-card { background: var(--snow); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 22px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--slate); }
.summary-row.total { color: #14213d; font-weight: 700; font-size: 1.1rem; border-top: 1px dashed var(--border-color); margin-top: 8px; padding-top: 12px; }

.step-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--slate); }
.step-pill .num { width: 26px; height: 26px; border-radius: 50%; background: var(--bone); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.step-pill.active { color: var(--ink); }
.step-pill.active .num { background: var(--amber); color: var(--snow); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--slate); }

footer.site-footer { background: var(--ink-dark); color: #cfe6e9; }
footer.site-footer a { color: #cfe6e9; }
footer.site-footer a:hover { color: var(--amber); }
footer.site-footer .footer-logo img { height: 40px; }

@media (max-width: 576px) {
  .product-card .title { font-size: 0.88rem; }
}

/* ---------------- Reviews ---------------- */
.review-card { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; background: var(--snow); }
.star-rating { color: var(--amber); letter-spacing: 1px; }

/* ---------------- Blog ---------------- */
.blog-card { background: var(--snow); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); height: 100%; transition: box-shadow .15s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .body { padding: 16px; }

/* ---------------- Newsletter ---------------- */
.newsletter-band { background: linear-gradient(120deg, var(--ink), var(--ink-dark)); color: var(--snow); border-radius: var(--radius-lg); padding: 44px; }
.newsletter-band input { border-radius: var(--radius) 0 0 var(--radius); border: none; }

/* ---------------- FAQ accordion ---------------- */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 16px 0; font-weight: 600; color: #14213d; display: flex; justify-content: space-between; }
.faq-answer { display: none; padding-bottom: 16px; color: var(--slate); font-size: 0.92rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

/* ---------------- Instagram feed ---------------- */
.insta-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }

/* ---------------- Admin layout ---------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--ink-dark); color: #b9d6da; flex-shrink: 0; height: 100vh; position: sticky; top: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.admin-sidebar .brand { color: var(--snow); font-weight: 800; padding: 18px; font-family: 'Sora', sans-serif; display: flex; align-items: center; gap: 10px; }
.admin-sidebar .brand img { height: 30px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #b9d6da; font-size: 0.9rem; font-weight: 500; border-radius: 0; }
.admin-sidebar a i { font-size: 1.05rem; width: 18px; text-align: center; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: var(--snow); }
.admin-sidebar a.active { border-right: 3px solid var(--amber); }
.admin-sidebar .section-label { padding: 16px 18px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5d8a90; }
.admin-content { flex-grow: 1; background: var(--bone); min-height: 100vh; min-width: 0; }
.admin-sidebar-toggle { display: none; border: 1px solid var(--border-color); background: var(--snow); border-radius: var(--radius); width: 38px; height: 38px; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--ink); flex-shrink: 0; }
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 20, 25, 0.5); z-index: 1055; }
.admin-sidebar-backdrop.show { display: block; }
.admin-topbar { background: var(--snow); border-bottom: 1px solid var(--border-color); padding: 16px 24px; }
@media (max-width: 991px) {
  .admin-sidebar-toggle { display: flex; }
  .admin-sidebar { position: fixed; top: 0; left: -270px; z-index: 1060; width: 260px; box-shadow: var(--shadow-lift); transition: left .25s ease; }
  .admin-sidebar.open { left: 0; }
  .admin-content { width: 100%; min-width: 0; }
  .admin-topbar form[action*="search.php"] { order: 3; flex-basis: 100%; max-width: 100% !important; margin: 0 !important; }
}
@media (max-width: 575px) {
  .admin-topbar { padding: 12px; }
  .admin-content > div { padding: 12px; }
}
@media (max-width: 767px) {
  /* Admin list rows (banners/blog/brands/etc: thumbnail + text + action buttons in
     one flex row) would otherwise force horizontal page scroll on phone widths —
     let the row wrap so the action buttons drop to their own line instead. */
  .summary-card > .d-flex.align-items-center { flex-wrap: wrap; row-gap: 10px; }
  .summary-card > .d-flex.align-items-center > img { margin-bottom: 4px; }
}
.stat-card { background: var(--snow); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card .value { font-size: 1.6rem; font-weight: 800; color: #14213d; }
.stat-card .label { color: var(--slate); font-size: 0.85rem; }
.admin-table thead { background: var(--bone); }
.admin-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); }

/* ---------------- Account dashboard layout ---------------- */
.account-sidebar a { display: block; padding: 10px 16px; border-radius: var(--radius); color: #14213d; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.account-sidebar a:hover, .account-sidebar a.active { background: var(--ink); color: var(--snow); }

/* ---------------- Toggle switches (admin enable/disable) ---------------- */
.feature-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.feature-toggle:last-child { border-bottom: none; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.form-switch .form-check-input:checked { background-color: var(--success); border-color: var(--success); }

/* ===================== Announcement bar (homepage) ===================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--ink), var(--ink-dark));
  color: var(--snow);
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.announcement-track {
  display: inline-flex;
  gap: 60px;
  padding-left: 60px;
  animation: marquee 22s linear infinite;
}
.announcement-track span { display: inline-flex; align-items: center; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
}

/* ===================== Trust / USP bar ===================== */
.trust-bar { background: var(--snow); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px 10px; box-shadow: var(--shadow-sm); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 6px 16px; }
.trust-item .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.trust-item .text strong { display: block; font-size: 0.92rem; color: #14213d; }
.trust-item .text span { font-size: 0.78rem; color: var(--slate); }

/* ===================== Scroll-reveal ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > * { animation: fadeUp .6s ease both; }
.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: .08s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: .24s; }
.reveal-stagger.visible > *:nth-child(n+5) { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== Animated stat counters ===================== */
.stats-band { background: linear-gradient(120deg, var(--ink), var(--ink-dark)); border-radius: var(--radius-lg); padding: 40px 20px; color: var(--snow); position: relative; overflow: hidden; }
.stats-band::before, .stats-band::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35;
}
.stats-band::before { width: 220px; height: 220px; background: var(--amber); top: -60px; right: -60px; }
.stats-band::after { width: 180px; height: 180px; background: #2fb8c6; bottom: -60px; left: 10%; }
.stat-counter-item { text-align: center; position: relative; z-index: 2; }
.stat-counter-item .num { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--snow); }
.stat-counter-item .lbl { color: #cfe6e9; font-size: 0.85rem; margin-top: 4px; }

/* ===================== Decorative gradient blobs (hero backdrop) ===================== */
.hero-wrap { position: relative; }
.hero-wrap::before, .hero-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.25; z-index: -1;
}
.hero-wrap::before { width: 260px; height: 260px; background: var(--amber); top: -40px; left: -40px; }
.hero-wrap::after { width: 220px; height: 220px; background: var(--ink); bottom: -50px; right: 5%; }

/* ===================== Floating badge on hero ===================== */
.hero-floating-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--amber);
  color: var(--snow);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  z-index: 5;
  animation: floatBadge 2.6s ease-in-out infinite;
}
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===================== Glow pulse for urgent CTAs ===================== */
.glow-pulse { animation: glowPulse 2.2s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,100,32,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(247,100,32,0); }
}

/* ===================== Section divider accent ===================== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-soft);
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ===================== Flash sale band ===================== */
.flash-sale-band { background: linear-gradient(120deg, #fff1e8, #ffffff); border: 1px solid #ffd9bd; border-radius: var(--radius-lg); padding: 24px; overflow: hidden; }

/* ===================== Back-to-top button ===================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--snow);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  border: none;
  transition: background .15s ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--amber); }

/* ===================== Quick-view overlay on product card ===================== */
.product-card .quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,92,107,0.0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.product-card:hover .quick-view-overlay { opacity: 1; }
.product-card .quick-view-overlay .btn { pointer-events: auto; }

/* ===================== Admin: Product SEO panel ===================== */
.seo-preview {
  background: var(--snow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: arial, sans-serif;
}
.seo-preview-url { color: #1a0dab; font-size: 0.8rem; margin-bottom: 2px; word-break: break-all; }
.seo-preview-title { color: #1a0dab; font-size: 1.05rem; line-height: 1.3; margin-bottom: 2px; }
.seo-preview-desc { color: #4d5156; font-size: 0.85rem; line-height: 1.4; }

.seo-checklist { list-style: none; padding: 0; margin: 0; }
.seo-checklist li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 5px 0; color: var(--slate); }
.seo-checklist li.ok { color: var(--success); }
.seo-checklist li.warn { color: #b45309; }

/* ===================== Notification bell dropdown ===================== */
.notif-dropdown { width: 320px; max-width: calc(100vw - 32px); max-height: 420px; overflow-y: auto; padding: 8px 0; }
.notif-dropdown .dropdown-item { white-space: normal; padding: 8px 16px; }
.notif-dropdown .dropdown-item.fw-semibold { background: var(--teal-soft); }

/* ===================== Products page: filters ===================== */
.filter-heading { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 10px; }
.filter-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filter-link { color: var(--slate); display: inline-block; }
.filter-link:hover { color: var(--amber); }
.filter-link.active { color: var(--ink); font-weight: 700; }

.quick-filter-pills { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.quick-pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--snow); border: 1px solid var(--border-color); color: #14213d;
  font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  transition: all .15s ease;
}
.quick-pill:hover { border-color: var(--amber); color: var(--amber-dark); }
.quick-pill.active { background: var(--ink); border-color: var(--ink); color: var(--snow); }

.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--teal-soft); color: var(--ink);
  font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  text-decoration: none;
}
.filter-chip i { font-size: 0.9rem; }
.filter-chip.clear-all { background: var(--orange-soft); color: var(--amber-dark); }

.view-toggle { border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.view-btn { background: var(--snow); border: none; width: 34px; height: 32px; color: var(--slate); }
.view-btn.active { background: var(--ink); color: var(--snow); }

/* List view override for the product grid */
.product-grid.list-view { display: block; }
.product-grid.list-view .product-grid-item { width: 100%; max-width: 100%; flex: 0 0 100%; margin-bottom: 12px; }
.product-grid.list-view .product-card { display: flex; flex-direction: row; align-items: stretch; }
.product-grid.list-view .product-card .thumb-wrap { width: 160px; flex-shrink: 0; aspect-ratio: auto; }
.product-grid.list-view .product-card .body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.product-grid.list-view .product-card .title { min-height: 0; -webkit-line-clamp: 1; }
.list-view-desc { display: none; }
.product-grid.list-view .list-view-desc { display: block; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; display: -webkit-box; }

@media (max-width: 767px) {
  .product-grid.list-view .product-card .thumb-wrap { width: 100px; }
}

/* ===================== Product detail: gallery ===================== */
.product-gallery { position: relative; }
.gallery-main-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--snow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main-wrap img {
  width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
  transition: transform .3s ease;
  padding: 16px;
}
.gallery-main-wrap:hover img { transform: scale(1.06); }
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 4;
  background: rgba(20,33,61,0.7); color: var(--snow); font-size: 0.75rem;
  font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.gallery-zoom-hint {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  background: rgba(255,255,255,0.9); color: var(--ink); font-size: 0.75rem;
  font-weight: 600; padding: 4px 10px; border-radius: 999px;
  align-items: center; pointer-events: none;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--ink); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease;
}
.gallery-arrow:hover { background: var(--snow); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.gallery-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--radius);
  border: 2px solid var(--border-color); background: var(--snow); padding: 0;
  overflow: hidden; cursor: pointer; transition: border-color .15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--amber); }

#galleryLightbox .modal-content { background: transparent; }
#galleryLightbox img { max-height: 85vh; object-fit: contain; }

/* ===================== Product detail: trust row ===================== */
.pdp-trust-row .trust-item { padding: 0; }


/* ===================== PDP: glassmorphism gallery card ===================== */
.glass-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 4px 20px rgba(14, 92, 107, 0.06);
}
.gallery-placeholder {
  aspect-ratio: 1/1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bone); border-radius: var(--radius-lg); color: var(--slate);
  gap: 10px;
}
.gallery-placeholder i { font-size: 3rem; opacity: 0.5; }

.img-skeleton {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(110deg, var(--bone) 30%, #ececea 50%, var(--bone) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s linear infinite;
}
@keyframes skeletonShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.gallery-fullscreen-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.gallery-360-btn {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: var(--ink); color: var(--snow); border: none; border-radius: 999px;
  padding: 5px 14px; font-size: 0.78rem; font-weight: 700;
}
.gallery-360-wrap {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bone); margin-bottom: 12px; position: relative; cursor: grab;
}
.gallery-360-wrap img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.gallery-360-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(20,33,61,0.7); color: var(--snow); font-size: 0.72rem;
  padding: 3px 10px; border-radius: 999px;
}
.gallery-video-thumb { position: relative; }
.gallery-video-thumb i {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--snow); font-size: 1.4rem; background: rgba(20,33,61,0.35);
}

/* Zoom lens (desktop magnifier) */
.zoom-lens {
  display: none; position: absolute; width: 120px; height: 120px;
  border: 2px solid var(--amber); background: rgba(247,100,32,0.15);
  border-radius: 8px; pointer-events: none; z-index: 5;
}
.zoom-pane {
  display: none; position: absolute; top: 0; left: 102%; width: 100%; height: 100%;
  border-radius: var(--radius-lg); background-repeat: no-repeat; border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lift); z-index: 6; background-color: var(--snow);
}
@media (max-width: 991px) { .zoom-pane { display: none !important; } }

/* ===================== PDP: perks, icon buttons, payment icons ===================== */
.pdp-icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; }
.pdp-icon-btn.active { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.pdp-perks { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 14px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.pdp-perk { font-size: 0.82rem; color: var(--slate); display: flex; align-items: center; }
.pdp-perk i { color: var(--ink); margin-right: 7px; font-size: 0.95rem; }
.pdp-payment-icons i { font-size: 1.15rem; color: var(--slate); margin-right: 14px; }

/* ===================== PDP: tabs content ===================== */
.spec-table th, .spec-table td { font-size: 0.88rem; }
.feature-list li { padding: 6px 0; font-size: 0.92rem; color: #14213d; }
.feature-list li i { color: var(--success); margin-right: 8px; }

/* ===================== PDP: reviews ===================== */
.rating-distribution { max-width: 360px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-media { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--bone); }
.helpful-btn { color: var(--slate); }
.helpful-btn.voted, .helpful-btn:hover { color: var(--ink); }

/* ===================== PDP: variant selection animation ===================== */
@keyframes swatchPulse { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
.swatch-pulse { animation: swatchPulse 0.3s ease; }

/* ===================== PDP: button ripple ===================== */
.btn-ripple { position: relative; overflow: hidden; }
.ripple-circle {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.5);
  transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(2.5); opacity: 0; } }

/* ===================== PDP: sticky mobile add-to-cart bar ===================== */
.sticky-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: var(--snow); border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 10px 16px; display: none; align-items: center; gap: 12px;
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-mobile-bar.show { display: flex; transform: translateY(0); }

/* Horizontal-only scroll helper — Bootstrap's .overflow-auto sets both
   axes to auto, which forces an unwanted vertical scrollbar on any
   horizontal scroller (mega menu, product tabs, etc). Use this instead. */
.tab-scroll-x { overflow-x: auto; overflow-y: hidden; }

/* =====================================================================
   DESIGN SYSTEM v2 — global refinements that cascade to every page
   (forms, buttons, tables, badges, scrollbars, focus states). This is
   the highest-leverage way to lift the whole project's feel at once,
   since every template shares this one stylesheet.
   ===================================================================== */

/* ---------------- Custom scrollbar (signature modern-SaaS detail) ---------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d8dd; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b8bec5; background-clip: content-box; }

::selection { background: var(--amber); color: var(--snow); }

/* ---------------- Accessible, on-brand focus states ---------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------- Links ---------------- */
a { transition: color .15s ease; }

/* ---------------- Forms (cascades to every form on the site) ---------------- */
.form-control, .form-select {
  border-radius: var(--radius);
  border-color: var(--border-color);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(247, 100, 32, 0.12);
}
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 100, 32, 0.12); }
label, .form-label { font-weight: 600; color: #14213d; font-size: 0.85rem; }

/* ---------------- Buttons: smoother, more confident motion ---------------- */
.btn { transition: all .18s ease; font-weight: 600; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------------- Badges & pills ---------------- */
.badge { font-weight: 600; letter-spacing: 0.01em; border-radius: 6px; padding: 0.4em 0.7em; }

/* ---------------- Tables ---------------- */
.table { font-size: 0.9rem; }
.table-hover tbody tr:hover { background: var(--bone); }
.admin-table th { font-weight: 700; }

/* ---------------- Cards: subtle lift on hover for clickable cards ---------------- */
.summary-card { transition: box-shadow .2s ease; }
a.summary-card:hover, .summary-card.is-clickable:hover { box-shadow: var(--shadow-md); }

/* ---------------- Header: soften the hard border into a faint depth cue ---------------- */
.site-header { box-shadow: 0 1px 0 rgba(20, 33, 61, 0.04); }

/* ---------------- Footer: a thin brand-colored top edge instead of a flat block ---------------- */
footer.site-footer { border-top: 3px solid var(--amber); }

/* ---------------- Headings: tighter, more confident rhythm ---------------- */
h1, h2, h3 { letter-spacing: -0.02em; }
h4, h5, h6 { letter-spacing: -0.01em; }

/* ---------------- Empty states: a touch more presence ---------------- */
.empty-state { background: var(--snow); border: 1px dashed var(--border-color); border-radius: var(--radius-lg); }

/* ---------------- Modals: match the rest of the design system ---------------- */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lift); }
.modal-header { border-bottom-color: var(--border-color); }
.modal-footer { border-top-color: var(--border-color); }

/* =====================================================================
   DESIGN SYSTEM — Typography Scale, Spacing Scale, Component States
   This is the canonical reference; see /design-system.php for the
   living, rendered style guide built from these exact classes.
   ===================================================================== */

:root {
  /* 8px-based spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* ---------------- Typography scale (7 levels) ---------------- */
.text-display {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #14213d;
}
.text-page-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #14213d;
}
.text-section-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #14213d;
}
.text-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #14213d;
}
.text-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a3f4d;
}
.text-small {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--slate);
}
.text-caption {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------------- Spacing utilities (8px grid, additive to Bootstrap's) ---------------- */
.gap-xs { gap: var(--space-2) !important; }
.gap-sm { gap: var(--space-3) !important; }
.gap-md { gap: var(--space-5) !important; }
.gap-lg { gap: var(--space-7) !important; }
.section-stack > * + * { margin-top: var(--space-6); }

/* ---------------- Component states: buttons ---------------- */
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
.btn-outline-brand.is-loading::after { border-color: rgba(14,92,107,0.3); border-top-color: var(--ink); }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------------- Component states: form fields ---------------- */
.form-control:disabled, .form-select:disabled { background: var(--bone); cursor: not-allowed; opacity: 0.7; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.form-control.is-valid, .form-select.is-valid { border-color: var(--success); }

/* ---------------- Generic skeleton loading block (reusable beyond images) ---------------- */
.skeleton-block {
  background: linear-gradient(110deg, var(--bone) 30%, #ececea 50%, var(--bone) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s linear infinite;
  border-radius: var(--radius);
}

/* ---------------- Reduced motion: respect user preference everywhere ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================== Cart side drawer ===================== */
.cart-drawer { width: 400px; max-width: 92vw; }
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--border-color); }
.cart-drawer-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.cart-drawer-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bone); flex-shrink: 0; }
.qty-stepper-sm { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.qty-stepper-sm button { background: var(--bone); border: none; width: 26px; height: 26px; font-weight: 700; font-size: 0.85rem; color: #14213d; }
.qty-stepper-sm input { width: 30px; border: none; text-align: center; font-weight: 600; font-size: 0.85rem; }
.drawer-perk-row { font-size: 0.8rem; color: var(--ink); background: var(--teal-soft); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 8px; }
.drawer-perk-row i { margin-right: 6px; }
.drawer-suggestion-card { flex: 0 0 110px; background: var(--snow); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 8px; }
.drawer-suggestion-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; margin-bottom: 6px; background: var(--bone); }
.overflow-auto-x { overflow-x: auto; overflow-y: hidden; }

/* ===================== Admin: relation chips (Cross-sell/Recommendations) ===================== */
.relation-chip { display: flex; align-items: center; gap: 8px; background: var(--bone); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 6px 8px 6px 6px; }
.relation-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--snow); flex-shrink: 0; }
.relation-chip-info { line-height: 1.2; }

/* ===================== Admin: product form sticky save bar ===================== */
.product-form-save-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: var(--snow); border-top: 1px solid var(--border-color);
  padding: 14px 0; margin-top: 24px;
  display: flex; align-items: center;
}

/* ---------------- Product description editors (admin) + storefront rendering ---------------- */
.desc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.desc-label > span:first-child { font-weight: 600; color: #14213d; }
.desc-label > span + span { font-size: .75rem; }

.sd-wrap { border: 1px solid #dfe5e8; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.sd-wrap:focus-within, .rte:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--teal-soft); }
.sd-wrap .sd-input { border: 0; box-shadow: none !important; border-radius: 0; resize: none; padding: 12px 16px; line-height: 1.55; min-height: 62px; }
.sd-foot { padding: 0 16px 10px; }
.sd-meter { height: 3px; border-radius: 3px; background: #eef2f3; overflow: hidden; margin-bottom: 8px; }
.sd-meter span { display: block; height: 100%; width: 0; background: #b8c4c7; transition: width .2s, background .2s; }
.sd-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; color: #6c7a7e; }
.sd-wrap[data-state="good"] .sd-meter span { background: #1f9d55; }
.sd-wrap[data-state="good"] .sd-msg { color: #1f9d55; }
.sd-wrap[data-state="short"] .sd-meter span { background: #e0a100; }
.sd-wrap[data-state="long"] .sd-meter span { background: var(--amber); }
.sd-wrap[data-state="long"] .sd-msg { color: #c2490f; }
.sd-count { white-space: nowrap; font-variant-numeric: tabular-nums; }

.rte { border: 1px solid #dfe5e8; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.rte-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 10px; background: #f7fafb; border-bottom: 1px solid #e8eef0; }
.rte-tabs { display: inline-flex; background: #e9eff1; border-radius: 999px; padding: 3px; }
.rte-tab { border: 0; background: transparent; padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #5b6b70; cursor: pointer; }
.rte-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14,92,107,.18); }
.rte-tools { display: inline-flex; align-items: center; gap: 2px; }
.rte-tools.disabled { opacity: .35; pointer-events: none; }
.rte-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 9px; color: #34464b; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rte-btn:hover { background: var(--teal-soft); color: var(--ink); }
.rte-sep { width: 1px; height: 18px; background: #d6dfe2; margin: 0 6px; }
.rte-arrange { margin-left: auto; border: 1.5px solid var(--amber); background: #fff7f2; color: #c2490f; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.rte-arrange:hover { background: var(--amber); color: #fff; }
.rte-body[hidden], .rte-preview[hidden] { display: none; }
.rte-area { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; resize: none; padding: 14px 18px; line-height: 1.65; min-height: 220px; font-size: .94rem; display: block; width: 100%; }
.rte-preview { padding: 16px 20px; min-height: 220px; max-height: 70vh; overflow-y: auto; }
.rte-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid #eef2f3; font-size: .74rem; color: #7a888c; background: #fcfdfd; }
.rte-foot code { background: #eef4f5; color: var(--ink); padding: 0 4px; border-radius: 4px; }

.pdp-description { color: #5f6c72; line-height: 1.75; }
.pdp-description p { margin-bottom: .8rem; }
.pdp-description ul, .pdp-description ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.pdp-description li { margin-bottom: .3rem; }
.pdp-description strong { color: #14213d; }
.pdp-description .pdp-desc-heading { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 1.2rem 0 .5rem; }
.pdp-description .pdp-desc-heading:first-child { margin-top: 0; }
.pdp-description .pdp-desc-label { margin-bottom: .35rem; margin-top: 1rem; }


/* =====================================================================
   PRODUCT PAGE REDESIGN (product.php) — everything scoped under .pdp
   ===================================================================== */
.pdp { --pdp-card: #fff; --pdp-line: #e7e9ed; --pdp-ink-text: #0f1b2d; }
.pdp a { text-decoration: none; }

/* Breadcrumb */
.pdp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--slate); margin-bottom: 18px; }
.pdp-crumbs a { color: var(--slate); }
.pdp-crumbs a:hover { color: var(--ink); }
.pdp-crumbs i { font-size: .65rem; opacity: .6; }
.pdp-crumbs .current { color: var(--pdp-ink-text); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Gallery ---------- */
@media (min-width: 992px) { .pdp-hero .pdp-gallery { position: sticky; top: 130px; } }
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-stage { flex: 1 1 auto; min-width: 0; }
.pdp .gallery-main-wrap {
  background: #fff; border: 1px solid var(--pdp-line); border-radius: 24px; margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(14, 92, 107, .07);
}
.pdp .gallery-main-wrap img { padding: 22px; transition: opacity .2s ease; }
.pdp .gallery-main-wrap:hover img { transform: none; }
.pdp .zoom-pane {
  inset: 0; left: 0; top: 0; width: 100%; height: 100%; border: 0; border-radius: inherit;
  background-size: 250%; background-color: #fff; pointer-events: none; z-index: 3;
}
.pdp .gallery-counter { left: 14px; right: auto; bottom: 14px; background: rgba(15, 27, 45, .72); backdrop-filter: blur(4px); }
.pdp .gallery-fullscreen-btn { right: 14px; bottom: 14px; width: 38px; height: 38px; border: 1px solid var(--pdp-line); box-shadow: var(--shadow-sm); }
.pdp .gallery-arrow { width: 40px; height: 40px; border: 1px solid var(--pdp-line); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s, background .15s; }
.pdp .gallery-main-wrap:hover .gallery-arrow, .pdp .gallery-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .pdp .gallery-arrow { opacity: 1; } }
.pdp .badge-sale { top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; z-index: 4; }
.pdp .wishlist-toggle { top: 14px; right: 14px; width: 40px; height: 40px; z-index: 4; border: 1px solid var(--pdp-line); box-shadow: var(--shadow-sm); }

.pdp-rail { order: 2; }
.pdp .gallery-thumbs { gap: 10px; padding: 2px; scrollbar-width: thin; }
.pdp .gallery-thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; border: 2px solid var(--pdp-line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.pdp .gallery-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pdp .gallery-thumb.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 100, 32, .15); }
@media (min-width: 992px) {
  .pdp-gallery.has-rail { flex-direction: row; align-items: stretch; }
  .pdp-gallery.has-rail .pdp-rail { order: 0; flex: 0 0 76px; position: relative; }
  .pdp-gallery.has-rail .gallery-thumbs { position: absolute; inset: 0; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
}
.pdp .gallery-360-wrap { margin-bottom: 0; border: 1px solid var(--pdp-line); border-radius: 24px; }
.pdp .gallery-placeholder { border: 1px solid var(--pdp-line); border-radius: 24px; width: 100%; }

/* ---------- Buy box ---------- */
.pdp-buybox { display: flex; flex-direction: column; gap: 16px; }
.pdp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .01em; transition: background .15s, color .15s; }
a.pdp-chip:hover { background: var(--ink); color: #fff; }
.pdp-chip-accent { background: #fff1e8; color: #c2490f; }
.pdp-stock { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pdp-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp-stock.in  { background: #e8f6ee; color: #17803f; }
.pdp-stock.in .dot { animation: pdpPulse 2s infinite; }
.pdp-stock.low { background: #fff4dd; color: #a86a00; }
.pdp-stock.out { background: #fdeaea; color: #c0392b; }
@keyframes pdpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.pdp-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pdp-title { font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; color: var(--pdp-ink-text); margin: 0; }
.pdp-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pdp-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pdp-line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: all .15s ease;
}
.pdp-icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.pdp-icon-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pdp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .86rem; margin-top: -6px; }
.pdp-rating { display: inline-flex; align-items: center; gap: 7px; color: var(--pdp-ink-text); }
.pdp-rating:hover strong { color: var(--ink); }
.pdp-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #c3c9cf; }
.pdp-lead { font-size: 1rem; line-height: 1.7; color: #475569; margin: 0; }

.pdp-price-card { position: relative; overflow: hidden; border: 1px solid #cfe3e7; border-radius: 22px; padding: 20px 26px 18px; background: linear-gradient(135deg, #e9f5f7 0%, #ffffff 65%); }
.pdp-price-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(247,100,32,.12), transparent 70%); pointer-events: none; }
.pdp-price-card.has-discount { border-color: #bfe0c9; background: linear-gradient(135deg, #eaf7ef 0%, #ffffff 65%); }
.pdp-price-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.pdp-price-card.has-discount .pdp-price-label { color: #17803f; }
.pdp-price-main { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.pdp .pdp-price { font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(2.7rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; color: var(--pdp-ink-text); line-height: 1; }
.pdp .pdp-unit { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--slate); margin-left: 4px; }
.pdp-mrp-block { display: inline-flex; flex-direction: column; line-height: 1.15; padding-bottom: 4px; }
.pdp-mrp-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a94a0; }
.pdp-mrp { font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; color: #8a94a0; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(214, 58, 58, .7); }
.pdp-off-pill { position: absolute; top: 16px; right: 20px; z-index: 1; background: #17803f; color: #fff; font-weight: 800; font-size: .95rem; padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(23,128,63,.25); }
.pdp-save { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .95rem; color: #17803f; font-weight: 500; }
.pdp-save i { font-size: 1.05rem; }
.pdp-save strong { font-weight: 800; }
.pdp-price-sub { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(14,92,107,.2); font-size: .9rem; color: var(--slate); }
.pdp-price-sub i { color: var(--ink); margin-right: 6px; }
.pdp-price-sub strong { color: var(--pdp-ink-text); }

.pdp .pdp-perks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
.pdp .pdp-perk { background: #fff; border: 1px solid var(--pdp-line); border-radius: 999px; padding: 7px 14px; font-size: .8rem; color: #334155; display: inline-flex; align-items: center; }
.pdp .pdp-perk i { color: var(--ink); margin-right: 7px; }
.pdp .pdp-perk a { color: var(--ink); font-weight: 700; margin-left: 4px; }

.pdp-form { display: flex; flex-direction: column; gap: 16px; }
.pdp-option-label { font-weight: 700; font-size: .85rem; color: var(--pdp-ink-text); margin-bottom: 8px; }
.pdp .swatch { border-radius: 12px; padding: 9px 20px; min-width: 56px; background: #fff; border: 1.5px solid var(--pdp-line); color: #334155; transition: all .15s ease; }
.pdp .swatch:hover { border-color: var(--ink); color: var(--ink); }
.pdp .swatch.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px var(--teal-soft); }
.pdp-stocknote { font-size: .8rem; font-weight: 600; }
.pdp-stocknote.is-in { color: #17803f; }
.pdp-stocknote.is-low, .pdp-stocknote.is-out { color: #c0392b; }

.pdp-buyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: -4px; }
.pdp .qty-stepper { height: 54px; border: 1.5px solid var(--pdp-line); border-radius: 16px; background: #fff; flex: 0 0 auto; }
.pdp .qty-stepper button { width: 46px; height: 100%; background: transparent; font-size: 1.2rem; color: var(--ink); transition: background .15s; }
.pdp .qty-stepper button:hover { background: var(--teal-soft); }
.pdp .qty-stepper input { width: 56px; background: transparent; font-size: 1.05rem; color: var(--pdp-ink-text); }
.pdp .pdp-cta { flex: 1 1 140px; height: 54px; border-radius: 16px; font-weight: 700; font-size: .98rem; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pdp .pdp-cta:disabled, .pdp .pdp-cta.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pdp-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-secondary .btn { height: 46px; border-radius: 14px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
.pdp-secondary > :only-child { grid-column: 1 / -1; }

.pdp-card { background: #fff; border: 1px solid var(--pdp-line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.pdp-card-head { display: flex; align-items: center; gap: 14px; }
.pdp-card-head strong { display: block; color: var(--pdp-ink-text); font-size: .95rem; }
.pdp-card-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.pdp-notify { background: #fffaf5; border-color: #ffd9bd; }
.pdp-notify .pdp-card-icon { background: #fff1e8; color: #c2490f; }
.pdp .pdp-card .form-control { border-radius: 12px; height: 46px; }
.pdp .pdp-card .btn { border-radius: 12px; height: 46px; padding: 0 22px; font-weight: 700; }
.pdp-pincode { display: flex; gap: 10px; }

.pdp-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pdp-trust-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--pdp-line); border-radius: 16px; }
.pdp-trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pdp-trust-item .icon-wrap { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pdp-trust-item strong { display: block; font-size: .86rem; color: var(--pdp-ink-text); line-height: 1.2; }
.pdp-trust-item small { color: var(--slate); font-size: .76rem; }
.pdp-payment-icons { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--slate); padding: 4px 4px 0; }
.pdp-payment-icons .pay-icons i { font-size: 1.15rem; margin-left: 14px; color: #64748b; }

/* ---------- Details ---------- */
.pdp-details { margin-top: 56px; }
.pdp-panel { background: #fff; border: 1px solid var(--pdp-line); border-radius: 24px; padding: 8px 28px 28px; box-shadow: 0 6px 22px rgba(14, 92, 107, .05); }
.pdp-tabs.nav-tabs { border-bottom: 1px solid var(--pdp-line); gap: 2px; scrollbar-width: none; margin-bottom: 24px; }
.pdp .pdp-tabs .nav-link { border: 0; background: none; color: var(--slate); font-weight: 600; font-size: .92rem; padding: 18px 14px 15px; position: relative; white-space: nowrap; border-radius: 0; display: inline-flex; align-items: center; gap: 8px; }
.pdp .pdp-tabs .nav-link:hover { color: var(--ink); }
.pdp .pdp-tabs .nav-link.active { color: var(--ink); background: none; }
.pdp .pdp-tabs .nav-link.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--amber); }
.pdp-tab-count { background: var(--bone); color: var(--slate); border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.pdp .pdp-tabs .nav-link.active .pdp-tab-count { background: var(--teal-soft); color: var(--ink); }

.pdp .pdp-description { font-size: .98rem; max-width: 74ch; }
.pdp-spec-group { font-weight: 700; color: var(--pdp-ink-text); margin: 18px 0 10px; }
.pdp-spec-table { border: 1px solid var(--pdp-line); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.pdp-spec-table th { width: 38%; background: var(--bone); color: var(--slate); font-weight: 600; padding: 12px 16px; }
.pdp-spec-table td { padding: 12px 16px; color: var(--pdp-ink-text); }
.pdp-spec-table tr + tr th, .pdp-spec-table tr + tr td { border-top: 1px solid var(--pdp-line); }
.pdp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0; margin: 0; }
.pdp-feature-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bone); border-radius: 14px; font-size: .92rem; color: var(--pdp-ink-text); }
.pdp-feature-grid i { color: var(--success); font-size: 1.05rem; margin-top: 2px; }
.pdp .faq-item { border: 1px solid var(--pdp-line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; transition: background .15s, border-color .15s; }
.pdp .faq-item.open { background: #f8fbfc; border-color: #cfe3e7; }
.pdp .faq-question { padding: 16px 0; }
.pdp-ship-list { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.pdp-ship-list li { display: flex; gap: 14px; align-items: flex-start; }
.pdp-ship-list strong { color: var(--pdp-ink-text); }

.pdp-rating-summary { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 20px 24px; background: var(--bone); border-radius: 18px; margin-bottom: 22px; }
.pdp-rating-score { text-align: center; min-width: 120px; }
.pdp-rating-score .num { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--pdp-ink-text); }
.pdp-review-form { background: #f8fbfc; border: 1px solid #d3e7ea; border-radius: 18px; padding: 20px; margin-bottom: 22px; }
.pdp-review-form .form-control, .pdp-review-form .form-select { border-radius: 12px; }
.pdp-login-note { display: flex; align-items: center; gap: 10px; background: var(--bone); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; color: var(--slate); }
.pdp-login-note a { color: var(--ink); font-weight: 700; }
.pdp .pdp-review { border-radius: 18px; padding: 18px; margin-bottom: 12px; }
.pdp-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Sidebar */
.pdp-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 992px) { .pdp-side { position: sticky; top: 130px; } }
.pdp-facts { padding: 22px 24px 24px; }
.pdp-side-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pdp-ink-text); margin-bottom: 8px; }
.pdp-side-title i { color: var(--ink); }
.pdp-fact-list { margin: 0; }
.pdp-fact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--pdp-line); font-size: .88rem; }
.pdp-fact-list > div:last-child { border-bottom: 0; }
.pdp-fact-list dt { color: var(--slate); font-weight: 500; }
.pdp-fact-list dd { margin: 0; text-align: right; font-weight: 600; color: var(--pdp-ink-text); }
.pdp-fact-list dd a { color: var(--ink); }
.pdp-docs { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.pdp-docs a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--pdp-line); border-radius: 12px; color: var(--pdp-ink-text); font-size: .88rem; font-weight: 600; transition: all .15s; }
.pdp-docs a:hover { border-color: var(--ink); background: var(--teal-soft); }
.pdp-docs a > i:first-child { color: var(--ink); font-size: 1.1rem; }
.pdp-quote-card { background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; border-radius: 22px; padding: 24px; }
.pdp-quote-card > i { font-size: 1.6rem; color: #ffd0b5; }
.pdp-quote-card h6 { color: #fff; font-weight: 700; margin: 10px 0 6px; }
.pdp-quote-card p { color: rgba(255,255,255,.82); font-size: .88rem; margin-bottom: 16px; }

/* Sections below */
.pdp-section { padding: 40px 0 0; }
.pdp-section-head { margin-bottom: 18px; }
.pdp-eyebrow-text { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.pdp-section-head h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--pdp-ink-text); margin: 0; }
.pdp-bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--pdp-line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); }
.pdp-bundle-items { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; flex: 1 1 420px; }
.pdp-bundle-item { position: relative; width: 150px; text-align: center; padding: 14px 12px; border: 1px solid var(--pdp-line); border-radius: 18px; background: #fff; }
.pdp-bundle-item.is-current { border-color: var(--ink); background: #f4fafb; }
.pdp-bundle-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; background: var(--bone); }
.pdp-bundle-item .name { font-size: .82rem; font-weight: 600; margin-top: 8px; color: var(--pdp-ink-text); line-height: 1.3; }
.pdp-bundle-item .price { font-size: .88rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.pdp-bundle-item .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .66rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pdp-bundle-plus { width: 32px; height: 32px; border-radius: 50%; background: var(--bone); color: var(--slate); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.pdp-bundle-total { flex: 0 0 220px; border-left: 1px dashed var(--pdp-line); padding-left: 24px; }
.pdp-bundle-total .amount { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--pdp-ink-text); margin-bottom: 12px; }
@media (max-width: 767px) { .pdp-bundle-total { flex: 1 1 100%; border-left: 0; padding-left: 0; border-top: 1px dashed var(--pdp-line); padding-top: 18px; } }

/* Sticky mobile bar (outside .pdp) */
.sticky-mobile-bar { gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px rgba(15, 27, 45, .14); }
.sticky-mobile-bar .sticky-price small { display: block; font-size: .68rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.sticky-mobile-bar .price-now { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.sticky-mobile-bar .btn { height: 48px; border-radius: 14px; font-weight: 700; }

@media (max-width: 767px) {
  .pdp-panel { padding: 4px 16px 22px; border-radius: 20px; }
  .pdp .pdp-tabs .nav-link { padding: 16px 12px 13px; }
  .pdp-titlebar { flex-direction: column; }
  .pdp-stock { margin-left: 0; }
  .pdp .pdp-cta { flex-basis: calc(50% - 6px); }
  .pdp .qty-stepper { flex: 1 1 100%; justify-content: space-between; }
  .pdp .qty-stepper input { flex: 1; }
  .pdp-secondary { grid-template-columns: 1fr; }
  .pdp-section { padding-top: 32px; }
  .pdp-details { margin-top: 40px; }
  .pdp { padding-bottom: 84px; }
}
.pdp-form .pdp-option:has(+ .pdp-buyrow) { margin-bottom: -10px; }
.pdp-form .pdp-option:has(+ .pdp-buyrow) .pdp-option-label { margin-bottom: 0; }

.sticky-mobile-bar .pdp-unit { font-size: .7em; font-weight: 600; color: var(--slate); margin-left: 2px; }
@media (max-width: 420px) { .pdp .pdp-price { font-size: 2.3rem; } .pdp-price-card { padding: 18px 18px 16px; } .pdp-off-pill { font-size: .82rem; padding: 5px 11px; right: 14px; } }

/* ---------------- Site Content admin + custom footer logo ---------------- */
footer.site-footer .footer-logo img { width: auto; max-width: 100%; object-fit: contain; }
footer.site-footer .footer-logo img.logo-badge { background: #fff; padding: 6px 12px; border-radius: 12px; }
.sc-image-row { display: flex; gap: 16px; align-items: flex-start; }
.sc-image-preview { width: 150px; height: 100px; object-fit: contain; background: #eef2f3 repeating-conic-gradient(#e3e8ea 0% 25%, #f3f6f7 0% 50%) 50% / 16px 16px; border: 1px solid #dfe5e8; border-radius: 12px; padding: 6px; flex-shrink: 0; }
.sc-tabs .nav-link { border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--slate); background: #fff; border: 1px solid #e7e9ed; margin-right: 8px; margin-bottom: 8px; }
.sc-tabs .nav-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sc-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid #e7e9ed; border-radius: 16px; padding: 12px 18px; box-shadow: 0 -6px 22px rgba(15,27,45,.08); }

/* =====================================================================
   BLOG (blog/index.php, blog/post.php)
   ===================================================================== */
.blog-page a { text-decoration: none; }
.blog-hero { position: relative; overflow: hidden; text-align: center; padding: 56px 0 64px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%); color: #fff; }
.blog-hero::before, .blog-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.blog-hero::before { width: 360px; height: 360px; right: -90px; top: -150px; background: radial-gradient(circle, rgba(247,100,32,.35), transparent 68%); }
.blog-hero::after { width: 300px; height: 300px; left: -100px; bottom: -160px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.blog-hero .container { position: relative; z-index: 1; }
.blog-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #ffd7c0; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 16px; }
.blog-hero h1 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; color: #fff; margin: 0 0 12px; }
.blog-sub { max-width: 620px; margin: 0 auto 26px; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.blog-search { position: relative; display: flex; align-items: center; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.blog-search > i { color: var(--slate); margin-right: 10px; }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: .98rem; min-width: 0; padding: 8px 0; color: #14213d; }
.blog-search button { border: 0; background: var(--amber); color: #fff; font-weight: 700; padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.blog-search button:hover { background: #d9560d; }

.blog-body { padding-top: 40px; padding-bottom: 56px; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--slate); }
.bl-meta i { margin-right: 6px; color: var(--ink); }
.bl-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff1e8; color: #c2490f; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

.bl-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid #e7e9ed; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 40px rgba(14,92,107,.09); margin-bottom: 44px; transition: transform .2s, box-shadow .2s; color: inherit; }
.bl-feature:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(14,92,107,.14); }
.bl-feature-img { position: relative; min-height: 340px; background: var(--teal-soft); overflow: hidden; }
.bl-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-feature:hover .bl-feature-img img { transform: scale(1.05); }
.bl-feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px 44px; }
.bl-feature-body h2 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.22; letter-spacing: -.02em; color: #0f1b2d; margin: 0; }
.bl-feature-body p { color: #5f6c72; font-size: 1.02rem; line-height: 1.7; margin: 0; }
.bl-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 24px; border-radius: 14px; transition: background .15s, gap .15s; }
.bl-feature:hover .bl-btn { background: var(--ink-dark); gap: 12px; }

.bl-section-title, .bl-results { display: flex; justify-content: space-between; align-items: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; color: #0f1b2d; margin-bottom: 20px; }
.bl-results { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; color: var(--slate); }
.bl-results strong { color: #0f1b2d; }
.bl-results a { color: var(--ink); font-weight: 700; font-size: .9rem; }

.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e9ed; border-radius: 22px; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,92,107,.12); border-color: #cfe3e7; }
.bl-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-soft); }
.bl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bl-card:hover .bl-thumb img { transform: scale(1.06); }
.bl-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.bl-title { font-family: 'Sora', 'Inter', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: #0f1b2d; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-excerpt { color: #5f6c72; font-size: .92rem; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { margin-top: auto; padding-top: 6px; color: var(--ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .15s, color .15s; }
.bl-card:hover .bl-more { gap: 10px; color: var(--amber); }

.bl-empty { text-align: center; padding: 64px 20px; background: #fff; border: 1px dashed #cfd8dc; border-radius: 24px; }
.bl-empty i { font-size: 2.6rem; color: #b8c4c7; }
.bl-empty h4 { margin: 12px 0 6px; color: #0f1b2d; }
.bl-empty p { color: var(--slate); }

.bl-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.bl-pagination a { min-width: 42px; height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e0e5e8; border-radius: 12px; background: #fff; color: #334155; font-weight: 600; transition: all .15s; }
.bl-pagination a:hover { border-color: var(--ink); color: var(--ink); }
.bl-pagination a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Article page ---------- */
.blog-post-page { padding: 24px 0 56px; }
.blog-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 2000; background: transparent; pointer-events: none; }
.blog-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ffb27a); border-radius: 0 4px 4px 0; transition: width .1s linear; }
.bp-head { max-width: 860px; margin: 8px 0 28px; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .84rem; color: var(--slate); margin-bottom: 16px; }
.bp-meta i { margin-right: 6px; color: var(--ink); }
.bp-meta .bl-pill i { color: #c2490f; margin-right: 0; }
.bp-head h1 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.03em; color: #0f1b2d; margin: 0 0 16px; }
.bp-lead { font-size: 1.2rem; line-height: 1.7; color: #475569; margin: 0; }
.bp-cover { margin: 0 0 40px; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(14,92,107,.14); background: var(--teal-soft); }
.bp-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.blog-content { font-size: 1.08rem; line-height: 1.85; color: #3b4754; }
.blog-content > p:first-child { font-size: 1.18rem; color: #243042; }
.blog-content p { margin-bottom: 1.35rem; }
.blog-content .pdp-desc-heading { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; color: #0f1b2d; font-size: 1.55rem; line-height: 1.3; letter-spacing: -.02em; margin: 2.4rem 0 1rem; padding-left: 16px; border-left: 4px solid var(--amber); }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.blog-content li { margin-bottom: .55rem; padding-left: .25rem; }
.blog-content li::marker { color: var(--amber); font-weight: 700; }
.blog-content strong { color: #0f1b2d; }
.blog-content .pdp-desc-label { margin: 1.6rem 0 .5rem; font-size: 1.1rem; }
.blog-content a { color: var(--ink); text-decoration: underline; }

.bp-share-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding: 20px 24px; background: #fff; border: 1px solid #e7e9ed; border-radius: 20px; }
.bp-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-share a, .bp-share button { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 50%; border: 1.5px solid #e0e5e8; background: #fff; color: #334155; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.15rem; cursor: pointer; transition: all .15s; }
.bp-share button { border-radius: 999px; font-size: .88rem; font-weight: 600; }
.bp-share button i { font-size: 1.15rem; }
.bp-share a:hover { color: #fff; transform: translateY(-2px); }
.bp-share a.wa:hover { background: #25d366; border-color: #25d366; }
.bp-share a.fb:hover { background: #1877f2; border-color: #1877f2; }
.bp-share a.tw:hover { background: #0f1419; border-color: #0f1419; }
.bp-share button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.bp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.bp-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: #fff; border: 1px solid #e7e9ed; border-radius: 18px; color: inherit; transition: all .15s; }
.bp-nav a:hover { border-color: var(--ink); box-shadow: 0 10px 26px rgba(14,92,107,.1); }
.bp-nav a.next { text-align: right; grid-column: 2; }
.bp-nav small { color: var(--amber); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.bp-nav span { font-weight: 700; color: #0f1b2d; line-height: 1.35; }

.bp-side { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 992px) { .bp-side { position: sticky; top: 130px; } }
.bp-side-card { background: #fff; border: 1px solid #e7e9ed; border-radius: 22px; padding: 22px; }
.bp-side-card h6 { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f1b2d; margin-bottom: 14px; }
.bp-side-card h6 i { color: var(--ink); }
.bp-mini { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e3e8ea; color: inherit; }
.bp-mini:last-of-type { border-bottom: 0; }
.bp-mini img { width: 68px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: var(--teal-soft); }
.bp-mini strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.35; color: #0f1b2d; }
.bp-mini small { color: var(--slate); font-size: .76rem; }
.bp-mini:hover strong { color: var(--ink); }
.bp-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink); font-weight: 700; font-size: .88rem; }
.bp-cta { background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; border-radius: 22px; padding: 24px; }
.bp-cta > i { font-size: 1.7rem; color: #ffd0b5; }
.bp-cta h6 { color: #fff; font-weight: 700; margin: 10px 0 6px; }
.bp-cta p { color: rgba(255,255,255,.82); font-size: .9rem; margin-bottom: 16px; }
.bp-more { margin-top: 56px; }

@media (max-width: 991px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-feature { grid-template-columns: 1fr; }
  .bl-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
  .bl-feature-body { padding: 26px 24px 30px; }
}
@media (max-width: 575px) {
  .blog-hero { padding: 40px 0 48px; }
  .bl-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-search button { padding: 10px 18px; }
  .bp-cover { border-radius: 20px; margin-bottom: 28px; }
  .bp-cover img { aspect-ratio: 16 / 10; }
  .blog-content { font-size: 1.02rem; }
  .blog-content .pdp-desc-heading { font-size: 1.3rem; }
  .bp-nav { grid-template-columns: 1fr; }
  .bp-nav a.next { grid-column: 1; text-align: left; }
  .bp-share-row { padding: 16px; }
}
.blog-admin-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid #e7e9ed; }
.blog-admin-cover { width: 120px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid #e7e9ed; }
.sc-tabs ~ .tab-content .form-switch .form-check-label, .summary-card .form-switch .form-check-label { margin-left: .4rem; }

/* =====================================================================
   CART · CHECKOUT · ORDER CONFIRMATION  (cart.php, checkout.php, order-success.php)
   ===================================================================== */
.ck-page { --ck-line: #e7e9ed; --ck-text: #0f1b2d; }
.ck-page a { text-decoration: none; }
.ck-page .min-w-0 { min-width: 0; }

/* Progress steps */
.ck-steps { display: flex; justify-content: center; align-items: flex-start; list-style: none; padding: 0; margin: 4px auto 28px; max-width: 560px; }
.ck-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #8a94a0; }
.ck-steps li::after { content: ''; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: var(--ck-line); }
.ck-steps li:last-child::after { display: none; }
.ck-steps .dot { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--ck-line); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; position: relative; z-index: 1; transition: all .2s; }
.ck-steps li.active { color: var(--ink); }
.ck-steps li.active .dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px var(--teal-soft); }
.ck-steps li.done { color: #17803f; }
.ck-steps li.done .dot { background: #17803f; border-color: #17803f; color: #fff; }
.ck-steps li.done::after { background: #17803f; }

.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ck-head h1 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.025em; color: var(--ck-text); margin: 0; }
.ck-count { display: inline-flex; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 4px 14px; border-radius: 999px; }
.ck-edit-cart { color: var(--ink); font-weight: 600; font-size: .9rem; }
.ck-edit-cart i { margin-right: 6px; }

.ck-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: .9rem; margin-bottom: 16px; }
.ck-alert[hidden] { display: none; }
.ck-alert i { margin-top: 2px; }
.ck-alert-warn { background: #fff7e6; color: #8a5a00; border: 1px solid #f6dca3; }
.ck-alert-good { background: #e8f6ee; color: #17803f; border: 1px solid #bfe0c9; margin-top: 14px; }
.ck-alert-bad  { background: #fdeaea; color: #b3261e; border: 1px solid #f3c1be; margin-top: 12px; }

/* Free-shipping progress */
.ck-ship { background: #fff; border: 1px solid var(--ck-line); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; }
.ck-ship-text { font-size: .92rem; color: #334155; margin-bottom: 10px; }
.ck-ship-text i { color: var(--ink); margin-right: 6px; }
.ck-ship-bar { height: 8px; background: #eef2f3; border-radius: 999px; overflow: hidden; }
.ck-ship-bar span { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--ink), #2aa3b5); border-radius: 999px; transition: width .45s ease; }
.ck-ship.is-free { background: #f1faf4; border-color: #bfe0c9; }
.ck-ship.is-free .ck-ship-text, .ck-ship.is-free .ck-ship-text i { color: #17803f; }
.ck-ship.is-free .ck-ship-bar span { background: linear-gradient(90deg, #17803f, #3ec46d); }

/* Cart lines */
.ck-items { display: flex; flex-direction: column; gap: 14px; }
.ck-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--ck-line); border-radius: 22px; padding: 18px; box-shadow: 0 6px 20px rgba(14,92,107,.05); transition: opacity .25s, transform .25s, box-shadow .2s; }
.ck-item:hover { box-shadow: 0 10px 28px rgba(14,92,107,.09); }
.ck-item.is-busy { opacity: .6; pointer-events: none; }
.ck-item.is-removing { opacity: 0; transform: translateX(24px); pointer-events: none; }
.ck-item-img { flex: 0 0 112px; }
.ck-item-img img { width: 112px; height: 112px; object-fit: cover; border-radius: 16px; background: var(--bone); border: 1px solid var(--ck-line); }
.ck-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.ck-item-top { display: flex; justify-content: space-between; gap: 12px; }
.ck-item-name { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--ck-text); }
.ck-item-name:hover { color: var(--ink); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ck-chip { background: var(--bone); color: #475569; border-radius: 999px; font-size: .74rem; font-weight: 600; padding: 3px 10px; }
.ck-chip-warn { background: #fff1e8; color: #c2490f; }
.ck-item-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: .92rem; }
.ck-item-price strong { color: var(--ck-text); }
.ck-item-price s { color: #8a94a0; font-size: .84rem; }
.ck-off { color: #17803f; font-weight: 700; font-size: .8rem; }
.ck-remove { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ck-line); background: #fff; color: #8a94a0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.ck-remove:hover { background: #fdeaea; border-color: #f3c1be; color: #c0392b; }
.ck-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ck-page .ck-qty { height: 44px; border: 1.5px solid var(--ck-line); border-radius: 14px; background: #fff; }
.ck-page .ck-qty button { width: 40px; height: 100%; background: transparent; color: var(--ink); font-size: 1.15rem; transition: background .15s; }
.ck-page .ck-qty button:hover:not(:disabled) { background: var(--teal-soft); }
.ck-page .ck-qty button:disabled { opacity: .3; cursor: not-allowed; }
.ck-page .ck-qty input { width: 46px; background: transparent; font-weight: 700; color: var(--ck-text); }
.ck-line-total { text-align: right; line-height: 1.2; }
.ck-line-total small { display: block; color: #8a94a0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ck-line-total .line-total { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--ck-text); }
.ck-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink); font-weight: 700; font-size: .92rem; }
.ck-back:hover { gap: 12px; }

/* Summary card (cart + checkout) */
.ck-summary { background: #fff; border: 1px solid var(--ck-line); border-radius: 24px; padding: 26px; box-shadow: 0 10px 30px rgba(14,92,107,.08); }
@media (min-width: 992px) { .ck-summary { position: sticky; top: 130px; } }
.ck-summary-title { display: flex; align-items: center; justify-content: space-between; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ck-text); margin: 0 0 18px; }
.ck-label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: 6px; }
.ck-coupon { margin-bottom: 18px; }
.ck-coupon-input { display: flex; gap: 8px; }
.ck-coupon-input input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--ck-line); border-radius: 12px; padding: 0 14px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; outline: 0; }
.ck-coupon-input input::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; }
.ck-coupon-input input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--teal-soft); }
.ck-coupon-input button { height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s; }
.ck-coupon-input button:hover { background: var(--ink-dark); }
.ck-coupon-input button:disabled { opacity: .6; }
.ck-coupon-applied { display: flex; align-items: center; gap: 10px; background: #e8f6ee; border: 1.5px dashed #6cc58b; color: #17803f; border-radius: 14px; padding: 11px 14px; font-size: .92rem; }
.ck-coupon-applied[hidden] { display: none; }
.ck-coupon-applied i { font-size: 1.1rem; }
.ck-coupon-applied span { flex: 1; }
.ck-coupon-applied button, .ck-coupon-applied a { border: 0; background: none; color: #b3261e; font-weight: 700; font-size: .82rem; cursor: pointer; padding: 0; }
.ck-coupon-applied.static { margin-bottom: 14px; }
.ck-coupon-applied.static a { color: var(--ink); }
.ck-msg { font-size: .8rem; margin-top: 6px; min-height: 0; }
.ck-msg.good { color: #17803f; }
.ck-msg.bad { color: #c0392b; }
.ck-rows { margin-top: 4px; }
.ck-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #475569; font-size: .94rem; }
.ck-row[hidden] { display: none; }
.ck-row-good { color: #17803f; font-weight: 600; }
.ck-total { margin-top: 8px; padding-top: 16px; border-top: 1px dashed #d3dde0; color: var(--ck-text); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; }
.ck-save { display: flex; align-items: center; gap: 10px; background: #f1faf4; color: #17803f; border-radius: 14px; padding: 11px 14px; font-size: .88rem; margin-top: 10px; }
.ck-save[hidden] { display: none; }
.ck-tax-note { color: #8a94a0; font-size: .78rem; margin: 12px 0 0; }
.ck-page .ck-cta { width: 100%; height: 56px; border-radius: 16px; font-weight: 800; font-size: 1.02rem; margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(247,100,32,.28); }
.ck-page .ck-cta:disabled { opacity: .7; cursor: wait; box-shadow: none; }
.ck-terms { font-size: .76rem; color: #8a94a0; text-align: center; margin: 12px 0 0; }
.ck-terms a { color: var(--ink); text-decoration: underline; }
.ck-assure { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f3; font-size: .76rem; color: var(--slate); }
.ck-assure i { color: var(--ink); margin-right: 5px; }

/* Mobile bottom bar + toast */
.ck-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px rgba(15,27,45,.14); }
.ck-mobile-bar small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); line-height: 1; }
.ck-mobile-bar strong { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--ck-text); }
.ck-mobile-bar .btn { height: 48px; padding: 0 26px; border-radius: 14px; font-weight: 800; }
.ck-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 1040; display: flex; align-items: center; gap: 16px; background: #0f1b2d; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .9rem; box-shadow: 0 12px 30px rgba(0,0,0,.28); max-width: calc(100vw - 32px); }
.ck-toast[hidden] { display: none; }
.ck-toast button { border: 0; background: none; color: #ffb27a; font-weight: 800; cursor: pointer; }
@media (max-width: 991px) { .ck-toast { bottom: 92px; } .ck-page { padding-bottom: 96px !important; } }

/* Empty cart */
.ck-empty { text-align: center; background: #fff; border: 1px dashed #cfd8dc; border-radius: 28px; padding: 64px 24px; max-width: 640px; margin: 24px auto; }
.ck-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--teal-soft); color: var(--ink); font-size: 2.6rem; margin-bottom: 18px; }
.ck-empty h3 { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ck-text); }
.ck-empty p { color: var(--slate); max-width: 420px; margin: 8px auto 22px; }

/* Checkout sections */
.ck-section { background: #fff; border: 1px solid var(--ck-line); border-radius: 24px; padding: 26px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(14,92,107,.05); }
.ck-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ck-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; }
.ck-section-head h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ck-text); margin: 0 0 2px; }
.ck-section-head p { color: var(--slate); font-size: .86rem; margin: 0; }
.ck-login-link { margin-left: auto; color: var(--ink); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ck-login-link i { margin-right: 6px; }
.ck-page .ck-input { height: 48px; border: 1.5px solid var(--ck-line); border-radius: 12px; font-size: .95rem; }
.ck-page .ck-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--teal-soft); }
.ck-page .ck-input:invalid:not(:placeholder-shown):not(:focus) { border-color: #e0a09b; }

/* Selectable cards (address / payment) */
.ck-choice { position: relative; display: block; cursor: pointer; margin: 0; }
.ck-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ck-choice-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; padding-right: 48px; background: #fff; border: 1.5px solid var(--ck-line); border-radius: 18px; transition: all .15s; }
.ck-choice:hover .ck-choice-body { border-color: #9fc9d0; }
.ck-choice-body::after { content: ''; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d2d6; background: #fff; transition: all .15s; }
.ck-choice input:checked + .ck-choice-body { border-color: var(--ink); background: #f4fafb; box-shadow: 0 0 0 4px var(--teal-soft); }
.ck-choice input:checked + .ck-choice-body::after { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.5 4.5l-7 7-3-3 1-1 2 2 6-6z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ck-choice input:focus-visible + .ck-choice-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.ck-addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.ck-choice-top { display: flex; align-items: center; gap: 8px; color: var(--ck-text); }
.ck-tag { background: var(--teal-soft); color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.ck-addr-text { color: #475569; font-size: .88rem; line-height: 1.55; }
.ck-addr-phone { color: var(--slate); font-size: .82rem; }
.ck-addr-phone i { margin-right: 6px; }
.ck-addr-new .ck-choice-body { align-items: center; justify-content: center; text-align: center; border-style: dashed; padding-right: 18px; min-height: 120px; color: var(--ink); }
.ck-addr-new .ck-choice-body::after { display: none; }
.ck-addr-new input:checked + .ck-choice-body { border-style: solid; }
.ck-new-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.ck-pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ck-pay-grid.is-disabled { opacity: .45; pointer-events: none; }
.ck-pay .ck-choice-body { flex-direction: row; align-items: center; gap: 14px; }
.ck-pay-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.ck-pay .ck-choice-body strong { display: block; color: var(--ck-text); }
.ck-pay .ck-choice-body small { display: block; color: var(--slate); font-size: .78rem; line-height: 1.4; margin-top: 2px; }

/* Wallet / points toggles */
.ck-credits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ck-toggle { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 18px; border: 1.5px solid var(--ck-line); border-radius: 18px; cursor: pointer; background: #fff; transition: all .15s; }
.ck-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ck-toggle:hover { border-color: #9fc9d0; }
.ck-toggle-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #fff1e8; color: #c2490f; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.ck-toggle-text { flex: 1; }
.ck-toggle-text strong { display: block; color: var(--ck-text); font-size: .95rem; }
.ck-toggle-text small { color: var(--slate); font-size: .8rem; }
.ck-switch { flex: 0 0 46px; width: 46px; height: 26px; border-radius: 999px; background: #cfd8dc; position: relative; transition: background .2s; }
.ck-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s; }
.ck-toggle input:checked ~ .ck-switch { background: #17803f; }
.ck-toggle input:checked ~ .ck-switch::after { transform: translateX(20px); }
.ck-toggle:has(input:checked) { border-color: #6cc58b; background: #f6fcf8; }
.ck-toggle input:focus-visible ~ .ck-switch { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Mini items in the checkout summary / confirmation */
.ck-mini-items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px dashed #d3dde0; max-height: 330px; overflow-y: auto; }
.ck-mini { display: flex; align-items: center; gap: 14px; }
.ck-mini-img { position: relative; flex: 0 0 56px; }
.ck-mini-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; border: 1px solid var(--ck-line); background: var(--bone); }
.ck-mini-img b { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ck-mini-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--ck-text); }
.ck-mini-name small { display: block; color: var(--slate); font-weight: 500; font-size: .76rem; }
.ck-mini-price { font-weight: 700; font-size: .9rem; color: var(--ck-text); white-space: nowrap; }
.ck-mini-lg { padding: 12px 0; border-bottom: 1px solid #eef2f3; }
.ck-mini-lg .ck-mini-img { flex-basis: 68px; } .ck-mini-lg .ck-mini-img img { width: 68px; height: 68px; }
.ck-mini-lg .ck-mini-name { font-size: .95rem; }

/* Order confirmation */
.ck-success { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.ck-success-mark { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: #e8f6ee; display: flex; align-items: center; justify-content: center; animation: ckPop .5s ease both; }
.ck-success-mark svg { width: 64px; height: 64px; }
.ck-success-mark circle { stroke: #17803f; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ckDraw .7s .15s ease forwards; }
.ck-success-mark path { stroke: #17803f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ckDraw .45s .7s ease forwards; }
@keyframes ckDraw { to { stroke-dashoffset: 0; } }
@keyframes ckPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ck-success h1 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.025em; color: var(--ck-text); margin-bottom: 10px; }
.ck-success-sub { color: var(--slate); font-size: 1.02rem; margin-bottom: 18px; }
.ck-order-chip { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1.5px dashed #b6c9ce; border-radius: 999px; padding: 8px 8px 8px 20px; }
.ck-order-chip span { color: var(--slate); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ck-order-chip strong { font-family: 'Sora', sans-serif; letter-spacing: .03em; color: var(--ck-text); }
.ck-order-chip button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--teal-soft); color: var(--ink); cursor: pointer; }
.ck-track { display: flex; list-style: none; padding: 22px 12px; margin: 0 auto; max-width: 820px; background: #fff; border: 1px solid var(--ck-line); border-radius: 24px; }
.ck-track li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; }
.ck-track li::after { content: ''; position: absolute; top: 21px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 2px; background: repeating-linear-gradient(90deg, #cfd8dc 0 6px, transparent 6px 12px); }
.ck-track li:last-child::after { display: none; }
.ck-track .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--bone); color: #8a94a0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 6px; position: relative; z-index: 1; }
.ck-track li.active .dot { background: #17803f; color: #fff; box-shadow: 0 0 0 5px #e8f6ee; }
.ck-track strong { font-size: .88rem; color: var(--ck-text); }
.ck-track small { color: var(--slate); font-size: .74rem; line-height: 1.3; }
.ck-panel { background: #fff; border: 1px solid var(--ck-line); border-radius: 24px; padding: 24px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(14,92,107,.05); }
.ck-panel-title { display: flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ck-text); margin: 0 0 14px; }
.ck-panel-title i { color: var(--ink); }
.ck-status { font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.ck-status-good { background: #e8f6ee; color: #17803f; }
.ck-status-warn { background: #fff4dd; color: #a86a00; }
.ck-status-bad  { background: #fdeaea; color: #c0392b; }

@media (max-width: 767px) {
  .ck-steps .lbl { font-size: .74rem; }
  .ck-item { padding: 14px; gap: 14px; border-radius: 18px; }
  .ck-item-img { flex-basis: 84px; } .ck-item-img img { width: 84px; height: 84px; border-radius: 14px; }
  .ck-item-bottom { flex-wrap: wrap; }
  .ck-section { padding: 20px 16px; border-radius: 20px; }
  .ck-login-link { margin-left: 0; width: 100%; padding-left: 50px; }
  .ck-section-head { flex-wrap: wrap; }
  .ck-addr-grid, .ck-pay-grid { grid-template-columns: 1fr; }
  .ck-summary { padding: 20px; border-radius: 20px; }
  .ck-track { flex-wrap: wrap; row-gap: 18px; }
  .ck-track li { flex: 0 0 50%; } .ck-track li::after { display: none; }
}
@media (max-width: 420px) { .ck-item-img { flex-basis: 72px; } .ck-item-img img { width: 72px; height: 72px; } .ck-line-total .line-total { font-size: 1.05rem; } }

/* Blog admin: SEO box + product picker */
.bl-seo-box { background: #f8fbfc; border: 1px solid #d9e8eb; border-radius: 16px; padding: 18px; }
.bl-seo-title { font-weight: 700; color: #0f1b2d; margin-bottom: 14px; font-size: .92rem; }
.bl-seo-title i { color: var(--ink); margin-right: 8px; }
.meta-count { font-size: .76rem; font-weight: 600; color: var(--slate); }
.bl-prod-picker { border: 1px solid #dfe5e8; border-radius: 14px; overflow: hidden; background: #fff; }
.bl-prod-picker .bl-prod-search { border: 0; border-bottom: 1px solid #eef2f3; border-radius: 0; padding: 10px 14px; }
.bl-prod-list { max-height: 170px; overflow-y: auto; padding: 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.bl-prod-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .86rem; cursor: pointer; margin: 0; }
.bl-prod-item:hover { background: var(--teal-soft); }
.bl-prod-item input { accent-color: var(--ink); width: 16px; height: 16px; }
@media (max-width: 767px) { .bl-prod-list { grid-template-columns: 1fr; } }

/* ---------- Blog article: tables, TOC, products, contact CTA ---------- */
.rt-table-wrap { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid #dbe6e9; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(14,92,107,.07); -webkit-overflow-scrolling: touch; }
.rt-table { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 0; font-size: .96rem; line-height: 1.55; color: #334155; }
.rt-table th { background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; font-weight: 700; text-align: left; padding: 14px 18px; white-space: nowrap; }
.rt-table th:empty { background: var(--ink-dark); }
.rt-table td { padding: 13px 18px; border-top: 1px solid #e8eef0; vertical-align: top; }
.rt-table tbody tr:nth-child(even) td { background: #f7fafb; }
.rt-table tbody tr:hover td { background: var(--teal-soft); }
.rt-table td:first-child { font-weight: 700; color: #0f1b2d; white-space: nowrap; }
.rt-table .ta-center { text-align: center; } .rt-table .ta-right { text-align: right; }
.blog-content .pdp-desc-heading.is-sub { font-size: 1.2rem; border-left: 0; padding-left: 0; margin: 1.8rem 0 .7rem; color: var(--ink); }
.blog-content h2[id], .blog-content h3[id] { scroll-margin-top: 130px; }
.blog-content a { font-weight: 600; word-break: break-word; }
.blog-content a:hover { color: var(--amber); }
.pdp-description .rt-table-wrap, .rte-preview .rt-table-wrap { margin: 1rem 0 1.4rem; }

.bp-toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: calc(100vh - 360px); overflow-y: auto; }
.bp-toc li { margin: 0; }
.bp-toc a { display: block; padding: 8px 12px; margin: 1px 0; border-left: 3px solid transparent; border-radius: 0 10px 10px 0; color: #475569; font-size: .9rem; font-weight: 500; line-height: 1.4; transition: all .15s; }
.bp-toc a:hover { background: var(--teal-soft); color: var(--ink); }
.bp-toc a.active { border-left-color: var(--amber); background: #fff7f2; color: #0f1b2d; font-weight: 700; }
.bp-toc li.lvl3 a { padding-left: 28px; font-size: .84rem; }
.bp-toc-m { background: #fff; border: 1px solid #e7e9ed; border-radius: 16px; margin-bottom: 24px; }
.bp-toc-m summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; color: #0f1b2d; cursor: pointer; list-style: none; }
.bp-toc-m summary::-webkit-details-marker { display: none; }
.bp-toc-m[open] summary i.ms-auto { transform: rotate(180deg); }
.bp-toc-m .bp-toc { padding: 0 8px 12px; max-height: 320px; }

.bp-products { margin-top: 44px; padding: 28px; background: linear-gradient(135deg, #eef7f8, #fff 70%); border: 1px solid #d3e7ea; border-radius: 26px; }
.bp-products-head h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.35rem; color: #0f1b2d; margin: 0 0 18px; }
.bp-products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bp-product { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #e0eaec; border-radius: 20px; padding: 14px; color: inherit; transition: all .2s; }
.bp-product:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,92,107,.13); border-color: #b6d4d9; }
.bp-product-img { position: relative; flex: 0 0 92px; }
.bp-product-img img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; background: var(--bone); }
.bp-product-img b { position: absolute; top: -6px; left: -6px; background: var(--amber); color: #fff; font-size: .66rem; padding: 2px 8px; border-radius: 999px; }
.bp-product-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-product-body strong { font-size: .95rem; line-height: 1.35; color: #0f1b2d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-product-price { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); }
.bp-product-price small { font-weight: 600; color: var(--slate); font-size: .72em; margin-left: 2px; }
.bp-product-go { font-size: .84rem; font-weight: 700; color: var(--amber); }
.bp-product:hover .bp-product-go i { margin-left: 4px; }

.bp-cta-actions { display: flex; flex-direction: column; gap: 10px; }
.bp-cta-btn { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: .92rem; transition: all .15s; word-break: break-all; }
.bp-cta-btn:hover { background: #fff; color: var(--ink); }
.bp-cta-btn i { font-size: 1.1rem; color: #ffd0b5; }
.bp-cta-btn:hover i { color: var(--amber); }
.bp-cta-btn.wa { background: #25d366; border-color: #25d366; }
.bp-cta-btn.wa i { color: #fff; }
.bp-cta-btn.wa:hover { background: #1faa52; color: #fff; }
@media (max-width: 767px) { .bp-products { padding: 20px 16px; border-radius: 20px; } .bp-products-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   COMPANY DETAILS (pages/company.php)
   ===================================================================== */
.co-page a { text-decoration: none; }
.co-hero { position: relative; overflow: hidden; padding: 64px 0 72px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%); color: #fff; }
.co-hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(247,100,32,.34), transparent 68%); pointer-events: none; }
.co-hero::after { content: ''; position: absolute; width: 320px; height: 320px; left: -110px; bottom: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); pointer-events: none; }
.co-hero .container { position: relative; z-index: 1; }
.co-hero h1 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; color: #fff; margin: 0 0 14px; }
.co-intro { max-width: 640px; color: rgba(255,255,255,.86); font-size: 1.08rem; line-height: 1.75; margin-bottom: 26px; }
.co-hero-actions, .co-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.co-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; transition: all .18s; }
.co-btn-solid { background: var(--amber); color: #fff; box-shadow: 0 10px 22px rgba(247,100,32,.3); }
.co-btn-solid:hover { background: #d9560d; color: #fff; transform: translateY(-2px); }
.co-btn-wa { background: #25d366; color: #fff; }
.co-btn-wa:hover { background: #1faa52; color: #fff; transform: translateY(-2px); }
.co-btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.co-btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.co-logo-card { width: 260px; height: 220px; background: #fff; border-radius: 28px; display: flex; align-items: center; justify-content: center; padding: 28px; box-shadow: 0 24px 50px rgba(0,0,0,.25); transform: rotate(2deg); }
.co-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.co-body { padding-top: 44px; padding-bottom: 64px; margin-top: 0; }
.co-card { background: #fff; border: 1px solid #e7e9ed; border-radius: 24px; padding: 28px; box-shadow: 0 8px 26px rgba(14,92,107,.06); }
.co-card-title { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: #0f1b2d; margin: 0 0 14px; }
.co-card-title i { color: var(--ink); }
.co-address { font-size: 1.02rem; line-height: 1.75; color: #475569; margin-bottom: 14px; }
.co-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .9rem; }
.co-link:hover { color: var(--amber); }
.co-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 0; padding-top: 22px; border-top: 1px dashed #d3dde0; }
.co-facts > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; }
.co-fact-icon { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.co-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate); font-weight: 700; }
.co-facts dd { margin: 0; font-weight: 700; color: #0f1b2d; word-break: break-word; }
.co-contact { background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; border-radius: 24px; padding: 28px; height: 100%; }
.co-contact .co-card-title { color: #fff; } .co-contact .co-card-title i { color: #ffd0b5; }
.co-contact p { color: rgba(255,255,255,.82); margin-bottom: 18px; }

.co-section { margin-top: 56px; }
.co-sub { color: var(--slate); margin: 6px 0 0; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.co-supply { position: relative; background: #fff; border: 1px solid #e7e9ed; border-radius: 22px; padding: 26px 24px 24px; transition: all .2s; overflow: hidden; }
.co-supply:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,92,107,.12); border-color: #b6d4d9; }
.co-supply::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--ink), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.co-supply:hover::after { transform: scaleX(1); }
.co-supply-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; color: #d3e3e6; line-height: 1; }
.co-supply h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.08rem; color: #0f1b2d; margin: 10px 0 8px; }
.co-supply p { color: #5f6c72; font-size: .92rem; line-height: 1.65; margin: 0; }
.co-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.co-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid #e7e9ed; border-radius: 22px; padding: 26px 18px; }
.co-avatar { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--ink), #2aa3b5); color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.co-person strong { color: #0f1b2d; } .co-person small { color: var(--slate); }
.co-policies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.co-policies a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #e7e9ed; border-radius: 16px; color: #0f1b2d; font-weight: 600; font-size: .92rem; transition: all .15s; }
.co-policies a > i:first-child { color: var(--ink); font-size: 1.1rem; }
.co-policies a > i:last-child { margin-left: auto; color: #9aa6ab; transition: transform .15s; }
.co-policies a:hover { border-color: var(--ink); background: var(--teal-soft); }
.co-policies a:hover > i:last-child { transform: translateX(4px); color: var(--ink); }
.co-dl { margin: 0; } .co-dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #e3e8ea; font-size: .92rem; }
.co-dl > div:last-child { border-bottom: 0; } .co-dl dt { color: var(--slate); font-weight: 500; } .co-dl dd { margin: 0; font-weight: 600; text-align: right; } .co-dl a { color: var(--ink); }
.co-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 56px; padding: 32px 36px; border-radius: 28px; background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; }
.co-cta h3 { font-family: 'Sora', sans-serif; font-weight: 800; color: #fff; margin: 0 0 6px; }
.co-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 520px; }
@media (max-width: 991px) { .co-grid { grid-template-columns: repeat(2, 1fr); } .co-hero { padding: 48px 0 56px; } }
@media (max-width: 575px) { .co-grid, .co-policies, .co-facts { grid-template-columns: 1fr; } .co-card, .co-contact { padding: 22px 18px; border-radius: 20px; } .co-cta { padding: 24px 20px; border-radius: 22px; } .co-btn { flex: 1 1 100%; justify-content: center; } }
.blog-content a[href^="tel:"], .pdp-description a[href^="tel:"] { white-space: nowrap; }

/* Article editor inside modals: toolbar stays visible while writing; the page below stays reachable */
.modal .rte-toolbar { position: sticky; top: 0; z-index: 3; }
.modal .rte-area { min-height: 260px; overscroll-behavior: auto; }
.modal .rte-preview { max-height: 45vh; }
.modal-dialog-scrollable .modal-footer { position: sticky; bottom: 0; background: #fff; z-index: 4; }

/* ---------------- Blog editor page (admin/blog-form.php) ---------------- */
.blog-page { padding: 20px 24px 0; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 1199px) { .bp-grid { grid-template-columns: minmax(0, 1fr); } }
.blog-page .rte { overflow: visible; }
.blog-page .rte-toolbar { position: sticky; top: 0; z-index: 20; border-radius: 14px 14px 0 0; box-shadow: 0 2px 6px rgba(14,92,107,.06); }
.blog-page .rte-area { min-height: 460px; }
.blog-page .rte-preview { max-height: none; min-height: 460px; }
.blog-page .rte-foot { border-radius: 0 0 14px 14px; }
.bp-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid #e7e9ed; background: #f3f6f7; }
.bp-prod-list { grid-template-columns: 1fr; max-height: 260px; }
.blog-page .meter { height: 4px; background: #e8eef0; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.blog-page .meter span { display: block; height: 100%; width: 0; background: #c9d4d8; transition: width .15s, background .15s; }
.blog-page .meter span[data-state="good"] { background: #17803f; }
.blog-page .meter span[data-state="short"], .blog-page .meter span[data-state="long"] { background: #d97706; }
.blog-page .meta-count { font-size: .78rem; color: #7a888c; font-weight: 500; }
.blog-page .meta-count[data-state="good"] { color: #17803f; }
.blog-page .meta-count[data-state="short"], .blog-page .meta-count[data-state="long"] { color: #c2490f; }
.seo-score { font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: #fde8e8; color: #b42318; }
.seo-score[data-level="ok"] { background: #fff3dc; color: #b45309; }
.seo-score[data-level="good"] { background: #dcf5e6; color: #17803f; }
.serp { background: #fff; border: 1px solid #e1e5e8; border-radius: 12px; padding: 14px 16px; font-family: Arial, Helvetica, sans-serif; }
.serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: .8rem; line-height: 1.3; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: inline-flex; align-items: center; justify-content: center; color: #5f6368; flex-shrink: 0; }
.serp-sitename { display: block; color: #202124; font-size: .85rem; }
.serp-url { color: #4d5156; font-size: .75rem; word-break: break-all; }
.serp-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; margin-bottom: 3px; word-break: break-word; }
.serp-desc { color: #4d5156; font-size: .85rem; line-height: 1.5; word-break: break-word; }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.seo-checks li { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; line-height: 1.35; }
.seo-checks li i { margin-top: 2px; }
.seo-checks .is-ok i { color: #17803f; }
.seo-checks .is-warn i { color: #d97706; }
.seo-checks .is-bad i { color: #d92d20; }
