:root {
  --sf-navy: #071c36;
  --sf-navy-2: #0d2c55;
  --sf-orange: #d7192f;
  --sf-bg: #f4f7fb;
  --sf-border: #e1e8f2;
  --sf-text: #172033;
  --sf-muted: #6b7a90;
}

body {
  background: var(--sf-bg);
}

.topbar {
  background: #06182d;
}

.site-header {
  position: relative;
  z-index: 50;
}

.mainbar {
  padding: 16px 0;
}

.brand-mark {
  border-radius: 11px;
  box-shadow: 0 10px 20px rgba(7,28,54,.14);
}

.brand {
  min-width: 255px;
}

.site-logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.search {
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.search input {
  padding-left: 18px;
}

.search button {
  border-radius: 999px;
  margin: 5px;
  padding: 0 22px;
}

.user-links a {
  border-radius: 999px;
}

.icon-links {
  align-items: center;
}

.icon-link {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border: 1px solid var(--sf-border);
  background: #fff;
  color: var(--sf-navy);
  font-weight: 900;
}

.icon-link b {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--sf-orange);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.nav-icon svg,
.social-links svg,
.social-links img {
  display: block;
  width: 20px;
  height: 20px;
}

.social-links img {
  object-fit: contain;
}

.account-link {
  white-space: nowrap;
}

.mega-wrap {
  background: #fff;
}

.mega {
  min-height: 58px;
  gap: 10px;
}

.mega-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(7,28,54,.14);
}

.mega-button-icon,
.mega-button-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.mega-links {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}

.mega-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 7px 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.mega-links a span:last-child,
.mega-title span:last-child,
.mega-column a span:last-child {
  min-width: 0;
}

.mega-links a span:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
}

.mega-title span:last-child,
.mega-column a span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-links a:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--sf-orange);
  transform: translateY(-1px);
}

.mega-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: min(68vh, 560px);
  overflow: auto;
  border-radius: 0 0 16px 16px;
  padding: 18px;
}

.mega-column {
  min-width: 0;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.mega-title,
.mega-column a {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.mega-title {
  margin: 0 0 8px !important;
  border-bottom: 1px solid #edf2f7;
  padding: 3px 0 10px;
}

.mega-column a:not(.mega-title) {
  min-height: 34px;
  margin: 0 !important;
  border-radius: 8px;
  padding: 7px 8px;
}

.mega-column a:not(.mega-title):hover {
  background: #f8fafc;
}

.hero {
  background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
}

.hero-grid {
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0 18px;
}

.hero-shell {
  position: relative;
  padding: 22px 0 16px;
}

.hero-category-menu {
  position: relative;
  z-index: 30;
  display: flex;
  gap: 8px;
  align-items: stretch;
  overflow: visible;
  border: 1px solid var(--sf-border);
  border-radius: 14px 14px 0 0;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.hero-cat-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.hero-cat-link,
.hero-cat-dropdown a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--sf-navy);
  font-weight: 900;
}

.hero-cat-link {
  min-height: 48px;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
}

.hero-cat-item:hover .hero-cat-link {
  background: #fff7ed;
  color: var(--sf-orange);
}

.cat-menu-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed, #ffe4e6);
  box-shadow: inset 0 0 0 1px rgba(215,25,47,.12);
  color: var(--sf-orange);
}

.cat-menu-icon.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.cat-menu-icon svg {
  display: block;
  width: 62%;
  height: 62%;
}

.hero-cat-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: none;
  min-width: 250px;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 42px rgba(7,28,54,.16);
}

.hero-cat-item:nth-last-child(-n+2) .hero-cat-dropdown {
  left: auto;
  right: 0;
}

.hero-cat-item:hover .hero-cat-dropdown,
.hero-cat-item:focus-within .hero-cat-dropdown {
  display: grid;
  gap: 4px;
}

.hero-cat-dropdown a {
  min-height: 38px;
  border-radius: 9px;
  padding: 8px 10px;
  color: #334155;
  font-size: 13px;
}

.hero-cat-dropdown a:hover {
  background: #f8fafc;
  color: var(--sf-orange);
}

.side-cats {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.side-cats h2 {
  margin-top: 0;
  border-bottom: 1px solid var(--sf-border);
  padding-bottom: 12px;
}

.side-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
}

.side-cats a:after {
  content: "›";
  color: var(--sf-orange);
  font-weight: 900;
}

.hero-slider {
  height: 440px;
  min-height: 440px;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(7,28,54,.16);
}

.slide {
  height: 440px;
  min-height: 440px;
  padding: 50px;
  background-position: center;
  background-size: cover;
}

.slide h1 {
  max-width: 560px;
  font-size: var(--slide-title-size, 42px);
  line-height: 1.12;
}

.slide p {
  max-width: 540px;
}

.slider-btn {
  border-radius: 999px;
  padding: 14px 22px;
}

.visual-cats {
  padding-top: 10px;
}

.visual-cat {
  position: relative;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.visual-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .1);
}

.visual-cat img {
  height: 165px;
  object-fit: cover;
  object-position: center;
}

.visual-cat strong,
.visual-cat span {
  position: relative;
  z-index: 1;
}

.admin-category-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--sf-orange);
}

.admin-category-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.features {
  padding: 22px 0 8px;
}

.feature {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.section {
  padding: 30px 0;
}

.section-head {
  border-bottom: 1px solid var(--sf-border);
  padding-bottom: 12px;
}

.section h2 {
  position: relative;
  padding-left: 14px;
}

.section h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 24px;
  border-radius: 6px;
  background: var(--sf-orange);
}

.grid-products {
  gap: 18px;
}

.product-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.product-image {
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(7,28,54,.86);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.product-image img {
  padding: 8px;
  object-fit: contain;
}

.product-body {
  min-height: 235px;
}

.product-meta {
  gap: 8px;
}

.product-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock {
  border-radius: 999px;
}

.member-price {
  color: var(--sf-orange);
}

.card-actions button {
  border-radius: 9px;
}

.card-actions .icon-action {
  display: grid;
  place-items: center;
  min-height: 38px;
  font-size: 20px;
  line-height: 1;
}

.card-actions .icon-action span {
  display: block;
  transform: translateY(-1px);
}

.card-actions form {
  margin: 0;
}

.card-actions button {
  width: 100%;
  cursor: pointer;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-actions form {
  margin: 0;
}

.inline-action-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.detail-qty,
.qty-input {
  width: 74px;
  border: 1px solid var(--sf-border);
  border-radius: 9px;
  background: #fff;
  padding: 10px 9px;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--sf-border);
  padding-top: 18px;
}

.compare-table img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.page-box {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.category-layout {
  align-items: start;
}

.product-detail-layout {
  border-radius: 16px;
}

.product-main-image {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--sf-border);
}

.product-thumbs button {
  border-radius: 12px;
}

.product-summary .page-title {
  font-size: 32px;
  line-height: 1.15;
}

.product-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
}

.price-panel {
  border: 0;
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.product-tabs button {
  border-radius: 999px;
}

.product-tabs button.active {
  background: var(--sf-orange);
  border-color: var(--sf-orange);
}

.currency-note,
.discount-note {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.payment-method-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.payment-method-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}

.payment-method-card:has(input:checked) {
  border-color: var(--sf-orange);
  box-shadow: 0 0 0 3px rgba(215,25,47,.08);
}

.payment-method-card strong,
.payment-method-card small {
  display: block;
}

.payment-method-card small {
  margin-top: 4px;
  color: var(--sf-muted);
}

.payment-method-card em {
  display: block;
  margin-top: 8px;
  border-left: 3px solid var(--sf-orange);
  padding-left: 10px;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.checkout-summary {
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  padding: 10px 0;
}

.checkout-summary-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}

.checkout-summary-item strong,
.checkout-summary-item small {
  display: block;
}

.checkout-summary-item small {
  color: var(--sf-muted);
  margin-top: 3px;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--sf-navy);
  font-size: 18px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding: 10px 0;
  color: #334155;
}

.footer {
  margin-top: 55px;
  background: linear-gradient(180deg, #071c36, #041224);
}

.footer-grid {
  align-items: start;
}

.footer strong {
  color: #fff;
  font-size: 16px;
}

.footer p {
  line-height: 1.6;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .mega {
    align-items: stretch;
  }

  .mega-button {
    min-height: 44px;
  }

  .mega-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .mega-links a {
    min-height: 44px;
  }

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

  .hero-category-menu {
    overflow-x: auto;
    border-radius: 14px;
  }

  .hero-cat-item {
    flex: 0 0 180px;
  }

  .hero-cat-dropdown {
    left: 0;
    right: 15px;
    top: calc(100% + 8px);
    width: min(320px, calc(100vw - 30px));
    min-width: 220px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .slide {
    height: 390px;
    min-height: 390px;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .mainbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 620px) {
  .mega {
    display: block;
  }

  .mega-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .mega-links {
    grid-auto-columns: 124px;
  }

  .mega-panel {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .slide {
    height: 450px;
    min-height: 450px;
  }

  .slide h1 {
    font-size: var(--slide-mobile-title-size, 30px);
  }

  .slide {
    padding: 28px;
    background-position: 58% center;
    background-image: var(--slide-mobile-image) !important;
  }
}

.storefront-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sf-navy), var(--sf-navy-2));
  color: #fff;
  padding: 20px 24px;
  box-shadow: 0 16px 36px rgba(7,28,54,.16);
}

.storefront-band strong,
.storefront-band span {
  display: block;
}

.storefront-band span {
  margin-top: 4px;
  color: rgba(255,255,255,.68);
}

.storefront-band a {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--sf-orange);
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.brand-strip span,
.brand-marquee span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sf-muted);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.brand-marquee {
  overflow: hidden;
  margin-top: 18px;
  border-radius: 14px;
}

.brand-marquee-track {
  display: flex;
  gap: 12px;
  min-width: max-content;
  animation: brand-marquee 24s linear infinite;
}

.brand-marquee span {
  min-width: 170px;
  padding: 10px 18px;
}

.brand-marquee img {
  max-width: 130px;
  max-height: 42px;
  object-fit: contain;
}

.discount-note {
  display: block;
  margin-top: 3px;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

@keyframes brand-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .brand-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .storefront-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn,
.search button,
.slider-btn,
.storefront-band a,
.product-tabs button.active,
.product-badge,
.mega-button {
  background: #d7192f;
}

.member-price,
.accent-link,
.section-head a,
.visual-cat span,
.side-cats a:after {
  color: #d7192f;
}

.product-thumbs button.active,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #d7192f;
}

.section h2:before,
.slider-dots span.active {
  background: #d7192f;
}

.brand-strip span {
  color: #173a70;
}

.ontech-footer {
  margin-top: 60px;
  padding: 0;
  background: #071c36;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr .75fr .9fr 1.25fr;
  gap: 28px;
  padding: 46px 0 28px;
}

.footer-brand-block {
  color: rgba(255,255,255,.72);
}

.footer-brand-block img {
  display: block;
  width: 230px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 9px;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.footer-col strong,
.footer-contact-card strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 17px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

.footer-col a:hover,
.footer-contact-card a:hover {
  color: #fff;
}

.footer-contact-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  padding: 20px;
}

.footer-contact-card span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
  padding: 5px 0;
}

.footer-contact-card a {
  color: rgba(255,255,255,.9);
}

.footer-address {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

.footer-address span:first-child {
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  background: rgba(0,0,0,.22);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }
}
.slide-color-dark {
  color: #071c36;
}

.slide-color-dark p {
  color: #64748b;
}

.slide-color-light {
  color: #fff;
}

.slide-color-light p {
  color: rgba(255,255,255,.82);
}

.slide-pos-center {
  align-items: center;
  text-align: center;
}

.slide-pos-center h1,
.slide-pos-center p {
  margin-left: auto;
  margin-right: auto;
}

.slide-pos-right {
  align-items: flex-end;
  text-align: right;
}

.slide-pos-right h1,
.slide-pos-right p {
  margin-left: auto;
}

/* Final product action polish */
.card-actions.card-actions-text {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.card-actions.card-actions-text form {
  margin: 0;
}
.card-actions.card-actions-text .icon-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 6px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}
.card-actions.card-actions-text .icon-action svg,
.card-actions.card-actions-text .icon-action span {
  display: none !important;
}
.card-actions.card-actions-text .icon-action:hover {
  border-color: #f58220 !important;
  background: #fff7ed !important;
  color: #f58220 !important;
}
.card-actions.card-actions-text .icon-action.dark {
  background: #071c36 !important;
  color: #fff !important;
}
.card-actions.card-actions-text .icon-action.dark:hover {
  border-color: #071c36 !important;
  background: #071c36 !important;
  color: #fff !important;
}
.product-actions.detail-actions button,
.product-actions.detail-actions .small-btn,
.product-actions.detail-actions input,
.product-main-image,
.product-thumbs button {
  cursor: pointer !important;
}
.product-main-image {
  cursor: zoom-in !important;
}
.product-actions.detail-actions .small-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 10px 15px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}
.product-actions.detail-actions .small-btn svg {
  display: none !important;
}
/* Professional mega menu and icon product actions */
.pro-mega {
  position: relative;
  align-items: stretch;
  gap: 10px;
}
.mega-all-trigger {
  position: relative;
  flex: 0 0 auto;
}
.pro-mega .mega-button {
  height: 44px;
  cursor: pointer;
}
.pro-mega .pro-mega-all-panel {
  position: absolute;
  z-index: 90;
  display: none;
  left: 0;
  right: 0;
  top: calc(100% + 0px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: min(68vh, 560px);
  overflow: auto;
  border: 1px solid var(--sf-border);
  border-radius: 0 0 16px 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(7,28,54,.16);
}
.mega-all-trigger:hover .pro-mega-all-panel,
.mega-all-trigger:focus-within .pro-mega-all-panel {
  display: grid;
}
.pro-mega-links {
  position: static;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  flex: 1 1 auto;
}
.mega-link-item {
  position: relative;
  min-width: 0;
}
.mega-link-main {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.mega-link-main:hover,
.mega-link-item:hover .mega-link-main {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--sf-orange);
  transform: translateY(-1px);
}
.mega-sub-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 80;
  display: none;
  width: min(330px, 86vw);
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 42px rgba(7,28,54,.16);
}
.mega-link-item:nth-last-child(-n+2) .mega-sub-panel {
  left: auto;
  right: 0;
}
.mega-link-item:hover .mega-sub-panel,
.mega-link-item:focus-within .mega-sub-panel {
  display: grid;
  gap: 4px;
}
.mega-sub-panel a,
.mega-sub-head {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  min-height: 38px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: #334155;
  padding: 8px 9px;
  font-size: 13px;
  font-weight: 800;
  text-align: left !important;
  transform: none !important;
}
.mega-sub-head {
  border-bottom: 1px solid #edf2f7;
  border-radius: 9px 9px 0 0;
  color: var(--sf-navy) !important;
  margin-bottom: 5px;
}
.mega-sub-panel a:hover {
  background: #f8fafc !important;
  color: var(--sf-orange);
}
.product-icon-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.product-icon-actions form {
  display: block !important;
  margin: 0 !important;
}
.product-icon-action {
  appearance: none !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #071c36 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.product-icon-action svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}
.product-icon-action:hover,
.product-icon-action.is-active {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: #d7192f !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7,28,54,.12);
}
.product-icon-action.cart-action {
  background: #071c36 !important;
  border-color: #071c36 !important;
  color: #fff !important;
}
.product-icon-action.cart-action:hover {
  background: #d7192f !important;
  border-color: #d7192f !important;
  color: #fff !important;
}
@media(max-width:900px){
  .pro-mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-sub-panel { position: static; width: 100%; box-shadow: none; margin-top: 6px; }
}

/* Final menu display guard: old theme CSS must not open every panel at once. */
.pro-mega .pro-mega-all-panel,
.pro-mega .mega-link-item > .mega-sub-panel {
  display: none !important;
}

.pro-mega .mega-all-trigger:hover > .pro-mega-all-panel,
.pro-mega .mega-all-trigger:focus-within > .pro-mega-all-panel {
  display: grid !important;
}

.pro-mega .mega-link-item:hover > .mega-sub-panel,
.pro-mega .mega-link-item:focus-within > .mega-sub-panel {
  display: grid !important;
}

/* Stable classic menu and text action buttons */
.mega:not(.pro-mega) {
  position: relative;
  align-items: center;
}
.mega:not(.pro-mega) .mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: min(68vh, 560px);
  overflow: auto;
  border: 1px solid var(--sf-border);
  border-radius: 0 0 16px 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(7,28,54,.16);
}
.mega:not(.pro-mega):hover .mega-panel,
.mega:not(.pro-mega):focus-within .mega-panel {
  display: grid;
}
.mega:not(.pro-mega) .mega-links {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}
.card-actions.card-actions-text {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}
.card-actions.card-actions-text form {
  margin: 0 !important;
}
.card-actions.card-actions-text .icon-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 7px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #071c36 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
.card-actions.card-actions-text .icon-action svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 14px !important;
  height: 14px !important;
}
.card-actions.card-actions-text .icon-action span {
  display: inline !important;
}
.card-actions.card-actions-text .icon-action:hover,
.card-actions.card-actions-text .icon-action.is-active {
  border-color: #f58220 !important;
  background: #fff7ed !important;
  color: #f58220 !important;
}
.card-actions.card-actions-text .icon-action.dark {
  background: #071c36 !important;
  border-color: #071c36 !important;
  color: #fff !important;
}
.card-actions.card-actions-text .icon-action.dark:hover {
  background: #d7192f !important;
  border-color: #d7192f !important;
  color: #fff !important;
}

/* Product card actions use the same clean icon language as the header. */
.card-actions.card-actions-icons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 14px !important;
}
.card-actions.card-actions-icons form {
  display: block !important;
  margin: 0 !important;
}
.card-actions.card-actions-icons .card-icon-button {
  appearance: none !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--sf-navy) !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card-actions.card-actions-icons .card-icon-button svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}
.card-actions.card-actions-icons .card-icon-button:hover,
.card-actions.card-actions-icons .card-icon-button.is-active {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: var(--sf-orange) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7,28,54,.12);
}
.card-actions.card-actions-icons .card-icon-button.cart-action {
  border-color: var(--sf-navy) !important;
  background: var(--sf-navy) !important;
  color: #fff !important;
}
.card-actions.card-actions-icons .card-icon-button.cart-action:hover {
  border-color: var(--sf-orange) !important;
  background: var(--sf-orange) !important;
  color: #fff !important;
}

/* Smaller product card icons with hover labels. */
.card-actions.card-actions-icons {
  grid-template-columns: repeat(3, 34px) !important;
  justify-content: center !important;
  gap: 10px !important;
  overflow: visible !important;
}
.card-actions.card-actions-icons form {
  position: relative !important;
  overflow: visible !important;
}
.card-actions.card-actions-icons .card-icon-button {
  position: relative !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
}
.card-actions.card-actions-icons .card-icon-button svg {
  width: 15px !important;
  height: 15px !important;
}
.card-actions.card-actions-icons .card-icon-button::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: block;
  width: max-content;
  max-width: 150px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #071c36;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 8px 18px rgba(7,28,54,.18);
}
.card-actions.card-actions-icons .card-icon-button:hover::after,
.card-actions.card-actions-icons .card-icon-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Final enforced product-card icon buttons. */
.product-card {
  overflow: visible !important;
}
.product-card .product-image {
  overflow: hidden !important;
  border-radius: 8px 8px 0 0;
}
.product-card .card-actions.card-actions-icons {
  display: grid !important;
  grid-template-columns: 34px 34px 34px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  overflow: visible !important;
}
.product-card .card-actions.card-actions-icons form {
  position: relative !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  overflow: visible !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button {
  appearance: none !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border: 1px solid #e1e8f2 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #071c36 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button:hover,
.product-card .card-actions.card-actions-icons button.card-icon-button.is-active {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: #d7192f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(7,28,54,.12) !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button.cart-action {
  border-color: #071c36 !important;
  background: #071c36 !important;
  color: #fff !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button.cart-action:hover {
  border-color: #d7192f !important;
  background: #d7192f !important;
  color: #fff !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button::after {
  content: attr(aria-label) !important;
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  z-index: 999 !important;
  width: max-content !important;
  max-width: 150px !important;
  padding: 6px 8px !important;
  border-radius: 7px !important;
  background: #071c36 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translate(-50%, 4px) !important;
  transition: opacity .16s ease, transform .16s ease !important;
  box-shadow: 0 8px 18px rgba(7,28,54,.18) !important;
}
.product-card .card-actions.card-actions-icons button.card-icon-button:hover::after,
.product-card .card-actions.card-actions-icons button.card-icon-button:focus-visible::after {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

.whatsapp-offer-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857 !important;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.whatsapp-offer-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}
.whatsapp-offer-btn:hover {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, .18);
}
.price-row .whatsapp-offer-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}
.price-panel .whatsapp-offer-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

/* Elegant typography and safer product-card offer layout. */
body,
button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0;
}

.product-title,
.section h2,
.page-title,
.hero h1,
.mega-links a,
.mega-title,
.price,
.member-price {
  letter-spacing: 0 !important;
}

.category-layout,
.category-layout > *,
.grid-products,
.product-card,
.product-body {
  min-width: 0 !important;
}

.product-card .price-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.product-card .price-row .whatsapp-offer-btn {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  justify-content: center !important;
  font-size: 11px !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.15 !important;
}

.product-card .price-row .whatsapp-offer-btn svg {
  flex: 0 0 auto !important;
  width: 15px !important;
  height: 15px !important;
}

@media (min-width: 901px) {
  .category-layout {
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr) !important;
  }
}

/* Center stock labels and sanitize imported description layout. */
.stock,
.product-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.product-card .price-row .stock {
  flex: 0 0 auto !important;
  min-width: 92px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
}

.product-stock-line {
  display: flex;
  justify-content: center;
}

.product-summary > p:has(.stock) {
  display: flex;
  justify-content: center;
}

.product-description-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
}

.product-description-content table,
.product-tab-panel table {
  width: 100%;
  border-collapse: collapse;
}

.product-description-content td,
.product-description-content th,
.product-tab-panel td,
.product-tab-panel th {
  border: 1px solid #edf2f7;
  padding: 10px 12px;
}

.product-description-content tr:nth-child(even),
.product-tab-panel tr:nth-child(even) {
  background: #f8fafc;
}

/* Keep product cards aligned when price is replaced by WhatsApp offer. */
.grid-products {
  align-items: stretch !important;
}

.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.product-card .product-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}

.product-card .product-title {
  min-height: 54px !important;
}

.product-card .price-row {
  min-height: 74px !important;
  margin-top: auto !important;
  align-content: center !important;
}

.product-card .card-actions.card-actions-icons {
  margin-top: 12px !important;
}

.filter-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.filter-box label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.variant-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.variant-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.variant-list em {
  color: #047857;
  font-style: normal;
}

.advanced-variant-list {
  align-items: start;
}

.variant-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.variant-group b {
  flex: 1 0 100%;
  color: #071c36;
  font-size: 12px;
}

.variant-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
  color: #071c36;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.variant-pill.active,
.variant-pill:hover {
  border-color: #d7192f;
  box-shadow: 0 8px 18px rgba(215, 25, 47, .12);
}

.variant-pill img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.variant-pill i {
  width: 22px;
  height: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px #fff;
}

.variant-pill em {
  color: #64748b;
  font-size: 11px;
}

/* Minimal, elegant storefront typography refresh. */
body,
button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  color: #182235;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-title,
.section h2,
.hero h1,
.product-summary .page-title {
  color: #071c36;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.14;
}

.product-title,
.mega-links a,
.mega-title,
.feature strong,
.price,
.member-price {
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

p,
.product-description-content,
.footer p,
.feature span,
.product-meta,
.field-help {
  font-weight: 450;
  letter-spacing: 0;
}

.product-card,
.page-box,
.side-cats,
.feature {
  color: #243247;
}

/* Polished home service cards. */
.features {
  gap: 18px !important;
  align-items: stretch;
}

.feature {
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  min-height: 128px;
  border-color: #dbe3ef !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff, #f8fafc) !important;
  padding: 20px !important;
  box-shadow: 0 12px 28px rgba(7, 28, 54, .06);
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #d7192f, #071c36);
  opacity: .84;
}

.feature-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  background: #071c36 !important;
  color: #fff !important;
  font-size: 0 !important;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature strong {
  align-self: end;
  font-size: 15px;
}

.feature span {
  align-self: start;
  max-width: 230px;
  line-height: 1.45;
}

/* Stable product card content and aligned stock/offer row. */
.product-card .product-title {
  display: -webkit-box !important;
  min-height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35 !important;
}

.product-card .price-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 92px !important;
  text-align: center !important;
}

.product-card .price-row .stock {
  justify-self: center !important;
  min-width: 104px !important;
  margin: 0 auto !important;
}

.product-card .price-row .price,
.product-card .price-row .member-price,
.product-card .price-row .whatsapp-offer-btn {
  justify-self: stretch !important;
  width: 100% !important;
}

.product-card .price-row .whatsapp-offer-btn {
  min-height: 34px !important;
  margin-top: 0 !important;
}
