@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');

:root {
  --navy-900: #000033;
  --navy-800: #00081f;
  --navy-700: #0074a6;
  --blue-600: #000033;
  --blue-700: #1a1a4d;
  --blue-100: #cde6ec;
  --blue-50: #eef7f9;
  --steel: #81b8cc;
  --ink: #161f33;
  --ink-soft: #5b6478;
  --line: #dfe3ed;
  --white: #ffffff;
  --orange: #e0672b;
  --orange-700: #b3491c;
  --orange-100: #fdece2;
  --red: #b3261e;
  --red-100: #fdeceb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(8, 19, 53, 0.08);
  --shadow-hover: 0 8px 24px rgba(8, 19, 53, 0.16);
  --font-ui: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }

/* Utility bar */
.utility-bar {
  background: var(--navy-900);
  color: #c7d3ef;
  font-size: 0.82rem;
  font-weight: 700;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.utility-contact a { color: #e3e9fb; }
.utility-contact a:hover { color: var(--white); }
.utility-contact .dot { margin: 0 8px; opacity: 0.5; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { display: block; }

.search-wrap {
  flex: 1;
  max-width: 520px;
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.search-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: var(--font-ui);
  outline: none;
}
.search-btn {
  border: none;
  background: var(--blue-600);
  color: var(--white);
  padding: 0 18px;
  cursor: pointer;
}
.search-btn:hover { background: var(--blue-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-shrink: 0;
}

.acct, .cart {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: var(--font-ui);
  font-weight: 500;
  position: relative;
}
.acct:hover, .cart:hover { color: var(--blue-600); }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.main-nav {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
}
.nav-inner {
  display: flex;
  gap: 30px;
  height: 44px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-size: var(--font-ui);
  color: #cdd8f2;
}
.main-nav a:hover { color: var(--white); }

/* Hero */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-track {
  display: flex;
  transition: transform 0.5s ease;
}
.hero-slide {
  position: relative;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.slide-photo {
  background: var(--white);
}
.hero-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  background: var(--white);
}

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: var(--navy-900);
}
.dot-btn {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
}
.dot-active { background: var(--white); width: 22px; border-radius: 999px; }

/* Promo strip (square banners, admin-managed) */
.promo-strip-section { padding: 30px 0; background: var(--blue-50); }
.promo-strip-section .container { max-width: 1296px; }
.promo-carousel { position: relative; }
.promo-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
}
.promo-strip::-webkit-scrollbar { display: none; }
.promo-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 6px 20px rgba(8, 19, 53, 0.2);
  font-size: 1.7rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.promo-arrow:hover:not(:disabled) { background: var(--blue-100); transform: translateY(-50%) scale(1.06); }
.promo-arrow-left { left: -22px; }
.promo-arrow-right { right: -22px; }
.promo-arrow:disabled { opacity: .25; cursor: default; box-shadow: none; }
.promo-strip-item {
  display: block;
  flex: 0 0 300px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.promo-strip-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.promo-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 520px) {
  .promo-strip-item { flex-basis: 160px; }
  .promo-arrow { width: 38px; height: 38px; }
  .promo-arrow-left { left: -10px; }
  .promo-arrow-right { right: -10px; }
}

/* Categories */
.categories { border-bottom: 1px solid var(--line); }
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0; }
.chip {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.chip-active, .chip:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

/* Catalog */
.catalog { padding: 48px 0 70px; }

.catalog-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.catalog-block-head-2 { margin-top: 48px; }
.catalog-block-head h2 { font-size: 1.35rem; color: var(--navy-900); }

.carousel-arrows { display: flex; gap: 8px; }
.product-carousel-wrap { position: relative; }
.arrow-btn {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-600);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.arrow-btn:hover:not(:disabled) { background: var(--blue-100); }
.carousel-edge {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-color: #cbd4e4;
  box-shadow: 0 5px 18px rgba(8, 19, 53, 0.18);
  transform: translateY(-50%);
}
.carousel-edge:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.carousel-edge-left { left: -20px; }
.carousel-edge-right { right: -20px; }
.arrow-btn:disabled { opacity: 0.28; cursor: default; box-shadow: none; }

.product-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px 10px;
}
.product-carousel::-webkit-scrollbar { display: none; }

.product-card {
  position: relative;
  flex: 0 0 205px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border: none;
  background: var(--white);
  width: 26px; height: 26px;
  border-radius: 999px;
  color: #b5bccb;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.fav-btn:hover, .fav-active { color: var(--red); }

.product-card img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  margin-bottom: 6px;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}
.badge-discount { background: var(--red); color: var(--white); }

.discount-badge.cds-badge {
  background: linear-gradient(90deg, #1a8f4a, #4fd188);
  box-shadow: 0 4px 12px rgba(20, 130, 75, 0.22);
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  z-index: 3;
  display: none;
  padding: 5px 9px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e71931, #ff7d8b);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  box-shadow: 0 4px 12px rgba(179, 38, 30, 0.18);
}
.discount-badge.is-visible { display: block; }

.badge-size {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
  cursor: pointer;
  text-align: center;
}
.lab { color: var(--ink-soft); font-size: 0.72rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.02em; }

.price-row { display: flex; min-height: 43px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; margin-bottom: 10px; }
.price { font-weight: 800; color: #0C5FD9; font-size: 1.15rem; }
.price-old { font-size: 13px; color: #9aa3b2; text-decoration: line-through; }
.price-old.is-empty { visibility: hidden; }
.restriction-note {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin: 2px 0 7px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.restriction-note.is-empty { visibility: hidden; }
.restriction-prescription { background: #fff2cc; color: #805c00; }
.restriction-branch { background: #fdeceb; color: #a52620; }
.btn-buy.btn-branch, .btn-buy.btn-branch:hover { background: #e9ecf2; color: #687386; cursor: not-allowed; }


.btn-buy {
  width: 100%;
  border: none;
  background: #0C5FD9;
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-ui);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-buy:hover { background: #094FB8; }
.btn-notify {
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-notify:hover { background: #f5f6f9; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c7d3ef; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 48px 24px 32px;
}
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.footer-col h4.footer-subheading { margin-top: 18px; text-transform: none; }
.footer-col p { margin: 0 0 8px; font-size: 0.88rem; }
.footer-col .legal-title { margin-top: 18px; text-transform: none; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-link-underline { text-decoration: underline; }
.footer-contact-line { display: flex; align-items: center; gap: 8px; }
.footer-address { display: flex; align-items: flex-start; gap: 8px; }
.footer-address svg { flex-shrink: 0; margin-top: 3px; }
.social-row { display: flex; gap: 10px; margin: 14px 0 4px; }
.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--white);
}
.social-email { background: var(--orange); }
.social-whatsapp { background: #25D366; }
.social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  font-size: 0.8rem;
  color: #93a2c9;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .utility-hours { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .search-wrap { order: 3; max-width: none; width: 100%; }
  .nav-inner { overflow-x: auto; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-banner-img { aspect-ratio: 3 / 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .product-card { flex-basis: 148px; }
  .product-card img { height: 108px; }
  .carousel-edge { width: 38px; height: 38px; }
  .carousel-edge-left { left: -12px; }
  .carousel-edge-right { right: -12px; }
}


/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.32); }

@media (max-width: 520px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}


/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 53, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.cart-overlay-visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(8, 19, 53, 0.2);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.cart-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.1rem; color: var(--navy-900); }
.cart-close {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.cart-close:hover { color: var(--ink); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
}
.cart-empty { color: var(--ink-soft); font-size: 0.9rem; text-align: center; margin-top: 30px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.88rem; margin: 0 0 4px; }
.cart-item-price { font-size: 0.82rem; color: var(--ink-soft); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-600);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.qty-btn:hover { background: var(--blue-100); }

.cart-item-remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--red); }

.cart-address {
  border-top: 1px solid var(--line);
  padding: 16px 22px 4px;
}
.cart-address h4 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--navy-900);
}
.address-row {
  margin-bottom: 12px;
  position: relative;
}
.address-row label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.address-row input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  outline: none;
}
.address-row input:focus { border-color: var(--blue-600); }
.address-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shipping-status {
  display: block;
  font-size: 0.76rem;
  margin-top: 4px;
  color: var(--ink-soft);
}
.shipping-status.shipping-ok { color: #1a8f4a; }
.shipping-status.shipping-error { color: var(--red); }

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.cart-subtotal-row {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.cart-checkout-btn {
  width: 100%;
  border: none;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cart-checkout-btn:hover:not(:disabled) { background: var(--blue-700); }
.cart-checkout-btn:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

.cart-whatsapp-btn {
  display: block;
  width: 100%;
  border: none;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.15s ease;
}
.cart-whatsapp-btn:hover:not(:disabled) { background: #1ebe5a; }
.cart-whatsapp-btn:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

.cart-checkout-error {
  color: var(--red);
  font-size: 0.8rem;
  margin: 10px 0 0;
  text-align: center;
}

@media (max-width: 520px) {
  .cart-drawer { width: 100vw; max-width: 100vw; }
}

.footer-col h4.footer-lowercase { text-transform: none; }
