/* Shared visual refresh for the storefront, catalog and customer profile. */
:root {
  --ink: #22231e;
  --ink-soft: #42443b;
  --muted: #77766d;
  --cream: #f7f5f0;
  --paper: #fffefa;
  --wine: #a8432a;
  --wine-dark: #87301a;
  --gold: #b68a4b;
  --olive: #55634a;
  --border: #e7e1d7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-subtle: 0 6px 22px rgba(51, 43, 31, .045);
  --shadow-card: 0 14px 34px rgba(51, 43, 31, .09);
  --shadow-hover: 0 18px 42px rgba(86, 54, 34, .14);
}

html { scroll-padding-top: 88px; }
body { background: var(--cream); color: var(--ink); }
button, input, select, textarea { font: inherit; }
.form-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(168, 67, 42, .42); outline-offset: 3px; }

header {
  background: rgba(250, 248, 243, .92) !important;
  border-bottom-color: rgba(74, 61, 45, .1) !important;
  box-shadow: 0 4px 24px rgba(35, 31, 26, .035);
}
body.admin-page > header {
  background: var(--wine) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
}
body.admin-page > header .brand-title { color: #fff !important; }
body.admin-page > header .btn-header {
  color: #fff !important;
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
}
body.admin-page > header .btn-header:hover { background: rgba(255, 255, 255, .25) !important; }
.nav { min-height: 86px; }
.brand-main, .brand-title { letter-spacing: -.035em; }
.brand-logo-img {
  height: 76px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo-img {
  transform: scale(1.02);
}
@media (max-width: 760px) {
  .brand-logo-img {
    height: 58px;
    max-width: 190px;
  }
}
@media (max-width: 480px) {
  .brand-logo-img {
    height: 48px;
    max-width: 160px;
  }
}
nav.header-nav a, header nav a { transition: color .2s ease; }

.ecom-hero {
  padding: clamp(54px, 8vw, 104px) 0 !important;
  background: radial-gradient(ellipse at 88% 8%, rgba(219, 195, 157, .28), transparent 42%), #f4f0e8 !important;
  border-bottom: 0 !important;
}
.hero-split { grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr) !important; gap: clamp(36px, 6vw, 84px) !important; }
.hero-title { max-width: 720px; font-size: clamp(42px, 5.6vw, 72px) !important; line-height: 1.04 !important; letter-spacing: -.045em !important; }
.hero-sub { max-width: 540px; font-size: 16px !important; color: #66665e !important; }
.hero-tagline-badge { background: #ebe6da !important; border-color: #ddd3c0 !important; border-radius: 999px !important; padding: 8px 14px !important; }
.hero-feature-pill { border-radius: 999px !important; padding: 8px 13px !important; }
.btn-hero-primary, .btn-hero-secondary, .btn-hero-wa { border-radius: 999px !important; padding: 14px 22px !important; letter-spacing: .055em !important; }
.hero-showcase-3d { border-radius: 24px !important; box-shadow: 0 24px 64px rgba(55, 39, 25, .16) !important; animation: none !important; transform: none !important; }
.showcase-media { height: clamp(300px, 35vw, 450px) !important; }
.showcase-img { transform: none !important; }
.showcase-footer { padding: 18px 22px !important; }

.trust-strip { border-block: 1px solid var(--border); background: rgba(255, 254, 250, .7) !important; }
.trust-grid { gap: 14px !important; }
.trust-item { border-radius: 14px; padding: 16px 12px; }
.trust-icon-box { border-radius: 12px !important; }

.shop-section, .shop-catalog { padding: clamp(36px, 5vw, 64px) 0 !important; }
.shop-toolbar { border-radius: 18px !important; border-color: var(--border) !important; box-shadow: var(--shadow-subtle) !important; }
.search-input-wrap input, .sort-select, .filter-pill { border-radius: 999px !important; }
.filter-pill { padding: 9px 15px !important; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important; gap: 28px !important; }
.product-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  overflow: visible !important;
  position: relative !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.product-card.is-hidden,
.product-card[style*="display: none"] {
  display: none !important;
}
.product-card:hover { transform: translateY(-4px); }
.product-card-frame {
  background: #ffffff;
  border: 1px solid #ded5c7;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(43, 34, 23, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover .product-card-frame {
  box-shadow: 0 14px 30px rgba(43, 34, 23, 0.12);
  border-color: #cbbfae;
}
.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  position: relative;
  overflow: hidden;
  background: #fdfbf7;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ── Product Thumbnail Sliding Carousel ── */
.product-thumb-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.product-thumb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-thumb-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.thumb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #2e2620;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}
.product-card:hover .thumb-nav-btn {
  opacity: 0.95;
}
@media (hover: none) {
  .thumb-nav-btn {
    opacity: 0.85;
  }
}
.thumb-nav-btn:hover {
  opacity: 1 !important;
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  color: #702b35;
}
.thumb-nav-btn.prev {
  left: 8px;
}
.thumb-nav-btn.next {
  right: 8px;
}
.thumb-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
  pointer-events: auto;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}
.thumb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.25s ease;
}
.thumb-dot.active {
  width: 14px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.product-card-bottom-bar {
  height: 38px;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
}
.product-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #a8432a;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 12px;
  bottom: 10px;
  box-shadow: 0 4px 12px rgba(168, 67, 42, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}
.product-circle-btn:hover {
  background: #8e3620;
  transform: scale(1.14);
  box-shadow: 0 6px 16px rgba(168, 67, 42, 0.45);
}
.product-circle-btn.sold-out {
  background: #c59d7b;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.95;
}
.product-sold-out-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7d7268;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  z-index: 6;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 7px;
  border-radius: 3px;
}
.product-card-info {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.product-meta-brand {
  display: none !important;
}
.product-meta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #2e2620;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.product-meta-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b5c4f;
  margin-top: 2px;
}
.product-title { letter-spacing: -.02em; }
.product-quick-view-btn { border-radius: 999px !important; }
.btn-cart-action, .ecom-btn-header, .ecom-btn-block { border-radius: 999px !important; }
.ecom-btn-header { border-color: rgba(70, 54, 36, .16) !important; }
.ecom-floating-cart-btn { border-radius: 999px !important; }
.ecom-modal-dialog, .ecom-drawer { border-radius: 20px 0 0 20px !important; }
.ecom-modal-dialog { border-radius: 20px !important; }
.ecom-form-input, .ecom-form-select, .ecom-form-textarea { border-radius: 10px !important; }

@media (max-width: 760px) {
  .ecom-hero { padding: 42px 0 36px !important; }
  .hero-split { grid-template-columns: 1fr !important; gap: 26px !important; }
  .hero-title { font-size: clamp(38px, 11vw, 56px) !important; }
  .hero-pills-row { gap: 7px !important; }
  .hero-feature-pill { font-size: 10.5px !important; }
  .showcase-media { height: 290px !important; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .product-body { padding: 13px !important; }
  .product-title { font-size: 16px !important; }
  .product-desc { font-size: 12px !important; }
  .product-img-wrap { aspect-ratio: .92 / 1; }
}

@media (max-width: 760px) {
  body.admin-page > header { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  body.admin-page > header .header-user { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  body.admin-page > header .btn-header { padding: 8px 11px; font-size: 10px; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .product-img-wrap { aspect-ratio: 1.2 / 1; }
  .ecom-nav-actions { gap: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
