:root {
  --amitin-pink: #d72b91;
  --amitin-pink-dark: #a81569;
  --amitin-pink-soft: #fff0f8;
  --amitin-ink: #171317;
  --amitin-muted: #706a70;
  --amitin-line: #eee7eb;
  --amitin-whatsapp: #14975e;
  --amitin-surface: #ffffff;
}

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

body {
  margin: 0;
  background: var(--amitin-surface);
  color: var(--amitin-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.catalog-shell { width: 100%; margin: 0; padding: 0 0 96px; }

.storefront-header,
.storefront-nav,
.hero,
.catalog-controls,
.result-head,
.gallery-wrap,
.admin-panel,
.marketing-kit {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}

.storefront-header {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(380px, 1.35fr) minmax(220px, 0.65fr);
  gap: 34px;
  align-items: center;
  min-height: 108px;
  padding: 16px 0 12px;
  background: #fff;
}

.storefront-brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.storefront-brand img { width: 74px; height: 74px; border-radius: 19px; object-fit: cover; }
.storefront-brand span { min-width: 0; }
.storefront-brand strong {
  display: block;
  color: var(--amitin-pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 48px);
  line-height: 0.9;
}
.storefront-brand small {
  display: block;
  margin-top: 8px;
  color: #625b61;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.storefront-search-slot .search-box { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.storefront-search-slot .search-box label { margin: 0; }
.storefront-search-slot .search-box label > span { display: none; }
.storefront-search-slot input {
  width: 100%; min-height: 52px; padding: 0 20px;
  border: 1px solid #e9e6e8 !important;
  border-radius: 13px 0 0 13px !important;
  background: #f5f4f5 !important;
  color: var(--amitin-ink); font-size: 15px; outline: none;
}
.storefront-search-slot input:focus { border-color: var(--amitin-pink) !important; box-shadow: 0 0 0 3px rgba(215, 43, 145, 0.12); }
.storefront-search-slot .icon-button {
  min-width: 82px; min-height: 52px;
  border: 1px solid #111 !important; border-radius: 0 13px 13px 0 !important;
  background: #111 !important; color: #fff !important; font-weight: 800;
}
#clearSearchBtn { display: none !important; }

.header-whatsapp { display: flex; align-items: flex-end; flex-direction: column; color: var(--amitin-ink); text-decoration: none; }
.header-whatsapp strong { font-size: 15px; }
.header-whatsapp span { margin-top: 4px; color: var(--amitin-whatsapp); font-size: 12px; font-weight: 700; }

.storefront-nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 64px); min-height: 58px;
  border-bottom: 3px solid var(--amitin-pink);
}
.storefront-nav button,
.storefront-nav a {
  position: relative; min-height: 55px; padding: 0 3px;
  border: 0; border-radius: 0; background: transparent;
  color: var(--amitin-ink); font-size: 13px; font-weight: 800;
  text-decoration: none; text-transform: uppercase; cursor: pointer;
}
.storefront-nav button::after {
  content: ""; position: absolute; right: 0; bottom: -3px; left: 0;
  height: 4px; border-radius: 4px 4px 0 0; background: transparent;
}
.storefront-nav button.is-active { color: var(--amitin-pink); }
.storefront-nav button.is-active::after { background: var(--amitin-pink); }

.hero {
  display: flex; flex-direction: column; gap: 22px;
  padding: 26px 0 0; border: 0; border-radius: 0;
  background: #fff; box-shadow: none;
}
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading-row p,
.promo-copy > p,
.section-kicker {
  margin: 0 0 4px; color: var(--amitin-pink);
  font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
}
.section-heading-row h1,
.promo-copy h2,
.result-head h2 {
  margin: 0; font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.025em;
}
.section-heading-row h1 { font-size: 32px; }
.section-heading-row button,
.promo-copy button {
  border: 0; background: transparent; color: var(--amitin-pink);
  font-size: 13px; font-weight: 800; cursor: pointer;
}

.visual-category-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.visual-category {
  display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; border: 0; background: transparent; color: var(--amitin-pink); cursor: pointer;
}
.visual-category-image {
  display: block; width: 100%; aspect-ratio: 1.45 / 1;
  overflow: hidden; border-radius: 999px; background: var(--amitin-pink-soft);
}
.visual-category img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.visual-category:hover img { transform: scale(1.035); }
.visual-category strong { font-size: 16px; }
.visual-category.is-active strong { text-decoration: underline; text-underline-offset: 5px; }

.promo-banner {
  display: grid; grid-template-columns: minmax(390px, 1.15fr) minmax(380px, 0.85fr);
  align-items: center; min-height: 190px; overflow: hidden;
  border-radius: 14px; background: #fff0f7;
}
.promo-copy { padding: 26px 42px; }
.promo-copy h2 { max-width: 620px; color: #b60e6c; font-size: clamp(34px, 4vw, 55px); line-height: 1; }
.promo-copy > span { display: block; max-width: 620px; margin-top: 10px; color: #695d66; font-size: 14px; line-height: 1.5; }
.promo-copy button { margin-top: 18px; padding: 12px 22px; border-radius: 999px; background: var(--amitin-pink); color: #fff; }
.promo-products { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; }
.promo-products img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }

.order-guide { display: none !important; }
.admin-actions,
.admin-panel,
.marketing-kit,
#exportCsvBtn,
#exportMetaCatalogBtn,
.special-filter-btn,
.copy-product-post { display: none !important; }
html.admin-mode .admin-actions,
html.admin-mode .admin-panel,
html.admin-mode .marketing-kit,
html.admin-mode #exportCsvBtn,
html.admin-mode #exportMetaCatalogBtn,
html.admin-mode .special-filter-btn,
html.admin-mode .copy-product-post { display: flex !important; }
html.admin-mode .admin-panel {
  margin-top: 20px; padding: 20px; border: 1px dashed var(--amitin-pink);
  border-radius: 12px; background: #fff;
}
html.admin-mode .admin-tools { width: 100%; }

.catalog-controls {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  margin-top: 26px; margin-bottom: 20px; padding: 11px 16px;
  border: 1px solid var(--amitin-line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(62, 28, 48, 0.07); backdrop-filter: blur(12px);
}
.catalog-controls > .search-box { display: none; }
.category-group { min-width: 0; }
.category-group > span,
.catalog-controls > label > span { display: none; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0; scrollbar-width: thin; }
.category-tab {
  flex: 0 0 auto; min-height: 36px; padding: 7px 13px;
  border: 1px solid var(--amitin-line); border-radius: 999px;
  background: #fff; color: #3c343a; font-size: 12px; font-weight: 700;
}
.category-tab.is-active { border-color: var(--amitin-pink) !important; background: var(--amitin-pink) !important; color: #fff !important; }
.catalog-controls select {
  min-height: 36px; padding: 0 32px 0 11px;
  border: 1px solid var(--amitin-line) !important; border-radius: 10px !important;
  background: #fff !important; color: var(--amitin-ink);
}

.result-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-top: 6px; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--amitin-pink);
}
.result-head h2 { font-size: 34px; }
.result-head p { margin: 0; }
.result-head p:last-child { color: var(--amitin-pink); font-size: 13px; font-weight: 800; }

.gallery-wrap { padding: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.product-card { min-width: 0; overflow: visible; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.image-frame {
  position: relative; aspect-ratio: 1.18 / 1; overflow: hidden;
  border-radius: 10px; background: #f5f3f4;
}
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.product-card:hover .product-image { transform: scale(1.025); }
.stock-pill {
  position: absolute; top: 10px; right: 10px;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--amitin-whatsapp);
  font-size: 10px; font-weight: 800;
}
.product-body { display: flex; min-height: 232px; flex-direction: column; padding: 11px 2px 0; }
.code-row { display: flex; justify-content: space-between; gap: 8px; color: #413940; font-size: 12px; font-weight: 800; }
.gender-tag { color: var(--amitin-pink); }
.product-name { min-height: 39px; margin: 6px 0 8px; font-size: 15px; line-height: 1.32; }
.fabric-line { display: none; }
.price-block { margin: 0; padding: 0; border: 0; }
.price-label { display: none; }
.price { display: block; color: var(--amitin-pink); font-size: 20px; line-height: 1.2; }
.meta-list { margin: 4px 0 10px; font-size: 12px; }
.meta-list > div:first-child { display: flex; gap: 6px; align-items: baseline; }
.meta-list > div:last-child { display: none; }
.meta-list dt { color: var(--amitin-muted); font-size: 11px; }
.meta-list dd { margin: 0; }
.whatsapp-order {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; margin-top: auto; padding: 9px 12px;
  border: 1px solid var(--amitin-pink) !important; border-radius: 999px;
  background: #fff !important; color: var(--amitin-pink) !important;
  font-size: 12px; font-weight: 800; text-align: center; text-decoration: none;
}
.whatsapp-order:hover { background: var(--amitin-pink) !important; color: #fff !important; }
.floating-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: auto; padding: 13px 17px; border-radius: 999px;
  background: var(--amitin-whatsapp) !important; color: #fff !important;
  box-shadow: 0 12px 30px rgba(20, 151, 94, 0.26);
  font-size: 12px; font-weight: 800;
}

@media (max-width: 1050px) {
  .storefront-header,
  .storefront-nav,
  .hero,
  .catalog-controls,
  .result-head,
  .gallery-wrap,
  .admin-panel,
  .marketing-kit { width: min(100% - 36px, 980px); }
  .storefront-header { grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr); gap: 24px; }
  .header-whatsapp { display: none; }
  .storefront-nav { gap: clamp(16px, 3vw, 36px); }
  .visual-category-row { gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .storefront-header,
  .storefront-nav,
  .hero,
  .catalog-controls,
  .result-head,
  .gallery-wrap,
  .admin-panel,
  .marketing-kit { width: min(100% - 20px, 680px); }
  .storefront-header { grid-template-columns: 1fr; gap: 12px; min-height: auto; padding: 12px 0 10px; }
  .storefront-brand { justify-content: center; }
  .storefront-brand img { width: 54px; height: 54px; border-radius: 14px; }
  .storefront-brand strong { font-size: 34px; }
  .storefront-brand small { margin-top: 5px; font-size: 8px; }
  .storefront-search-slot input { min-height: 46px; padding: 0 14px; font-size: 14px; }
  .storefront-search-slot .icon-button { min-width: 72px; min-height: 46px; }
  .storefront-nav {
    justify-content: flex-start; gap: 24px; min-height: 47px;
    overflow-x: auto; scrollbar-width: none;
  }
  .storefront-nav::-webkit-scrollbar { display: none; }
  .storefront-nav button,
  .storefront-nav a { flex: 0 0 auto; min-height: 44px; font-size: 11px; }
  .hero { gap: 17px; padding-top: 16px; }
  .section-heading-row { align-items: center; margin-bottom: 12px; }
  .section-heading-row h1 { font-size: 25px; }
  .section-heading-row > button { display: none; }
  .visual-category-row {
    display: flex; gap: 14px; overflow-x: auto; padding: 0 1px 7px;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .visual-category-row::-webkit-scrollbar { display: none; }
  .visual-category { flex: 0 0 102px; scroll-snap-align: start; }
  .visual-category-image { aspect-ratio: 1 / 1; }
  .visual-category strong { font-size: 13px; }
  .promo-banner { grid-template-columns: 1.25fr 0.75fr; min-height: 154px; border-radius: 12px; }
  .promo-copy { padding: 18px; }
  .promo-copy h2 { font-size: clamp(28px, 8vw, 38px); }
  .promo-copy > span { display: none; }
  .promo-copy button { margin-top: 13px; padding: 10px 14px; font-size: 11px; }
  .promo-products { grid-template-columns: 1fr; }
  .promo-products img { min-height: 154px; }
  .promo-products img:last-child { display: none; }
  .catalog-controls {
    top: 0; grid-template-columns: 1fr; gap: 8px;
    margin-top: 16px; padding: 9px; border-radius: 12px;
  }
  .catalog-controls > label { display: none; }
  .category-tab { min-height: 34px; padding: 6px 11px; }
  .result-head { align-items: center; margin-bottom: 14px; }
  .result-head h2 { font-size: 27px; }
  .result-head p:last-child { font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .image-frame { aspect-ratio: 1 / 1; border-radius: 8px; }
  .product-body { min-height: 225px; padding-top: 9px; }
  .code-row { font-size: 10px; }
  .product-name { min-height: 38px; font-size: 13px; }
  .price { font-size: 18px; }
  .meta-list { font-size: 11px; }
  .meta-list dt { font-size: 10px; }
  .whatsapp-order { min-height: 36px; padding: 8px 5px; font-size: 10px; }
  .stock-pill { top: 7px; right: 7px; font-size: 9px; }
  .floating-whatsapp { right: 11px; bottom: 11px; padding: 11px 13px; font-size: 10px; }
  html.admin-mode .admin-panel { display: block !important; }
}
.product-card[data-cover-mode="clothing"] .image-frame { aspect-ratio: .82 / 1; cursor: zoom-in; background: #faf7f9; }
.product-card[data-cover-mode="clothing"] .product-image { object-position: 11% 67%; transform: scale(1.32); transform-origin: 14% 68%; }
.product-card[data-cover-mode="clothing"]:hover .product-image,
.product-card[data-cover-mode="clothing"] .image-frame:focus-visible .product-image { transform: scale(1.38); }
.colour-count-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: #a81569; font-size: 10px; font-weight: 800; box-shadow: 0 3px 10px rgba(53,20,43,.1); }
.colour-preview-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(18,12,17,.72); }
.colour-preview-modal.is-open { display: flex; }
.colour-preview-dialog { position: relative; width: min(900px,100%); max-height: min(88vh,760px); padding: 16px; overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.colour-preview-image { display: block; width: 100%; height: auto; border-radius: 10px; }
.colour-preview-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #211923; font-size: 25px; line-height: 1; cursor: pointer; }
.colour-preview-caption { margin: 12px 4px 0; color: #706a70; font-size: 12px; text-align: center; }
@media (max-width:700px) { .colour-count-badge { left: 7px; bottom: 7px; padding: 5px 7px; font-size: 9px; } }
@media (max-width:700px) { .catalog-controls .category-tabs { display: flex !important; flex-wrap: none !important; gap: 8px !important; width: 100% !important; height: auto !important; max-height: 46px !important; overflow-x: auto !important; overflow-y: hidden !important; } .catalog-controls .category-tab { display: inline-flex !important; width: auto !important; flex: 0 0 auto !important; align-items: center; white-space: nowrap; } }
@media (max-width:700px){.catalog-controls .category-tabs{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important;height:auto!important;max-height:46px!important;overflow-x:auto!important;overflow-y:hidden!important}.catalog-controls .category-tab{display:inline-flex!important;width:auto!important;flex:0 0 auto!important;align-items:center;white-space:nowrap}}
.product-card[data-cover-mode="clothing"] .product-image{object-position:12% 50%;transform:scale(1.08);transform-origin:12% 50%}.product-card[data-cover-mode="clothing"]:hover .product-image,.product-card[data-cover-mode="clothing"] .image-frame:focus-visible .product-image{transform:scale(1.12)}

/* Inventory availability, checked 2026-10-29 */
.product-card .stock-pill[data-availability="warehouse"] { bottom: auto; height: auto; padding: 4px 6px; color: #805000; background: #fff1d5; max-width: calc(100% - 20px); line-height: 1.3; }
.stock-pill[data-availability="unknown"] { color: #625b61; }
.inventory-note { color: #655b63; font-size: 12px; line-height: 1.5; margin-top: 6px; }
