:root {
  --green: #0a8a3d;
  --green-dark: #05612a;
  --gold: #f2b705;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e6e8ec;
  --soft: #f7f8fa;
  --danger: #c0392b;
  --brand: #06585f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  background: #faf9f6;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(15, 23, 42, .06);
  margin-left: 72px;
}

.header-main {
  max-width: none;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 26px;
  display: grid;
  grid-template-columns: 150px 210px minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.brand img { width: 138px; height: auto; display: block; }

.search {
  height: 48px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: 0;
}

.icon-btn, .cart-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.icon-btn svg, .cart-button svg, .service-points svg, .floating-actions svg { width: 20px; height: 20px; }

.desktop-nav {
  display: none;
  gap: 22px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}

.side-category-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 72px;
  padding: 8px 0 18px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 18px rgba(15, 23, 42, .05);
}

.side-category-rail a,
.side-category-rail button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 22px;
}

.side-category-rail .rail-menu {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.side-category-rail svg { width: 26px; height: 26px; }

.all-categories {
  position: relative;
}

.categories-toggle {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.categories-toggle svg { width: 24px; height: 24px; }

.categories-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 100;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .15);
}

.categories-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.categories-menu a:hover { background: var(--soft); color: var(--green); }
.all-categories:hover .categories-menu, .all-categories:focus-within .categories-menu { display: block; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(15, 23, 42, .38);
}

.site-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(390px, 92vw);
  height: 100vh;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .22s ease;
  box-shadow: 18px 0 42px rgba(15, 23, 42, .18);
}

body.menu-open .menu-overlay { display: block; }
body.menu-open .site-menu-drawer { transform: translateX(0); }

.drawer-tabs {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.drawer-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.drawer-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.drawer-panel {
  display: none;
  padding: 12px;
}

.drawer-panel.active { display: grid; }

.drawer-panel a {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.drawer-panel a:hover { color: var(--green); }

.nav-item { position: relative; display: inline-flex; min-height: 40px; align-items: center; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
}

.submenu a:hover { background: var(--soft); }
.nav-item:hover .submenu { display: block; }

.desktop-nav a:hover, .category-strip button:hover { color: var(--green); }

.cart-button { position: relative; }

#cartCount {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cart-button span {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.category-strip {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-strip button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  white-space: nowrap;
  font-weight: 600;
}

.category-strip a {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 14px;
  white-space: nowrap;
  font-weight: 600;
}

.category-strip a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.category-strip button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.mobile-only, .mobile-menu { display: none; }

.hero {
  max-width: none;
  margin: 0 0 0 72px;
  padding: 0 24px 0;
}

.hero img {
  width: 100%;
  display: block;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
}

.compact-hero img { max-height: 260px; }

.category-cards {
  max-width: 1480px;
  margin: 20px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.category-card strong { font-size: 18px; }
.category-card span { color: var(--muted); font-size: 14px; }

.section {
  max-width: none;
  margin: 60px 0 0 72px;
  padding: 0 24px 44px;
}

.section-title {
  min-height: 64px;
  margin-bottom: 44px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--green) 0%, #4d5f43 100%);
  border-left: 0;
}

.section-title h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
}

.view-all, .load-more, .checkout-btn {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.view-all:hover, .load-more:hover, .checkout-btn:hover { background: var(--green-dark); }

.shop-tools {
  margin: -6px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.shop-tools p { margin: 0; }

.shop-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

.shop-tools select,
.checkout-modal select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.product-image {
  position: relative;
  background: var(--soft);
}

.product-image img {
  width: 100%;
  aspect-ratio: 768 / 987;
  display: block;
  object-fit: cover;
}

.quick-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.product-image .quick-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-body { padding: 12px; }

.product-title {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.price {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.price del {
  margin-right: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.buy-now {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #151515;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.details-btn {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.load-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.info-band {
  max-width: 1480px;
  margin: 0 auto 32px;
  padding: 28px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.info-band h2 { margin: 0 0 8px; }
.info-band p { margin: 0; color: var(--muted); max-width: 660px; line-height: 1.7; }

.service-points {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.service-points span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.content-grid {
  max-width: 1480px;
  margin: 0 auto 32px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.content-panel h2,
.contact-panel h2 { margin: 0 0 14px; }

.size-table {
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.size-table th { background: var(--soft); }

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }

.contact-panel {
  max-width: 1480px;
  margin: 0 auto 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(6, 88, 95, .08), rgba(255, 255, 255, .92)),
    var(--soft);
  border: 1px solid rgba(6, 88, 95, .12);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .08);
}

.contact-panel p { color: var(--muted); line-height: 1.7; margin: 0 0 10px; }

.contact-panel a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, .08);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 10px;
  padding: 13px 14px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(6, 88, 95, .12);
  transform: translateY(-1px);
}

.contact-form button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 48px;
  min-width: 180px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand), #0b7a83);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(6, 88, 95, .22);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.contact-form button span {
  display: inline-block;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: 15px !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(6, 88, 95, .28);
  filter: saturate(1.08);
}

.wide-text {
  grid-column: 1 / -1;
  margin: 0;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(420px, 92vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(105%);
  transition: transform .22s ease;
  box-shadow: -20px 0 40px rgba(15, 23, 42, .18);
}

.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  min-height: 70px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { margin: 0; font-size: 20px; }

.cart-items {
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}

.mini-cart-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 20px;
  align-items: start;
}

.cart-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cart-line h3 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.35;
}

.cart-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  align-self: start;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 18px;
}

.cart-footer .checkout-btn, .checkout-modal .checkout-btn { width: 100%; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(15, 23, 42, .38);
}

.overlay.show { display: block; }

.checkout-modal {
  width: min(520px, 92vw);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.checkout-modal::backdrop { background: rgba(15, 23, 42, .38); }
.product-modal::backdrop { background: rgba(15, 23, 42, .42); }

.checkout-modal form {
  padding-bottom: 18px;
}

.checkout-modal label {
  display: grid;
  gap: 7px;
  margin: 14px 18px;
  font-weight: 700;
}

.checkout-modal input, .checkout-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  outline-color: var(--green);
}

.checkout-modal textarea { min-height: 92px; resize: vertical; }
.checkout-modal .checkout-btn { width: calc(100% - 36px); margin: 4px 18px 0; }

.whatsapp-order {
  width: calc(100% - 36px);
  min-height: 42px;
  margin: 10px 18px 0;
  border: 1px solid var(--green);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
}

.product-modal {
  width: min(980px, 94vw);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.product-detail-inline {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1fr;
  gap: 28px;
  align-items: start;
}

.product-detail-inline > img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 768 / 987;
  object-fit: cover;
  background: var(--soft);
}

.product-detail-inline h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.3; }
.rich-content { color: var(--muted); line-height: 1.7; }
.order-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
}

.order-box label { display: grid; gap: 7px; font-weight: 700; }
.order-box input, .order-box textarea, .order-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
}
.order-box textarea { min-height: 86px; resize: vertical; }
.order-box label:nth-of-type(5), .order-box .checkout-btn, .order-box .whatsapp-order { grid-column: 1 / -1; }

.static-page { line-height: 1.8; }
.pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.pagination a.active { background: var(--green); color: #fff; border-color: var(--green); }

.product-detail {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 24px;
  padding: 22px;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 768 / 987;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-body h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.35;
}

.detail-price {
  color: var(--green-dark);
  font-size: 25px;
  font-weight: 900;
}

.option-row {
  display: grid;
  gap: 8px;
}

.option-row select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer {
  padding: 34px 22px 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  background: #1f2933;
  color: #fff;
  margin-left: 72px;
}

.footer > div {
  max-width: 700px;
  width: 100%;
  justify-self: center;
}

.footer h3 { margin: 0 0 12px; }
.footer p { margin: 0 0 8px; color: #dce2e8; }
.footer a { display: inline-block; margin-right: 16px; color: #fff; font-weight: 700; }

.floating-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 58px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  transition: transform .25s ease;
}

body.product-view .floating-actions { display: grid; }
body.product-view .floating-actions.auto-hide { transform: translateY(110%); }

.floating-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

@media (max-width: 1100px) {
  .header-main {
    min-height: 72px;
    grid-template-columns: 150px 210px minmax(180px, 1fr) auto;
    gap: 18px;
  }
  .desktop-nav { display: none; }
  .mobile-only { display: inline-grid; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mobile-menu.open {
    display: grid;
    gap: 0;
    padding: 8px 22px 16px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
}

@media (max-width: 900px) and (min-width: 560px) {
  .header-main {
    grid-template-columns: 150px 210px 260px auto;
    overflow: hidden;
  }
  .search { min-width: 260px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .section-title h1 { font-size: 34px; }
}

@media (max-width: 559px) {
  .site-header, .hero, .section, .footer, .contact-panel, .info-band { margin-left: 0; }
  .side-category-rail { display: none; }
  .header-main {
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 8px 14px;
  }
  .brand img { width: 132px; }
  .all-categories { grid-column: 1 / 3; order: 3; }
  .categories-toggle { height: 48px; font-size: 16px; justify-content: flex-start; padding: 0 18px; }
  .categories-menu { width: min(320px, 92vw); }
  .cart-button, .icon-btn { width: 48px; height: 48px; }
  .search {
    grid-column: 1 / -1;
    order: 4;
    height: 48px;
  }
  .category-strip, .hero, .section, .category-cards, .content-grid { padding-left: 14px; padding-right: 14px; }
  .hero { margin-top: 0; }
  .hero img { aspect-ratio: 2.1 / 1; }
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { padding: 0 12px; }
  .section-title h1 { font-size: 22px; }
  .section { margin-top: 34px; }
  .section-title { margin-bottom: 22px; }
  .shop-tools { align-items: stretch; flex-direction: column; }
  .shop-tools label { justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-title { font-size: 13px; min-height: 58px; }
  .price { font-size: 16px; }
  .info-band { display: grid; padding: 24px 14px; }
  .content-grid, .contact-panel, .product-detail { grid-template-columns: 1fr; }
  .product-detail-inline, .order-box, .mini-cart-grid { grid-template-columns: 1fr; }
  .contact-panel { padding-left: 14px; padding-right: 14px; }
  .contact-form { grid-template-columns: 1fr; }
  .detail-body h2 { font-size: 21px; }
  .detail-actions { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 390px) {
  .floating-actions span { display: none; }
  .product-grid { gap: 10px; }
  .product-body { padding: 10px; }
}

/* Dynamic single-product funnel */
.funnel-page { background: #f5f7f6; }

.funnel-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 160px 210px minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
}

.fade-in {
  animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.funnel-categories .categories-toggle {
  width: 100%;
  height: 48px;
  border-radius: 6px;
}

.funnel-header .brand img {
  width: 145px;
  max-height: 54px;
  object-fit: contain;
}

.funnel-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: visible;
}

.funnel-search input {
  min-height: 46px;
  border: 0;
  padding: 0 14px;
  outline: 0;
}

.funnel-search button,
.order-now,
.back-link {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
  animation: fadeUp .38s ease both;
}

.order-now:hover,
.order-now:focus-visible {
  background: #075f66;
  color: #fff7d6;
  box-shadow: 0 12px 24px rgba(7, 95, 102, .2);
  transform: translateY(-2px);
}

.back-link {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.funnel-nav a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.cart-3d {
  position: relative;
  gap: 0;
  min-height: 48px;
  border: 1px solid #e5e7eb !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f4f5 100%);
  color: #050505;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.cart-icon-svg {
  width: 42px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
}

.cart-3d b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(225, 29, 72, .28);
}

.icon-cart-only {
  min-width: 58px;
  justify-content: center;
  padding: 6px 7px !important;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.search-results.open {
  display: grid;
  gap: 6px;
}

.search-results a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
}

.search-results a:hover { background: var(--soft); }

.search-results img {
  width: 54px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.search-results small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.funnel-slider {
  position: relative;
  height: clamp(230px, 36vw, 520px);
  overflow: hidden;
  background: #e8ece9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .85s ease, transform 4.8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 5.4s ease;
  will-change: transform;
}

.slide.active img {
  animation: heroKenBurns 5.2s ease both;
}

@keyframes heroKenBurns {
  from { transform: scale(1.1) translate3d(0, 0, 0); }
  to { transform: scale(1.01) translate3d(-1.2%, 0, 0); }
}

.funnel-section {
  max-width: 1240px;
  margin: 34px auto 54px;
  padding: 0 clamp(16px, 4vw, 32px);
}

.funnel-section-head {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.funnel-section-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.funnel-section-head span {
  color: var(--muted);
  font-weight: 800;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-product-area {
  display: grid;
  gap: 34px;
}

.category-product-block {
  display: grid;
  gap: 14px;
  animation: fadeUp .42s ease both;
}

.category-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--cat-accent, var(--green)) 0%, var(--cat-accent, var(--green)) 76%, #c96918 100%);
  border-radius: 2px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .08);
}

.category-product-head h2 {
  margin: 0;
  padding: 4px 9px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.category-view-all {
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  padding: 0 12px;
  color: #fff;
  background: rgba(0, 0, 0, .12);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}

.category-view-all:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff7de;
}

.empty-products {
  color: var(--muted);
  font-weight: 800;
}

.product-slot {
  display: contents;
}

.product-slot.product-hidden,
.load-more-wrap.is-hidden {
  display: none;
}

.load-more-wrap {
  margin-top: 4px;
  display: grid;
  justify-items: center;
}

.load-more {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 2px;
  padding: 0 18px;
  background: #fff;
  color: #687076;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .05);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.load-more:hover,
.load-more-link:hover {
  border-color: var(--cat-accent, var(--green));
  background: var(--cat-accent, var(--green));
  color: #fff;
  transform: translateY(-1px);
}

.product-slot.product-revealed .funnel-card {
  animation: productReveal .36s ease both;
}

@keyframes productReveal {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.funnel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: fadeUp .52s ease both;
}

.funnel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 95, 102, .2);
  box-shadow: 0 22px 42px rgba(15, 23, 42, .12);
}

.funnel-card-image {
  display: block;
  aspect-ratio: 4 / 5;
  background: #edf0ed;
}

.funnel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.funnel-card:hover .funnel-card-image img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.funnel-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.card-actions-row,
.product-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-cart-form {
  margin: 0;
}

.quick-cart-form .add-cart-link {
  width: 100%;
}

.add-cart-link {
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--green);
  font-weight: 900;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  animation: fadeUp .38s ease both;
}

.add-cart-link:hover,
.add-cart-link:focus-visible {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(10, 138, 61, .18);
  transform: translateY(-2px);
}

.funnel-card h2,
.product-specs h1 {
  margin: 0;
  line-height: 1.25;
}

.product-code,
.product-color {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.product-title-code {
  margin: -2px 0 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.product-title-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 0;
}

.product-meta-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.product-meta-line strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.funnel-card strong,
.detail-price {
  color: var(--green);
  font-size: 22px;
}

.funnel-card .product-meta-line strong {
  font-size: 18px;
  line-height: 1;
}

.product-funnel {
  max-width: 1280px;
  margin: 34px auto 70px;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, .9fr) minmax(260px, .8fr);
  gap: 24px;
  align-items: start;
}

.product-media,
.product-specs,
.product-description,
.billing-panel,
.summary-panel,
.thank-you-panel,
.setup-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.main-product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #edf0ed;
}

.thumb-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumb-row button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.description-left {
  color: var(--muted);
  line-height: 1.7;
}

.description-left-block h2 {
  margin: 0 0 10px;
}

.product-video {
  margin-top: 16px;
}

.product-video video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.size-order-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.size-order-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.size-order-form legend {
  margin-bottom: 10px;
  font-weight: 900;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.size-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
}

.size-grid button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.primary-order:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.product-description {
  line-height: 1.75;
}

.product-description h2 { margin-top: 0; }

.checkout-page {
  max-width: 1160px;
  margin: 36px auto 76px;
  padding: 0 clamp(16px, 4vw, 32px);
}

.checkout-form {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.billing-panel,
.summary-panel {
  display: grid;
  gap: 18px;
}

.billing-panel h1,
.summary-panel h2 {
  margin: 0 0 4px;
  line-height: 1.12;
}

.billing-panel label {
  padding: 10px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: #1f2937;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.billing-panel label:focus-within {
  border-color: rgba(10, 138, 61, .42);
  box-shadow: 0 16px 30px rgba(10, 138, 61, .1);
  transform: translateY(-1px);
}

.field-title,
.payment-proof-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf7f1;
  color: #075f35;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.billing-panel input,
.billing-panel textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  padding: 0 14px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.billing-panel input:focus,
.billing-panel textarea:focus {
  border-color: rgba(10, 138, 61, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 138, 61, .12);
}

.billing-panel textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.summary-product {
  padding: 12px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .045);
}

.summary-product img {
  width: 92px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.summary-product p {
  margin: 4px 0 0;
  color: var(--muted);
}

.shipping-options {
  display: grid;
  gap: 8px;
}

.shipping-options label {
  min-height: 48px;
  padding: 12px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.invoice-lines {
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.invoice-lines p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.total-line {
  font-size: 20px;
  color: var(--green);
  font-weight: 900;
}

.place-order {
  width: 100%;
}

.place-order:disabled {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.25);
  box-shadow: none;
}

.form-error {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #fff1f0;
  color: var(--danger);
  font-weight: 800;
}

.funnel-footer {
  margin-top: 32px;
  padding: 28px clamp(16px, 3vw, 34px) 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(170px, .9fr) minmax(170px, .9fr) minmax(240px, 1.2fr);
  gap: clamp(16px, 3vw, 36px);
  background: #07565b;
  color: #fff;
  align-items: start;
}

.footer-logo {
  width: min(150px, 100%);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 16px;
  display: block;
}

.footer-brand-block p,
.funnel-footer p {
  color: rgba(255, 255, 255, .92);
  line-height: 1.55;
}

.funnel-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.funnel-footer a {
  color: #fff;
  display: block;
  margin: 0 0 10px;
  font-weight: 600;
}

.funnel-footer a:hover {
  color: #d8f8f4;
}

.funnel-footer .social-links {
  margin: 10px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.funnel-footer .footer-social-title {
  margin-top: 18px;
  margin-bottom: 10px;
}

.funnel-footer .social-links a {
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #0b4549;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .14);
}

.funnel-footer .social-links a:nth-child(1) { background: #4267b2; }
.funnel-footer .social-links a:nth-child(2) { background: #c13584; }
.funnel-footer .social-links a:nth-child(3) { background: #ff0000; }
.funnel-footer .social-links a:nth-child(4) { background: #000; }

.funnel-footer .social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.drawer-menu-title {
  margin: 8px 0 14px;
  font-size: 20px;
}

.drawer-menu-only {
  display: grid;
}

.content-page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 52vh;
  margin: 34px auto 60px;
}

.content-page-article {
  padding: clamp(22px, 4vw, 44px) 0;
  border-bottom: 1px solid #e4e8ea;
}

.content-page-article h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 44px);
}

.rich-page-content {
  max-width: 900px;
  color: #334047;
  line-height: 1.75;
}

.rich-page-content img {
  max-width: 100%;
  height: auto;
}

.content-contact-panel {
  margin-top: 32px;
}

.funnel-footer .copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 15px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: rgba(3, 72, 77, .58);
  text-align: center;
  color: #fff;
}

.funnel-footer .copyright span,
.funnel-footer .copyright p {
  margin: 0;
  color: #fff;
}

.success-toast {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #ecfdf3;
  color: var(--green);
  font-weight: 900;
}

.cart-page {
  max-width: 880px;
  margin: 34px auto 70px;
  padding: 0 clamp(16px, 4vw, 32px);
}

.cart-shell {
  gap: 18px;
}

.cart-selection-form {
  display: grid;
  gap: 16px;
}

.cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfa;
}

.cart-select-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.cart-select-all input,
.cart-line-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.cart-selected-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.cart-lines-selectable {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cart-line {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cart-line-selectable {
  grid-template-columns: auto 92px 1fr;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.cart-lines-selectable .cart-line-selectable:first-child {
  border-top: 0;
}

.cart-line-check {
  display: grid;
  place-items: center;
}

.cart-line-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-line-body strong {
  line-height: 1.3;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.line-price {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.cart-invoice {
  border-top: 0;
  padding-top: 0;
}

.checkout-selection-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.place-order[disabled] {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.25);
  box-shadow: none;
}

.funnel-footer p { margin-top: 0; }

.thank-you-panel,
.setup-panel {
  max-width: 720px;
  margin: 70px auto;
  text-align: center;
}

.thank-you-panel img {
  width: 150px;
  max-height: 70px;
  object-fit: contain;
}

.thank-you-panel > strong {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--green);
  font-size: 24px;
}

.thank-you-summary {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--muted);
}

.thank-you-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.thank-you-item:first-child {
  border-top: 0;
}

.thank-you-item p {
  margin: 4px 0;
}

.thank-you-total {
  margin-top: 12px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .funnel-header,
  .product-funnel,
  .checkout-form,
  .funnel-footer {
    grid-template-columns: 1fr;
  }

  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .funnel-grid { grid-template-columns: 1fr; }

  .funnel-section-head {
    align-items: start;
    flex-direction: column;
  }

  .size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .cart-line-selectable {
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .line-price {
    font-size: 16px;
  }

  .cart-line-selectable img {
    width: 64px;
  }

  .cart-line-actions {
    align-items: start;
  }
}

/* Content pages: keep the complete desktop navigation on one row. */
@media (min-width: 981px) {
  .funnel-page:not(.reference-home) .funnel-header .funnel-nav {
    display: flex;
    align-items: center;
    justify-self: end;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
  }

  .funnel-page:not(.reference-home) .funnel-header .funnel-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .content-page-view .funnel-header {
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 24px;
  }

  .content-page-view .funnel-header .brand {
    grid-column: 1;
  }

  .content-page-view .funnel-header .funnel-nav {
    grid-column: 2;
  }
}

.funnel-footer .copyright,
.reference-home .copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
  line-height: 1.45;
  scrollbar-width: none;
}

.funnel-footer .copyright::-webkit-scrollbar,
.reference-home .copyright::-webkit-scrollbar {
  display: none;
}

.funnel-footer .copyright span,
.funnel-footer .copyright p,
.reference-home .copyright span,
.reference-home .copyright p {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

.funnel-footer .copyright br,
.reference-home .copyright br {
  display: none;
}

.funnel-footer .copyright .footer-credit-text::before,
.reference-home .copyright .footer-credit-text::before {
  content: "|";
  margin: 0 8px 0 0;
  opacity: .75;
}

.mobile-menu-btn {
  display: none;
}

/* Product, cart, checkout and every non-home page use the same mobile top bar. */
@media (max-width: 980px) {
  .funnel-page:not(.reference-home) .funnel-header {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 76px !important;
    height: 76px !important;
    padding: 0 12px !important;
    overflow: visible !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .brand img {
    max-width: 128px !important;
    width: auto !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .back-link,
  .funnel-page:not(.reference-home) .funnel-header .funnel-nav a:not(.cart-3d) {
    display: none !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .funnel-nav {
    grid-column: 2 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    min-width: 0 !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .cart-3d {
    width: 50px !important;
    min-width: 50px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .mobile-menu-btn {
    grid-column: 3 !important;
    justify-self: end !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #075f66 !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }
}

@media (max-width: 380px) {
  .funnel-page:not(.reference-home) .funnel-header {
    gap: 8px !important;
    padding: 0 10px !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .brand img {
    max-width: 112px !important;
  }

  .funnel-page:not(.reference-home) .funnel-header .cart-3d,
  .funnel-page:not(.reference-home) .funnel-header .mobile-menu-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

/* Mobile header final lock: logo + cart + menu on one line only. */
@media (max-width: 980px) {
  body.reference-home {
    padding-top: 76px !important;
  }

  .reference-home .funnel-header {
    display: block !important;
    min-height: 76px !important;
    height: 76px !important;
    padding: 0 !important;
    overflow: visible;
  }

  .reference-home .header-top-row,
  .reference-home .funnel-header.header-compact .header-top-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 76px !important;
    height: 76px !important;
    max-height: 76px !important;
    padding: 0 12px !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .reference-home .brand {
    grid-column: 1 !important;
    order: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
  }

  .reference-home .brand img {
    max-width: 128px !important;
    width: auto !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  .reference-home .funnel-nav {
    grid-column: 2 !important;
    order: 2 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    min-width: 0 !important;
  }

  .reference-home .cart-3d {
    width: 50px !important;
    min-width: 50px !important;
    height: 46px !important;
    padding: 0 !important;
  }

  .reference-home .mobile-menu-btn {
    grid-column: 3 !important;
    order: 3 !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
  }

  .reference-home .all-categories,
  .reference-home .funnel-search,
  .reference-home .funnel-header.header-compact .funnel-search,
  .reference-home .funnel-nav a:not(.cart-3d) {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .reference-home .brand img {
    max-width: 112px !important;
  }

  .reference-home .header-top-row,
  .reference-home .funnel-header.header-compact .header-top-row {
    gap: 8px !important;
    padding: 0 10px !important;
  }

  .reference-home .cart-3d,
  .reference-home .mobile-menu-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

/* Checkout payment stability overrides */
.checkout-form {
  position: relative;
}

.billing-payment-details {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.payment-method-shell,
.payment-choice-content,
.payment-proof-card,
.summary-product {
  min-width: 0;
}

.payment-method-body,
.payment-method-body strong,
.payment-method-body small,
.payment-choice-content strong,
.payment-choice-content small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-method-card[data-payment-link=""] {
  cursor: default;
}

.summary-payment-panel .advanced-payment-panel {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .checkout-page {
    margin-top: 18px;
    padding-inline: 12px;
  }

  .checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .billing-panel,
  .summary-panel {
    width: 100%;
    min-width: 0;
  }

  .summary-panel {
    order: 2;
  }

  .summary-payment-panel {
    order: 20;
  }

  .summary-panel .place-order {
    order: 22;
  }

  .payment-choice-buttons {
    grid-template-columns: 1fr;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .advanced-payment-panel {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .funnel-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .funnel-header .brand {
    min-width: 0;
  }

  .funnel-header .brand img {
    max-width: 132px;
    width: auto;
  }

  .funnel-header .back-link {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 13px;
  }

  .funnel-header .funnel-nav {
    justify-self: end;
    gap: 8px;
  }

  .funnel-header .funnel-nav a:not(.cart-3d) {
    display: none;
  }

  .checkout-page {
    margin-bottom: 40px;
    padding-inline: 10px;
  }

  .billing-group,
  .summary-payment-panel,
  .advanced-payment-panel {
    padding: 12px;
  }

  .billing-panel label,
  .payment-proof-card {
    padding: 10px;
  }

  .summary-product {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .summary-product img {
    width: 82px;
    height: 96px;
  }

  .payment-choice-content {
    min-height: 66px;
    padding: 10px;
  }

  .payment-method-shell {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: auto;
    padding: 10px;
  }

  .payment-method-icon {
    width: 38px;
    height: 38px;
  }
}

/* Reference homepage alignment overrides */
.reference-home {
  background: #fff;
}

.reference-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: 60px;
  padding: 0 0 18px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.reference-rail a,
.reference-rail button {
  width: 42px;
  height: 42px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #035f67;
  font-size: 20px;
  font-weight: 900;
}

.rail-icon,
.drawer-category-icon,
.category-icon-text {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  object-fit: contain;
  background: #f4f8f8;
}

.category-icon-text {
  color: #0b6166;
  font-size: 11px;
  font-weight: 900;
}

.reference-rail .rail-menu {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #075f66;
  color: #fff;
  font-size: 24px;
}

.rail-category-icons {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.rail-category-icons a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: #075f66;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rail-category-icons a:hover,
.rail-category-icons a.active {
  transform: translateY(-2px);
  background: #eef8f8;
  box-shadow: 0 12px 26px rgba(7, 95, 102, .18);
}

.rail-category-icons img,
.rail-category-icons .rail-icon,
.rail-category-icons .rail-category-img,
.rail-category-icons .category-icon-text {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
}

.rail-category-icons span {
  font-size: 11px;
  font-weight: 900;
}

.reference-home .funnel-header {
  margin-left: 60px;
  grid-template-columns: 130px 180px minmax(280px, 1fr) auto;
  min-height: 72px;
  box-shadow: none;
}

.reference-home .brand img {
  width: 118px;
}

.reference-home .categories-toggle {
  height: 48px;
  border-radius: 999px;
  background: #075f66;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-transform: capitalize;
}

.reference-home .all-categories.categories-open .categories-menu {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.reference-home .funnel-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.reference-home .funnel-nav a {
  border: 0;
  padding: 0 4px;
}

.reference-home .cart-3d {
  border-radius: 16px !important;
  padding: 6px 7px;
  background: linear-gradient(180deg, #fafbfc 0%, #f2f4f5 100%);
}

.reference-main,
.reference-about,
.reference-home .funnel-footer {
  margin-left: 60px;
}

.reference-home .funnel-slider {
  margin: 40px 38px 0;
  width: auto;
  height: clamp(260px, 36vw, 520px);
  border-radius: 8px;
}

.reference-home .funnel-section {
  max-width: none;
  margin-top: 28px;
  padding-left: 38px;
  padding-right: 38px;
}

.reference-home .funnel-section-head h1 {
  font-size: 20px;
}

.view-all-ref {
  color: var(--green);
  font-weight: 900;
}

.reference-home .funnel-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.reference-home .funnel-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.reference-home .funnel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
}

.reference-home .funnel-card h2 {
  min-height: 44px;
  font-size: 15px;
}

.load-more-wrap {
  margin-top: 4px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}

.reference-home .funnel-footer {
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: clamp(16px, 2.6vw, 34px);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(15, 23, 42, .42);
}

.reference-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 110;
  width: min(390px, 92vw);
  padding: 18px;
  background: #fff;
  box-shadow: 20px 0 50px rgba(15, 23, 42, .22);
  transform: translateX(-105%);
  transition: transform .22s ease;
}

body.drawer-open .drawer-overlay {
  display: block;
}

body.drawer-open .reference-drawer {
  transform: translateX(0);
}

body.drawer-hover-open .reference-drawer {
  transform: translateX(0);
}

.drawer-close {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #075f66;
  color: #fff;
  font-weight: 900;
}

.drawer-search {
  margin: 18px 0 12px;
}

.drawer-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
}

.reference-drawer .drawer-tabs {
  padding: 0;
  border: 0;
}

.reference-drawer .drawer-panel {
  padding: 12px 0;
}

.reference-drawer .drawer-panel a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.drawer-category-link {
  display: grid !important;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
}

.reference-home .funnel-footer a {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-weight: 800;
}

.reference-home .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-home .social-links a {
  margin: 0;
}

.reference-home .copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #dce2e8;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  min-height: 38px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #075f66;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 95, 102, .24);
  transition: transform .18s ease, background .18s ease;
}

.floating-contact a:hover {
  transform: translateY(-2px);
  background: #0c7b74;
}

/* Dynamic floating action buttons managed from Admin > Settings > Floating CTA. */
.dynamic-floating-cta {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 850;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.dynamic-floating-cta a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  color: #fff;
  background: #075c64;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  box-shadow: 0 9px 25px rgba(4, 48, 54, .24);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(0);
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.dynamic-floating-cta a:hover,
.dynamic-floating-cta a:focus-visible {
  color: #fff;
  background: #08747d;
  box-shadow: 0 12px 30px rgba(4, 48, 54, .32);
  transform: translateX(-4px);
}

.dynamic-floating-cta-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #075c64;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.dynamic-floating-cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .dynamic-floating-cta {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .dynamic-floating-cta a {
    min-height: 42px;
    padding: 4px 11px 4px 4px;
    font-size: 12px;
  }

  .dynamic-floating-cta-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-floating-cta a {
    transition: none;
  }
}

@media (max-width: 980px) {
  .reference-home .funnel-header,
  .reference-main,
  .reference-about,
  .reference-home .funnel-footer {
    margin-left: 52px;
  }

  .reference-home .funnel-header {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .reference-home .funnel-slider {
    width: auto;
    margin: 16px 12px 0;
  }

  .reference-home .funnel-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .reference-home .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-home .funnel-nav {
    grid-column: 3;
    grid-row: 1;
    overflow: visible;
    padding-bottom: 0;
    justify-self: end;
  }

  .reference-home .all-categories {
    grid-column: 2;
    grid-row: 1;
  }

  .reference-home .funnel-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reference-home .brand img {
    width: 100px;
  }

  .reference-home .categories-toggle {
    height: 42px;
    font-size: 14px;
    padding: 0 14px;
  }

  .reference-home .funnel-nav a:not(.cart-3d) {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .reference-rail {
    width: 52px;
    gap: 12px;
    padding-top: 4px;
  }

  .reference-rail a,
  .reference-rail button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .reference-rail .rail-menu {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

@media (min-width: 981px) {
  body.drawer-hover-open .drawer-overlay {
    display: none;
  }
}

@media (max-width: 560px) {
  .reference-home .funnel-header {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .reference-home .brand img {
    width: 86px;
  }

  .reference-home .all-categories {
    min-width: 0;
  }

  .reference-home .categories-toggle {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    gap: 6px;
    font-size: 13px;
  }

  .reference-home .funnel-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reference-home .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reference-home .funnel-card-body {
    padding: 10px;
  }

  .reference-home .funnel-card h2 {
    min-height: 52px;
    font-size: 13px;
  }

  .reference-home .card-actions-row {
    grid-template-columns: 1fr;
  }

  .reference-home .funnel-nav {
    grid-column: 3;
    grid-row: 1;
    gap: 8px;
    justify-self: end;
  }

  .reference-home .funnel-nav a:not(.cart-3d) {
    display: none;
  }

  .reference-home .cart-3d {
    position: relative;
    min-width: 46px;
    padding: 4px 8px;
    justify-content: center;
  }

  .reference-home .cart-3d b {
    position: absolute;
    top: -6px;
    right: -4px;
  }

  .reference-home .funnel-search button {
    min-width: 88px;
    padding: 0 12px;
  }

  .floating-contact {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .floating-contact a {
    min-width: 58px;
    min-height: 30px;
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 999px;
  }
}

.funnel-card-image,
.product-image-wrap {
  position: relative;
}

.product-price-line {
  color: var(--green);
  font-size: 18px;
}

.home-category-strip {
  margin: 22px 38px 0;
  padding: 0;
  background: #fff;
}

.home-category-strip h2 {
  margin: 0;
  padding: 14px 12px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.home-category-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 24px 28px;
  padding: 22px 24px 18px;
  overflow: visible;
}

.home-category-chip {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  white-space: normal;
  text-align: center;
  box-shadow: none;
  transition: transform .22s ease, color .22s ease;
}

.home-category-chip:hover,
.home-category-chip:focus-visible {
  transform: translateY(-4px);
  color: var(--green);
}

.home-category-chip.active {
  border-color: transparent;
  background: #fff;
  color: #075f66;
}

.category-check-icon {
  width: clamp(82px, 8.2vw, 112px);
  height: clamp(82px, 8.2vw, 112px);
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef4f4;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(7, 95, 102, .04);
}

.home-category-chip.active .category-check-icon {
  border-color: transparent;
  background: #e7f5f3;
  box-shadow: inset 0 0 0 3px rgba(7, 95, 102, .18);
}

.category-check-icon img,
.category-check-icon .home-category-icon,
.category-check-icon .rail-icon,
.category-check-icon .drawer-category-icon {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  background: transparent;
  transition: transform .32s ease;
}

.home-category-chip:hover .category-check-icon img {
  transform: scale(1.06);
}

.home-category-label {
  max-width: 118px;
  font-size: 15px;
  line-height: 1.32;
}

/* Quantity controls */
.quantity-picker,
.cart-qty-row,
.checkout-qty-row {
  display: grid;
  gap: 8px;
}

.quantity-controls {
  display: inline-grid;
  grid-template-columns: 42px 72px 42px;
  align-items: center;
  gap: 8px;
}

.quantity-controls.compact-qty {
  grid-template-columns: 36px 64px 36px;
}

.qty-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.quantity-controls input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.cart-update-row {
  margin-top: 8px;
}

.popular-products-section {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 clamp(16px, 4vw, 32px);
}

.popular-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Checkout billing + payment */
.billing-group {
  margin: 0;
  padding: 14px;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
}

.billing-group legend {
  padding: 0 8px;
  margin-bottom: 4px;
  color: #0f5132;
  font-weight: 900;
}

.payment-group .payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  font-weight: 800;
}

.summary-payment-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .045);
}

.summary-payment-panel h3 {
  margin: 0;
  font-size: 16px;
}

.payment-choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-choice-card {
  display: block;
  cursor: pointer;
}

.payment-choice-card input,
.payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-choice-content {
  min-height: 76px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  animation: fadeUp .32s ease both;
}

.payment-choice-card input:not(:checked) + .payment-choice-content {
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

.payment-choice-cod .payment-choice-content {
  background: linear-gradient(135deg, #078f47, #075f66);
}

.payment-choice-advanced .payment-choice-content {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.payment-choice-card:hover .payment-choice-content,
.payment-choice-card input:checked + .payment-choice-content {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
  filter: saturate(1.08);
}

.payment-choice-card input:checked + .payment-choice-content {
  outline: 3px solid rgba(10, 138, 61, .18);
}

.payment-choice-content strong,
.payment-choice-content small {
  display: block;
}

.payment-choice-content strong {
  line-height: 1.15;
}

.payment-choice-content small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.payment-choice-mark {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
}

.payment-choice-card input:checked + .payment-choice-content .payment-choice-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.advanced-payment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  transform-origin: top;
}

.advanced-payment-panel[hidden] {
  display: none !important;
}

.billing-payment-details {
  margin-top: 2px;
  border-style: solid;
  border-color: #d7e4ee;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 26px rgba(15, 23, 42, .05);
}

.advanced-payment-panel.is-open {
  animation: paymentPanelIn .26s ease both;
}

@keyframes paymentPanelIn {
  from { opacity: 0; transform: translateY(-8px) scaleY(.98); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

.payment-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.payment-method-card {
  position: relative;
  display: block;
  --pay-accent: #0a8a3d;
  --pay-bg: #f7fff9;
  cursor: pointer;
}

.payment-method-shell {
  min-height: 104px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 4px solid var(--pay-accent);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  background: linear-gradient(135deg, var(--pay-bg), #fff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  animation: fadeUp .28s ease both;
}

.payment-method-card:hover .payment-method-shell,
.payment-method-card:focus-within .payment-method-shell,
.payment-method-card input:checked + .payment-method-shell {
  border-color: color-mix(in srgb, var(--pay-accent), #fff 45%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}

.payment-method-card input:checked + .payment-method-shell {
  outline: 2px solid color-mix(in srgb, var(--pay-accent), #fff 72%);
}

.payment-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--pay-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.payment-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.payment-method-body {
  display: grid;
  gap: 4px;
}

.payment-method-body small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-method-body a {
  color: var(--green);
  font-weight: 800;
}

.payment-theme-bkash { --pay-accent: #e2136e; --pay-bg: #fff0f7; }
.payment-theme-nagad { --pay-accent: #f58220; --pay-bg: #fff6ed; }
.payment-theme-rocket { --pay-accent: #7d2aa8; --pay-bg: #f8efff; }
.payment-theme-upay { --pay-accent: #00a3e0; --pay-bg: #eefaff; }
.payment-theme-all-cards { --pay-accent: #1d4ed8; --pay-bg: #eef4ff; }
.payment-theme-bank-transfer { --pay-accent: #0f766e; --pay-bg: #ecfdf5; }

.payment-proof-fields {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.payment-proof-head {
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

.payment-proof-head strong,
.payment-proof-head small {
  display: block;
}

.payment-proof-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.payment-proof-card {
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .045);
}

.payment-proof-card input,
.payment-proof-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.payment-proof-card input[type="file"] {
  padding: 10px 12px;
  background: #fff;
}

.payment-proof-card textarea {
  min-height: 98px;
  padding-top: 12px;
  resize: vertical;
}

.payment-proof-card input:focus,
.payment-proof-card textarea:focus {
  border-color: rgba(10, 138, 61, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 138, 61, .12);
}

/* Reference home header layout */
.reference-home .funnel-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 130px 180px minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.reference-home .header-top-row {
  display: contents;
}

.reference-home .mobile-menu-btn {
  display: none;
}

.reference-home .brand {
  grid-column: 1;
  grid-row: 1;
}

.reference-home .all-categories {
  grid-column: 2;
  grid-row: 1;
}

.reference-home .funnel-search {
  grid-column: 3;
  grid-row: 1;
}

.reference-home .funnel-nav {
  grid-column: 4;
  grid-row: 1;
}

@media (max-width: 980px) {
  .funnel-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 16px 12px;
  }

  .footer-logo {
    width: 132px;
    margin-bottom: 16px;
  }

  .funnel-footer .copyright {
    margin-top: 6px;
    padding: 16px 14px;
  }

  body.reference-home {
    padding-top: 150px;
  }

  .reference-home .funnel-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 84px;
    padding: 8px 0 0;
    transform: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    background: #fff;
    border-bottom: 1px solid var(--line);
    animation: none;
    will-change: auto;
  }

  .reference-home .header-top-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 0 12px 8px;
    background: #fff;
    transition: opacity .2s ease, max-height .2s ease;
  }

  .reference-home .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    order: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #075f66;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .reference-home .brand {
    grid-column: auto;
    order: 1;
    justify-self: start;
  }

  .reference-home .all-categories {
    display: none;
  }

  .reference-home .funnel-nav {
    grid-column: auto;
    order: 2;
    justify-self: end;
    gap: 8px;
  }

  .reference-home .funnel-nav a:not(.cart-3d) {
    display: none;
  }

  .reference-rail {
    display: none;
  }

  .reference-drawer {
    width: 100vw;
    max-width: none;
    padding: 18px;
  }

  .reference-home .funnel-header,
  .reference-main,
  .reference-about,
  .reference-home .funnel-footer {
    margin-left: 0;
  }

  .reference-home .funnel-search {
    position: relative;
    z-index: 70;
    grid-column: 1;
    grid-row: auto;
    margin: 0;
    padding: 8px 12px 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    opacity: 1;
    max-height: 72px;
    overflow: visible;
    transition: opacity .2s ease, max-height .22s ease, padding .22s ease, border-color .22s ease;
  }

  .reference-home .funnel-header.header-compact .header-top-row {
    opacity: 1;
    min-height: 68px;
    max-height: none;
    overflow: visible;
    padding-bottom: 8px;
    pointer-events: auto;
  }

  .reference-home .funnel-header.header-compact .funnel-search {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .reference-home .funnel-header.header-compact {
    min-height: 76px;
  }

  .home-category-strip {
    margin: 12px 12px 0;
  }

  .home-category-strip h2 {
    padding: 12px 8px;
    font-size: 22px;
  }

  .home-category-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
    padding: 18px 10px;
  }

  .home-category-chip {
    justify-content: center;
  }

  .category-check-icon {
    width: clamp(72px, 22vw, 92px);
    height: clamp(72px, 22vw, 92px);
  }

  .home-category-label {
    max-width: 96px;
    font-size: 13px;
  }

  .reference-home .funnel-card .product-meta-line {
    justify-content: flex-end;
  }

  .reference-home .funnel-card .product-meta-line span {
    display: none;
  }

  .reference-home .funnel-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 3;
    margin: 16px 12px 0;
    overflow: hidden;
    background: #f7f8f8;
    border-radius: 6px;
  }

  .reference-home .funnel-slider .slide img {
    object-fit: contain;
    object-position: center center;
    transform: none;
    background: #f7f8f8;
  }

  .reference-home .funnel-slider .slide.active img {
    animation: mobileHeroReveal 4.8s ease both;
  }

  @keyframes mobileHeroReveal {
    from { opacity: .94; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
  }

  .reference-home .funnel-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 16px 12px;
    overflow: visible;
  }

  .reference-home .copyright {
    display: grid;
    justify-content: stretch;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.reference-home {
    padding-top: 148px;
  }

  .reference-home .header-top-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .reference-home .funnel-nav {
    min-width: 0;
  }

  .reference-home .cart-3d {
    width: 54px;
    min-width: 54px;
    height: 50px;
  }

  .reference-home .mobile-menu-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .home-category-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quantity-controls {
    grid-template-columns: 38px 58px 38px;
  }

  .qty-btn,
  .quantity-controls input {
    min-height: 38px;
  }
}

/* Final footer copyright lock: keep TinyMCE copyright text on one visual line. */
.funnel-footer .copyright,
.reference-home .copyright {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap !important;
  gap: 6px;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 16px !important;
  white-space: nowrap !important;
  overflow-x: auto;
  line-height: 1.35;
  scrollbar-width: none;
}

.funnel-footer .copyright::-webkit-scrollbar,
.reference-home .copyright::-webkit-scrollbar {
  display: none;
}

.funnel-footer .copyright *,
.reference-home .copyright * {
  display: inline !important;
  margin: 0;
  white-space: nowrap !important;
  line-height: 1.35 !important;
}

.funnel-footer .copyright br,
.reference-home .copyright br {
  display: none !important;
}

.funnel-footer .copyright .footer-credit-text::before,
.reference-home .copyright .footer-credit-text::before {
  content: "|";
  margin: 0 8px 0 0;
  opacity: .75;
}
