@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --bg: #f4f1ec;
  --bg-warm: #faf7f2;
  --surface: #ffffff;
  --text: #1c1917;
  --text-soft: #57534e;
  --muted: #8a847c;
  --line: #e7e2d9;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.10);
  --success: #15803d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --shadow-sm: 0 4px 16px rgba(28, 25, 23, 0.06);
  --header-h: 72px;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.shop-app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.shop-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 72px;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: #1c1917;
  color: #faf7f2;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.promo-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px 18px;
  text-align: center;
}

/* ---------- Header ---------- */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
}

.shop-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.shop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit !important;
}

.shop-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.shop-logo h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text) !important;
}

.header-search {
  position: relative;
  max-width: 560px;
  width: 100%;
  justify-self: stretch;
}

.header-search input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 48px 0 18px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

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

.search-toggle,
.cart-link,
.header-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text) !important;
  font-size: 1.15rem;
  cursor: pointer;
}

.search-toggle {
  display: none;
}

.header-wa {
  color: #128c7e !important;
}

.search-toggle:hover,
.cart-link:hover,
.header-wa:hover {
  background: var(--bg);
  color: var(--accent) !important;
}

.cart-count,
#lblCartCount {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.2);
}

.search-suggestions[hidden] {
  display: none;
}

.announce-track {
  display: inline-block;
  padding: 9px 0;
  animation: marquee 28s linear infinite;
}

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

/* ---------- Header ---------- */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--accent) 92%, #1c1917);
  color: #fff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
}

.shop-header.bg-light,
.shop-header.bg-warning,
.shop-header.bg-white {
  color: var(--text);
}

.shop-header.bg-light,
.shop-header.bg-white {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.shop-header.bg-warning {
  background: #f59e0b !important;
}

.shop-header.bg-danger { background: linear-gradient(135deg, #c2410c, #9a3412) !important; }
.shop-header.bg-primary { background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important; }
.shop-header.bg-success { background: linear-gradient(135deg, #15803d, #14532d) !important; }
.shop-header.bg-info { background: linear-gradient(135deg, #0369a1, #0c4a6e) !important; }
.shop-header.bg-dark { background: #1c1917 !important; }
.shop-header.bg-secondary { background: linear-gradient(135deg, #57534e, #292524) !important; }

.shop-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 420px) auto;
  gap: 16px;
  align-items: center;
}

.shop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit !important;
}

.shop-logo h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 46px 0 18px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.shop-header.bg-light .header-search input,
.shop-header.bg-white .header-search input {
  background: #f4f1ec;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-search input::placeholder {
  color: inherit;
  opacity: 0.7;
}

.header-search input:focus {
  background: #fff;
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.2);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions-title {
  padding: 7px 9px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 11px;
  color: var(--text) !important;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: var(--accent-soft);
}

.search-suggestion-item img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-warm);
}

.search-suggestion-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-suggestion-copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-item > b {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

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

.search-toggle,
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit !important;
  font-size: 1.2rem;
  cursor: pointer;
}

.search-toggle {
  display: none;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.search-toggle i {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-toggle:active {
  transform: scale(0.92);
}

.search-toggle:hover,
.cart-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: inherit !important;
}

#lblCartCount,
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Page titles / breadcrumbs ---------- */
.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.page-kicker a {
  color: var(--muted);
}

.page-kicker strong {
  color: var(--text);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Reorder and best sellers ---------- */
.smart-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.smart-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.smart-tile[hidden] {
  display: none;
}

.reorder-tile {
  width: 100%;
}

.reorder-tile .mini-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.smart-tile-head h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.smart-tile-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.smart-tile-head > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.smart-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px;
  border-radius: 12px;
  color: var(--text) !important;
  background: var(--bg-warm);
}

a.mini-product:hover {
  background: var(--accent-soft);
}

.mini-product img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.recent-order-qty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.recent-order-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.recent-order-qty button:hover {
  background: var(--accent-soft);
}

.recent-order-qty span {
  min-width: 22px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.mini-rank {
  width: 20px;
  flex: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mini-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mini-product-copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product-copy small,
.mini-more {
  color: var(--muted);
  font-size: 11px;
}

.mini-product > .fa-chevron-right {
  color: var(--muted);
  font-size: 10px;
}

.mini-more {
  padding: 2px 8px;
}

.smart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.smart-action {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.smart-action:hover {
  background: var(--accent-hover);
}

.smart-action-secondary {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
}

.smart-action-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* ---------- Browsing history and recommendations ---------- */
.memory-section {
  margin: 28px 0 8px;
}

.memory-product-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.memory-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.memory-product-image {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: var(--bg-warm);
}

.memory-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.memory-product-card:hover .memory-product-image img {
  transform: scale(1.04);
}

.memory-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 8px;
}

.memory-product-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.memory-product-copy span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.memory-product-card > button {
  height: 36px;
  margin: 0 10px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.memory-product-card > button:hover {
  background: var(--accent);
  color: #fff;
}

.personalized-section .personalized-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
  justify-content: center;
}

.personalized-section .product-card-body {
  padding: 10px;
}

.personalized-section .product-card-name {
  min-height: 2.5em;
  font-size: 13px;
}

.personalized-section .btn-add {
  height: 34px;
  font-size: 11px;
}

@media (min-width: 720px) {
  .personalized-section .memory-slider {
    padding: 0 48px;
  }

  .personalized-section .personalized-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(156px, 180px);
    grid-template-columns: none;
    justify-content: start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .personalized-section .personalized-grid::-webkit-scrollbar {
    display: none;
  }

  .personalized-section .product-card {
    scroll-snap-align: start;
  }

  .personalized-section .memory-slider-btn {
    display: inline-flex;
    position: absolute;
    top: 50%;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  }

  .personalized-section .memory-slider-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .personalized-section .memory-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .personalized-section .memory-slider-prev {
    left: 0;
  }

  .personalized-section .memory-slider-next {
    right: 0;
  }
}

.related-section {
  margin-top: 10px;
}

.related-section .memory-product-row {
  grid-template-columns: repeat(auto-fill, minmax(130px, 170px));
  justify-content: start;
}

.related-section .memory-product-card > button {
  height: 32px;
  font-size: 10.5px;
}

/* ---------- Free-delivery progress ---------- */
.delivery-progress {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--success) 25%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--success) 7%, #fff);
}

.delivery-progress[hidden] {
  display: none;
}

.delivery-progress-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--success);
  font-size: 12.5px;
}

.delivery-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.13);
}

.delivery-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
  transition: width 0.3s ease;
}

.cart-recommendations {
  margin-top: 24px;
}

@media (max-width: 575px) {
  .reorder-tile .mini-product-list {
    grid-template-columns: 1fr;
  }

  .personalized-section .personalized-grid {
    grid-auto-columns: 145px;
    grid-auto-flow: column;
    grid-template-columns: none;
    justify-content: start;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .personalized-section .personalized-grid::-webkit-scrollbar {
    display: none;
  }

  .personalized-section .product-card {
    scroll-snap-align: start;
  }

  .memory-product-row {
    grid-auto-columns: minmax(145px, 46vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .memory-product-row::-webkit-scrollbar {
    display: none;
  }

  .memory-product-card {
    scroll-snap-align: start;
  }
}

/* ---------- Product sort ---------- */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.products-toolbar .section-head {
  margin: 0;
}

.sort-filter-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.sort-filter-form label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.sort-filter-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sort-filter-form select {
  width: 150px;
  height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sort-filter-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 720px) {
  .products-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .products-toolbar .section-head p,
  .sort-filter-form label span {
    display: none;
  }

  .products-toolbar .section-head h2 {
    font-size: 1.15rem;
  }

  .sort-filter-form select {
    width: 142px;
  }
}

/* ---------- Categories ---------- */
.category-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 28px 0 8px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 32%),
    radial-gradient(circle at 92% 90%, rgba(245, 158, 11, 0.10) 0, transparent 30%),
    linear-gradient(135deg, #fffdf9 0%, #f7f2ea 100%);
  box-shadow: 0 16px 45px rgba(28, 25, 23, 0.07);
}

.category-section::after {
  position: absolute;
  right: -55px;
  top: -65px;
  z-index: -1;
  width: 170px;
  height: 170px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  content: '';
}

.category-section .section-head {
  margin: 0 0 14px;
}

.cat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 18px 12px;
  width: 100%;
  padding: 10px 0 8px;
}

.cat-chip {
  width: 100%;
  min-width: 0;
  text-align: center;
  color: var(--text) !important;
}

.cat-chip img,
.cat-chip .cat-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
  display: block;
  margin: 0 auto 8px;
  transition: transform 0.2s ease;
}

.cat-chip:hover img {
  transform: scale(1.06);
}

.cat-chip span,
.cat-chip {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.cat-chip span {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .category-section {
    margin-top: 18px;
    padding: 16px 12px;
    border-radius: 20px;
  }

  .cat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .cat-chip img,
  .cat-chip .cat-img {
    width: 62px;
    height: 62px;
  }
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.badge-sale,
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}

.ribbon {
  width: auto;
  height: auto;
  overflow: visible;
}

.ribbon span,
.ribbon-top-right span {
  all: unset;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ribbon-top-right {
  top: 12px;
  right: auto;
  left: 12px;
}

.product-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-card-meta:empty {
  display: none;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-card-price .now,
.bbb_deals_item_price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  float: none;
}

.product-card-price strike,
.bbb_deals_item_price_a strike {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.product-card-actions {
  margin-top: 8px;
}

.btn-add,
.available_title .btn,
.btn.buy {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-add:hover,
.available_title .btn:hover,
.btn.buy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-add.is-added,
.btn.buy.is-added {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
}

/* Legacy product card skin so older custom homes still look current */
.bbb_deals {
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: none;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  border: 1px solid transparent;
}

.bbb_deals_title {
  position: static;
  padding: 12px 14px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bbb_deals_image {
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
}

.bbb_deals_image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  margin: 0;
}

.bbb_deals_content {
  margin: 0;
  padding: 12px 14px 14px;
}

.bbb_deals_item_name {
  font-size: 14.5px;
  font-weight: 700;
}

.sold_stars,
.available_bar {
  display: none;
}

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-top: 22px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.pdp-left-column {
  display: contents;
}

.pdp-gallery {
  order: 1;
  min-width: 0;
}

.pdp-info {
  order: 2;
  min-width: 0;
}

.pdp-left-column .related-section {
  order: 3;
  min-width: 0;
}

.pdp + .category-products-section {
  margin: 18px -18px 8px;
  width: auto;
  max-width: none;
  overflow: hidden;
}

.pdp + .category-products-section .section-head {
  padding: 0 18px;
}

.memory-slider {
  position: relative;
}

.memory-slider-btn {
  display: none;
}

@media (min-width: 900px) {
  .pdp + .category-products-section .memory-slider,
  .pdp-left-column .related-section .memory-slider {
    padding: 0 48px;
  }

  .pdp + .category-products-section .memory-slider {
    padding: 0 56px;
  }

  .pdp + .category-products-section .memory-slider-track,
  .pdp-left-column .related-section .memory-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 170px);
    grid-template-columns: none;
    justify-content: start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .pdp-left-column .related-section .memory-slider-track {
    grid-auto-columns: minmax(140px, 156px);
  }

  .pdp + .category-products-section .memory-slider-track::-webkit-scrollbar,
  .pdp-left-column .related-section .memory-slider-track::-webkit-scrollbar {
    display: none;
  }

  .pdp-left-column .related-section .memory-product-card {
    scroll-snap-align: start;
  }

  .memory-slider-btn {
    display: inline-flex;
    position: absolute;
    top: 50%;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  }

  .memory-slider-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .memory-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .memory-slider-prev {
    left: 8px;
  }

  .memory-slider-next {
    right: 8px;
  }
}

@media (max-width: 899px) {
  .pdp > .related-section,
  .pdp-left-column .related-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .pdp > .related-section .memory-product-row,
  .pdp-left-column .related-section .memory-product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    grid-template-columns: none;
    justify-content: start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .pdp > .related-section .memory-product-row::-webkit-scrollbar,
  .pdp-left-column .related-section .memory-product-row::-webkit-scrollbar {
    display: none;
  }

  .pdp > .related-section .memory-product-card,
  .pdp-left-column .related-section .memory-product-card {
    scroll-snap-align: start;
  }

  .pdp + .category-products-section .memory-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 38vw);
    grid-template-columns: none;
    justify-content: start;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    padding: 2px 18px 8px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
  }

  .pdp + .category-products-section .memory-slider-track::-webkit-scrollbar {
    display: none;
  }

  .pdp + .category-products-section .memory-product-card {
    scroll-snap-align: start;
  }

  .pdp-gallery,
  .pdp-info {
    max-width: 100%;
  }

  .pdp-title,
  .pdp-desc,
  .product-details-section .pdp-desc {
    overflow-wrap: anywhere;
  }

  .variation-box {
    overflow-x: auto;
  }

  .variation-box table {
    min-width: 100%;
  }

  .pdp-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }

  .pdp-actions .btn {
    padding: 0 14px;
    font-size: 14px;
  }
}

.pdp-meta-divider,
.pdp-store-divider {
  display: none;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.pdp-meta-divider {
  margin: 8px 0 0;
}

.pdp-store-divider {
  margin: 0;
}

@media (min-width: 900px) {
  .pdp {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: stretch;
    padding-top: 32px;
  }

  .pdp-left-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
  }

  .pdp-left-column .related-section {
    margin-top: 0;
  }

  .pdp-info {
    display: flex;
    flex-direction: column;
  }

  .pdp-info .store-chip {
    margin-top: 12px;
    border-top: none;
    padding-top: 0;
  }

  .pdp-store-divider {
    display: block;
    margin-top: auto;
  }

  .pdp-meta-divider {
    display: block;
  }
}

.pdp-gallery,
.pdp-info,
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.native-gallery {
  width: 100%;
}

.native-gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 45%, transparent 60%),
    var(--bg-warm);
}

.native-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.native-gallery-thumbs {
  display: grid;
  grid-auto-columns: 62px;
  grid-auto-flow: column;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 2px;
  scrollbar-width: none;
}

.native-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.native-gallery-thumb {
  width: 62px;
  height: 62px;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.native-gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.native-gallery-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.pdp-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 8px 0 18px;
}

.pdp-price strike {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.variation-box {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}

.variation-box table {
  width: 100%;
}

.variation-box td {
  padding: 6px 4px;
  font-weight: 600;
}

label.radio {
  cursor: pointer;
}

label.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

label.radio span {
  border: 2px solid var(--accent);
  display: inline-block;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: #fff;
}

label.radio input:checked + span::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  margin: 3px auto;
  border-radius: 50%;
  background: var(--accent);
}

.pdp-actions,
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pdp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.pdp-actions .btn,
.buttons .btn {
  height: 48px;
  border-radius: 999px;
  font-weight: 700;
  padding: 0 22px;
}

.pdp-actions .btn {
  width: 100%;
  min-width: 0;
  padding-right: 12px;
  padding-left: 12px;
}

.pdp-actions .wishlist {
  grid-column: 1 / -1;
  justify-self: end;
}

.buttons .cart,
.btn-outline-warning.cart {
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  background: #fff !important;
}

.buttons .cart:hover,
.btn-outline-warning.cart:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.buttons .buy,
.btn-warning.buy,
.btn-warning {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.buttons .buy:hover,
.btn-warning:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #fff !important;
}

.buttons .wishlist {
  width: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.pdp-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-soft);
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #128c7e !important;
}

.pdp-desc {
  margin-top: 18px;
  color: var(--text-soft);
}

.product-details-section {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}

@media (max-width: 899px) {
  .product-details-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

.product-details-section .section-head {
  margin: 0 0 12px;
}

.product-details-section .pdp-desc {
  margin: 0;
  overflow-wrap: anywhere;
}

.pdp-desc-meta p,
.pdp-desc-fallback p {
  margin: 0 0 8px;
}

.pdp-desc-meta p:last-child,
.pdp-desc-fallback p:last-child {
  margin-bottom: 0;
}

.pdp-desc-meta + .pdp-desc-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-details-section .pdp-desc img {
  max-width: 100%;
  height: auto;
}

.store-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.store-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.p-ratings i,
.stars i,
.comment-ratings i,
.sold_stars i {
  color: #f5b301;
  font-size: 12px;
}

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

.username {
  font-size: 14px;
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
}

/* ---------- Cart ---------- */
.cart-wrap,
.checkout-wrap,
.result-wrap {
  padding-top: 28px;
}

.cart-wrap h3,
.checkout-wrap h3,
.result-wrap h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cart-table,
table.cart-table {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
  border-spacing: 0;
}

.cart-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 14px 16px;
  background: var(--bg-warm);
  font-weight: 700;
}

.cart-table td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table img {
  border-radius: 10px;
  object-fit: cover;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 18px 0 8px;
}

.cart-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px !important;
  min-height: 46px;
  margin: 0;
  white-space: nowrap;
}

.cart-actions > a {
  display: flex;
}

.btn-long {
  border-radius: 999px !important;
  height: 46px;
  padding-left: 22px;
  padding-right: 22px;
  font-weight: 700;
}

.cart-empty {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cart-empty h3 {
  margin: 8px 0 8px;
}

.cart-empty p {
  color: var(--muted);
}

/* ---------- Checkout ---------- */
.stock-warning {
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #f59e0b;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
}

.stock-warning strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-warning ul,
.stock-review-list {
  margin: 9px 0 0;
  padding-left: 20px;
}

.required-mark {
  color: #dc2626;
  font-weight: 800;
}

table.checkout {
  width: 100%;
  background: transparent;
  border-collapse: separate;
  border-spacing: 18px;
}

.checkout td {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px !important;
  box-shadow: var(--shadow-sm);
  vertical-align: top;
  width: 50%;
}

.checkout input[type='text'] {
  height: 46px;
  width: 100% !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--bg-warm);
  outline: none;
}

.checkout input[type='text']:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.order-box {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

/* ---------- Result ---------- */
.result-card {
  max-width: 520px;
  margin: 48px auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.stock-review-card {
  max-width: 620px;
}

.stock-review-icon {
  background: #fef3c7;
  color: #d97706;
}

.stock-review-list {
  margin: 18px 0;
  padding: 14px 14px 14px 34px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--text-soft);
  text-align: left;
  font-size: 13px;
}

/* ---------- Footer ---------- */
.shop-footer {
  margin-top: auto;
}

.shop-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.shop-footer.bg-danger { background: #9a3412 !important; }
.shop-footer.bg-primary { background: #1e3a8a !important; }
.shop-footer.bg-success { background: #14532d !important; }
.shop-footer.bg-info { background: #0c4a6e !important; }
.shop-footer.bg-dark { background: #1c1917 !important; }
.shop-footer.bg-secondary { background: #292524 !important; }
.shop-footer.bg-warning { background: #d97706 !important; }
.shop-footer.bg-light,
.shop-footer.bg-white {
  background: #fff !important;
  border-top: 1px solid var(--line);
}

/* ---------- Search (legacy home search) ---------- */
.container {
  width: min(640px, 100%);
  margin: 18px auto 6px;
}

.searchInput {
  background: #fff;
  width: 100%;
  border-radius: 999px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.searchInput input {
  height: 50px;
  width: 100%;
  outline: none;
  border: none;
  border-radius: 999px;
  padding: 0 60px 0 20px;
  font-size: 16px;
}

.searchInput .icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- Toast ---------- */
.shop-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1917;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: 0.25s ease;
}

.shop-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Misc leftovers ---------- */
.grow { flex: 1; }
.main { overflow: visible; }
.row.grow { display: block; }
.mydiv { margin: 0; }
.cross { font-size: 10px; }
.badge { padding: 4px 7px !important; }
.btn-outline-danger.buy {
  border-color: var(--line);
  color: var(--text);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .shop-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 0fr;
    row-gap: 0;
    column-gap: 16px;
    min-height: auto;
    padding: 10px 18px;
    transition: row-gap 0.3s ease, grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .shop-header.is-search-open .shop-header-inner {
    grid-template-rows: auto 1fr;
    row-gap: 8px;
  }

  .search-toggle {
    display: inline-flex;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.34s;
  }

  .header-search input {
    min-height: 0;
    transform: scale(0.96);
    opacity: 0.65;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
      opacity 0.24s ease 0.05s,
      background 0.2s ease,
      box-shadow 0.2s ease;
  }

  .shop-header.is-search-open .header-search {
    opacity: 1;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.24s ease 0.04s,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .shop-header.is-search-open .header-search input {
    min-height: 44px;
    transform: scale(1);
    opacity: 1;
  }

  .shop-header.is-search-open .search-toggle {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32);
  }

  .shop-header.is-search-open .search-toggle i {
    transform: scale(1.12);
  }

  .cart-table,
  .checkout {
    width: 100% !important;
  }

  .checkout tr {
    display: block;
  }

  .checkout td {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) {
    display: none;
  }

  .container {
    width: 100%;
  }

  .pdp-actions .wishlist {
    width: 48px !important;
    min-width: 48px;
    max-width: 48px;
    flex: 0 0 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .cart-actions > a,
  .cart-actions > button {
    min-width: 0;
    flex: 1 1 0;
  }

  .cart-actions .btn-long {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-header-inner,
  .header-search,
  .header-search input,
  .search-toggle,
  .search-toggle i {
    transition: none !important;
  }
}

/* ===== Professional storefront ===== */
.shop-header {
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
}

.shop-header .shop-logo,
.shop-header .shop-logo h1,
.shop-header .search-toggle,
.shop-header .cart-link {
  color: var(--text) !important;
}

.shop-header .header-search input {
  background: var(--bg) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}

.shop-header .header-search button {
  background: var(--accent) !important;
  color: #fff !important;
}

.shop-header .search-toggle,
.shop-header .cart-link,
.shop-header .header-wa {
  background: #fff !important;
  border: 1px solid var(--line);
}

.shop-header .cart-count,
.shop-header #lblCartCount {
  background: var(--accent) !important;
  color: #fff !important;
}

.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.cat-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-link {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cat-nav-link:hover,
.cat-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.hero {
  position: relative;
  margin: 24px 0 10px;
  padding: 32px 32px 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 36%),
    linear-gradient(135deg, #fff 0%, #f7f2ea 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hero.hero-slider {
  padding-left: 68px;
  padding-right: 68px;
}

.hero-viewport {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-visual {
  min-width: 0;
}

.hero-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--bg-warm);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 38ch;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
}

.hero-cta:hover { background: var(--accent-hover); color: #fff !important; }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-tile {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--bg-warm);
  display: block;
}

a.hero-tile:hover img {
  transform: scale(1.04);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.trust-item i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.trust-item strong,
.trust-item span { display: block; }

.trust-item strong { font-size: 14px; }

.trust-item span {
  color: var(--muted);
  font-size: 12px;
}

.btn-add,
.btn.buy {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-add:hover,
.btn.buy:hover {
  background: var(--accent-hover) !important;
}

.shop-footer {
  background: #1c1917;
  color: #f5f0e8;
  margin-top: auto;
}

.shop-footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 42px 18px 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.footer-brand p {
  margin: 0;
  max-width: 36ch;
  color: #d6d3d1;
  font-size: 14px;
  font-weight: 500;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a29e;
}

.footer-col a {
  color: #f5f0e8 !important;
  font-size: 14px;
  font-weight: 600;
}

.footer-col a:hover { color: #fff !important; }

.shop-footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 18px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #a8a29e;
  font-size: 12px;
}

.shop-footer-bottom a { color: #d6d3d1 !important; }

.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff !important;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.wa-fab:hover { color: #fff !important; transform: translateY(-2px); }

@media (max-width: 900px) {
  .hero {
    padding: 22px 22px 46px;
  }
  .hero.hero-slider {
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 64px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  .hero-arrow {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
    pointer-events: auto;
  }
  .hero-dots {
    bottom: 22px;
    left: 56px;
    right: 56px;
  }
  .trust-row { grid-template-columns: 1fr; }
  .shop-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
  .search-toggle { display: inline-flex !important; }
  .shop-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 0fr;
  }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    height: 0;
  }
  .shop-header.is-search-open .shop-header-inner {
    grid-template-rows: auto 1fr;
  }
  .shop-header.is-search-open .header-search {
    opacity: 1;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    height: auto;
    margin-top: 8px;
  }
  .cat-nav { top: 62px; }
  .header-wa { display: none; }
}

