
/* =========================================================
   1. THEME & GLOBAL RESET
   ========================================================= */

:root {
  color-scheme: light;

  --ink: #172033;
  --muted: #778196;
  --line: #e7eaf0;
  --bg: #f5f7fb;
  --white: #fff;

  --green: #16845b;
  --green-dark: #116c4a;

  --danger: #b54747;
  --danger-dark: #963b3b;

  --shadow: 0 8px 28px rgba(20, 31, 52, .09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 88px;

  background: var(--bg);
  color: var(--ink);

  font: 15px/1.4 system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}


/* =========================================================
   2. TOP HEADER & BRAND
   ========================================================= */


.topbar {
  min-height: 105px;
  padding: 10px max(16px, calc((100vw - 900px) / 2));

  position: sticky;
  top: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #111827;
  color: var(--white);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.brand-subtitle {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.2;
}

.header-actions {
  position: absolute;
  right: max(16px, calc((100vw - 900px) / 2));
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .topbar {
    min-height: 85px;
    padding: 8px 12px;
  }

 .brand {
  width: 200px;
  max-width: 65vw;
}

  .brand-subtitle {
    font-size: 15px;
    letter-spacing: 4px;
  }

  .header-actions {
    right: 10px;
  }
}

.cart-top {
  padding: 8px 13px;

  border: 1px solid #465064;
  border-radius: 22px;

  background: #202b3d;
  color: var(--white);

  font-weight: 700;
}

.cart-top span {
  margin-left: 5px;
  padding: 2px 7px;

  border-radius: 20px;
  background: var(--green);
}


/* =========================================================
   3. MAIN CONTENT & SEARCH
   ========================================================= */

main {
  max-width: 900px;
  margin: auto;
  padding: 18px 14px 30px;
}

.search-area {
  position: sticky;
  top: 68px;
  z-index: 3;

  padding: 5px 0 12px;
  background: var(--bg);
}

.searchbox {
  height: 50px;
  padding: 0 13px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--white);
  box-shadow: 0 2px 8px rgba(20, 31, 52, .03);
}

.searchbox span {
  color: #8b94a5;
  font-size: 25px;
}

.searchbox input {
  flex: 1;
  min-width: 0;

  border: 0;
  outline: 0;
  background: transparent;

  font-size: 15px;
}

.searchbox button {
  border: 0;
  background: none;
  color: #8791a2;
  font-size: 24px;
}

.toolbar {
  padding: 12px 2px 5px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--muted);
  font-size: 12px;
}

.text-button {
  border: 0;
  background: none;
  color: var(--green);

  font-size: 13px;
  font-weight: 700;
}

.status {
  padding: 2px;
  color: var(--muted);
  font-size: 12px;
}

.status.error {
  color: var(--danger);
}


/* =========================================================
   4. PRODUCT CATALOG
   ========================================================= */

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

.product-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: var(--white);
  box-shadow: 0 2px 8px rgba(20, 31, 52, .025);
}

.product-image {
  width: 100%;
  height: 132px;
  padding: 8px;

  object-fit: contain;
  background: var(--white);
}

.image-placeholder {
  height: 132px;

  display: grid;
  place-items: center;

  background: #f0f3f7;
  color: #a2aaba;

  font-size: 32px;
}

.product-info {
  padding: 10px 11px 12px;
}

.product-name {
  min-height: 35px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.product-sku {
  margin-top: 5px;

  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.product-variation {
  min-height: 15px;
  margin-top: 3px;

  color: #687386;
  font-size: 11px;
}

.product-price {
  margin: 9px 0;

  color: var(--green);
  font-size: 17px;
  font-weight: 800;
}

.add-button {
  width: 100%;
  padding: 10px 12px;

  border: 0;
  border-radius: 10px;

  background: var(--green);
  color: var(--white);

  font-size: 13px;
  font-weight: 750;
}

.add-button:active,
.primary-button:active {
  background: var(--green-dark);
}


/* =========================================================
   5. EMPTY STATES
   ========================================================= */

.empty {
  padding: 55px 20px;

  display: flex;
  flex-direction: column;
  gap: 7px;

  color: var(--muted);
  text-align: center;
}

.empty strong {
  color: var(--ink);
}

.empty-icon {
  font-size: 36px;
}


/* =========================================================
   6. BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
  height: 68px;
  padding-bottom: env(safe-area-inset-bottom);

  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;

  display: flex;
  justify-content: center;

  border-top: 1px solid var(--line);
  background: var(--white);
}

.bottom-nav button {
  min-width: 110px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 0;
  background: none;
  color: #818b9c;

  font-size: 11px;
  font-weight: 650;
}

.bottom-nav button span {
  font-size: 19px;
}

.bottom-nav .nav-active {
  color: var(--green);
}

.bottom-nav b {
  display: inline-block;
  padding: 1px 6px;

  border-radius: 20px;
  background: #e8f5ef;
  color: var(--green);
}


/* =========================================================
   7. OVERLAYS & PANELS
   ========================================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;

  background: rgba(11, 18, 32, .45);
}

.cart-panel,
.settings-panel {
  position: fixed;
  z-index: 11;

  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-head {
  padding: 18px 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.panel-head strong {
  display: block;
  font-size: 17px;
}

.panel-head small {
  display: block;
  margin-top: 2px;

  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;

  border: 0;
  border-radius: 50%;

  background: #f1f3f7;
  color: #596477;

  font-size: 23px;
}


/* =========================================================
   8. SHOPPING CART PANEL
   ========================================================= */

.cart-panel {
  top: 0;
  right: 0;
  bottom: 0;

  width: min(100%, 480px);

  display: flex;
  flex-direction: column;

  transform: translateX(105%);
  transition: transform .22s ease;
}

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

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

.cart-row {
  padding: 13px 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;

  border-bottom: 1px solid var(--line);
}

.cart-row-main {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cart-product-image,
.cart-image-placeholder {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;

  border-radius: 8px;
  background: #f3f4f6;
  object-fit: contain;
}

.cart-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #9ca3af;
  font-size: 24px;
}

.cart-product-info {
  flex: 1;
  min-width: 0;
}

.cart-row strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cart-row small {
  display: block;
  margin-top: 3px;

  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.cart-row-price {
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}


/* =========================================================
   9. CART QUANTITY CONTROLS
   ========================================================= */

.qty-control {
  margin-top: 9px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qty-control button {
  width: 29px;
  height: 29px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--white);
  font-size: 17px;
}

.qty-control input {
  width: 54px;
  height: 29px;

  border: 1px solid var(--line);
  border-radius: 7px;

  text-align: center;
}

.qty-control .remove-button {
  width: auto;
  height: auto;
  padding: 4px 0;

  border: 0;
  background: none;
  color: var(--danger);

  font-size: 11px;
}


/* =========================================================
   10. CART FOOTER & ORDER BUTTONS
   ========================================================= */

.cart-footer {
  padding: 15px 17px calc(16px + env(safe-area-inset-bottom));

  border-top: 1px solid var(--line);
  background: var(--white);
}

.total-line {
  margin-bottom: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-line strong {
  font-size: 22px;
}

.primary-button,
.secondary-button,
.empty-cart-button {
  width: 100%;
  padding: 11px;

  border-radius: 10px;
  font-weight: 700;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: var(--white);
}

.secondary-button {
  margin-top: 8px;

  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.empty-cart-button {
  margin-top: 8px;

  border: 1px solid #dc2626;
  background: transparent;
  color: #dc2626;
}

.empty-cart-button:not(:disabled):active {
  background: #fef2f2;
  color: var(--danger-dark);
}

.footnote {
  margin: 10px 0 0;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}


/* =========================================================
   11. SETTINGS PANEL
   ========================================================= */

.settings-panel {
  top: 50%;
  left: 50%;

  width: min(calc(100% - 28px), 440px);
  padding-bottom: 18px;

  overflow: hidden;
  border-radius: 16px;

  transform: translate(-50%, -50%);
}

.settings-panel label {
  display: block;
  margin: 15px 17px;

  font-size: 12px;
  font-weight: 700;
}

.settings-panel input {
  width: 100%;
  display: block;
  margin-top: 6px;
  padding: 11px;

  border: 1px solid var(--line);
  border-radius: 9px;

  font-size: 13px;
}

.settings-panel .primary-button {
  width: calc(100% - 34px);
  margin: 0 17px;
}

.settings-panel .footnote {
  margin: 12px 17px;
}


/* =========================================================
   13. TOAST NOTIFICATION
   ========================================================= */

.toast {
  max-width: 90vw;
  padding: 10px 15px;

  position: fixed;
  bottom: 85px;
  left: 50%;
  z-index: 20;

  border-radius: 10px;
  background: #182235;
  color: var(--white);

  font-size: 12px;
  text-align: center;

  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, 15px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =========================================================
   14. TABLET & DESKTOP
   ========================================================= */

@media (min-width: 650px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-image,
  .image-placeholder {
    height: 155px;
  }
}


/* =========================================================
   15. SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 360px) {
  .product-list {
    gap: 8px;
  }

  .product-info {
    padding: 9px;
  }

  .product-image,
  .image-placeholder {
    height: 112px;
  }

  .product-name {
    font-size: 12px;
  }

  .cart-product-image,
  .cart-image-placeholder {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-row-price {
    padding-left: 76px;
  }
}
/* Centi header logo */
.topbar .brand-logo {
  display: block;
  width: 120px !important;
  max-width: 42vw;
  height: auto !important;
  max-height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 480px) {
  .topbar .brand-logo {
    width: 105px !important;
    max-width: 36vw;
    max-height: 52px;
  }
}

/* =========================================================
   PRODUCT QUANTITY SELECTOR
   ========================================================= */

.quantity-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 12;

  width: min(calc(100% - 28px), 420px);
  overflow: hidden;

  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);

  transform: translate(-50%, -50%);
}

.quantity-product {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.quantity-image,
.quantity-image-placeholder {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;

  border-radius: 10px;
  background: #f3f4f6;
  object-fit: contain;
}

.quantity-image-placeholder {
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 25px;
}

.quantity-product-info {
  min-width: 0;
}

.quantity-product-info strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.quantity-product-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.quantity-product-info .product-price {
  margin: 6px 0 0;
  font-size: 15px;
}

.quantity-body {
  padding: 0 17px 18px;
}

.quantity-body > label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.quantity-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.quantity-picker button {
  width: 43px;
  height: 43px;

  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);

  font-size: 23px;
}

.quantity-picker input {
  width: 90px;
  height: 43px;

  border: 1px solid var(--line);
  border-radius: 10px;

  text-align: center;
  font-size: 19px;
  font-weight: 750;
}

.quantity-subtotal {
  margin: 18px 0 14px;
  padding-top: 13px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid var(--line);
}

.quantity-subtotal span {
  color: var(--muted);
  font-size: 13px;
}

.quantity-subtotal strong {
  font-size: 19px;
}
/* =========================================================
   MOBILE HEADER USER + OPTIONS MENU
   ========================================================= */

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

.user-header {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  padding: 9px 11px;
  border: 1px solid #465064;
  border-radius: 22px;

  background: #202b3d;
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.header-menu {
  position: relative;
}

.header-menu-button {
  width: 34px;
  height: 40px;

  border: none;
  border-radius: 8px;

  background: transparent;
  color: #fff;

  font-size: 27px;
  cursor: pointer;
}

.header-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;

  width: 190px;
  padding: 6px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #fff;
  box-shadow: var(--shadow);
}

.header-menu-dropdown button {
  width: 100%;
  padding: 12px;

  border: none;
  border-radius: 7px;

  background: transparent;
  color: var(--ink);

  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.header-menu-dropdown button:active {
  background: var(--bg);
}

@media (max-width: 480px) {
  .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-actions {
    gap: 5px;
  }

  .user-header {
    max-width: 85px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .cart-top {
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-menu-button {
    width: 27px;
  }
}
/* =========================================================
   COMPACT CART FOOTER
   ========================================================= */

.cart-footer {
  padding: 12px 17px calc(14px + env(safe-area-inset-bottom));
}

.cart-footer .total-line {
  margin-bottom: 12px;
}

.cart-footer .destination-label {
  display: block;
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 600;
}

.cart-footer .destination-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.cart-footer > button {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.25;
}

.cart-footer > button + button {
  margin-top: 7px;
}

.cart-footer .footnote {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.4;
}
/* Compact two-column cart routing */
.cart-routing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

.routing-field {
  min-width: 0;
}

.routing-field .destination-label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
}

.routing-field .destination-select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 6px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.send-buttons-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.send-buttons-grid button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 5px;
  font-size: 12px;
  line-height: 1.25;
  border-radius: 8px;
}
/* LANGUAGE SELECTOR */
.language-setting {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.language-setting label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}

.language-setting select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}


/* Customer-facing WhatsApp order action */
.whatsapp-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin: 12px 0 10px;
}
.whatsapp-button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}
.whatsapp-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* =========================================================
   FIRST-VISIT ONBOARDING
   ========================================================= */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 18, 32, .55);
}

.onboarding-panel {
  position: relative;
  width: min(100%, 460px);
  min-height: 390px;
  padding: 35px 24px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.onboarding-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f7;
  color: #596477;
  font-size: 23px;
  z-index: 2;
}

.onboarding-slides {
  flex: 1;
  display: flex;
}

.onboarding-slide {
  width: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.onboarding-slide.active {
  display: flex;
}

.onboarding-slide > img {
  width: 100%;
  max-height: 225px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

.onboarding-slide h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.onboarding-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


.onboarding-intro {
  width: 100%;
  padding: 10px 3px;
  text-align: center;
  margin: auto;
}

.onboarding-intro p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.onboarding-intro a {
  color: var(--green);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}


.onboarding-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 20px 0 15px;
}

.onboarding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dbe3;
}

.onboarding-dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--green);
}

.onboarding-controls {
  display: flex;
  gap: 10px;
}

.onboarding-controls button {
  flex: 1;
  min-height: 43px;
  border-radius: 9px;
  font-weight: 700;
}

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

#onboardingNext {
  border: 0;
  background: var(--green);
  color: #fff;
}

/* Slide 4 illustration */

.stock-confirmation {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 5px auto 25px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf8;
}

.stock-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font-size: 12px;
}

.stock-chat > span {
  color: var(--muted);
  font-weight: 700;
}

.stock-chat > div {
  width: 85%;
  padding: 11px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.stock-chat .stock-reply {
  align-self: flex-end;
  background: #dcf8e8;
}

.stock-reply small {
  display: block;
  margin-top: 5px;
  color: var(--green);
  text-align: right;
}

.stock-check {
  position: absolute;
  right: 5px;
  bottom: -13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .onboarding-panel {
    min-height: 370px;
    padding: 35px 20px 18px;
  }

  .onboarding-slide > img {
    max-height: 200px;
  }
}
#resultCount,
#status {
  display: none !important;
}


/* =========================================
   FEATURED PRODUCT HORIZONTAL CAROUSEL
   ========================================= */

.featured-carousel {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 14px 0 22px;
  padding: 16px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.featured-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.featured-carousel-heading strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.featured-carousel-heading span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Horizontal scrolling area */
.featured-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 2px 2px 12px;
  box-sizing: border-box;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}

.featured-carousel-track:active {
  cursor: grabbing;
}

/* Individual card */
.featured-product {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  min-height: 0;

  display: flex;
  flex-direction: column;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;

  scroll-snap-align: start;
  box-sizing: border-box;
}

/* Product image */
.featured-product-image {
  width: 100%;
  height: 155px;
  flex: 0 0 155px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  overflow: hidden;
}

.featured-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.featured-product-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Product information */
.featured-product-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;

  flex: 1;
  min-width: 0;
  padding: 12px;
  box-sizing: border-box;
}

.featured-product-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;

  height: 36px;
  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-product-sku {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-product-price {
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  margin-top: auto;
  padding-top: 5px;
}

.featured-add-button {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 9px 6px;

  border: 0;
  border-radius: 9px;

  background: var(--green);
  color: white;

  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Visible scrollbar */
.featured-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.featured-carousel-track::-webkit-scrollbar-track {
  background: #e9efeb;
  border-radius: 10px;
}

.featured-carousel-track::-webkit-scrollbar-thumb {
  background: #16875e;
  border-radius: 10px;
}

.featured-carousel-track {
  scrollbar-width: thin;
  scrollbar-color: #16875e #e9efeb;
}

@media (max-width: 480px) {
  .featured-carousel {
    padding: 12px;
  }

  .featured-carousel-heading strong {
    font-size: 15px;
  }

  .featured-product {
    flex-basis: 155px;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
  }

  .featured-product-image {
    height: 135px;
    flex-basis: 135px;
  }
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #d9a7ac;
  border-radius: 10px;
  background: #fff;
  color: #0000EE;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
              transform 150ms ease, box-shadow 150ms ease;
}

.share-button::before {
  content: "⧉";
  font-size: 0.5rem;
  line-height: 1;
}

.share-button:hover {
  border-color: #0000EE;
  background: #0000EE;
  box-shadow: 0 2px 8px rgb(143 0 16 / 10%);
}

.share-button:active {
  transform: scale(0.98);
}

.share-button:focus-visible {
  outline: 3px solid rgb(143 0 16 / 25%);
  outline-offset: 2px;
}
