.site-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(18, 14, 12, 0.34);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.site-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(88vw, 20rem);
  height: 100vh;
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.98);
  border-left: 1px solid rgba(236, 223, 194, 0.9);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

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

html,
body {
  overflow-x: hidden;
}

body {
  font-weight: 400;
  letter-spacing: 0.01em;
}

b,
strong {
  font-weight: 500;
}

.font-medium {
  font-weight: 400 !important;
}

.font-semibold {
  font-weight: 500 !important;
}

.font-bold,
.font-extrabold {
  font-weight: 600 !important;
}

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

.page-surface {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 223, 194, 0.85);
  box-shadow: 0 20px 50px rgba(35, 22, 16, 0.06);
}

.page-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 223, 194, 0.85);
  box-shadow: 0 12px 36px rgba(35, 22, 16, 0.06);
}

.catalog-card {
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(35, 22, 16, 0.08);
}

.catalog-card.is-hidden {
  display: none;
}

.best-seller-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 247, 241, 0.96) 100%);
  border: 1px solid rgba(236, 223, 194, 0.95) !important;
  box-shadow: 0 16px 40px rgba(35, 22, 16, 0.07);
}

.best-seller-card:hover {
  box-shadow: 0 24px 52px rgba(35, 22, 16, 0.12);
}

.best-seller-media {
  position: relative;
  padding: 0.9rem;
  background:
    radial-gradient(circle at top left, rgba(255, 246, 214, 0.72), transparent 44%),
    linear-gradient(135deg, #f4efe8 0%, #e9e1d4 100%);
}

.best-seller-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(236, 223, 194, 0.9);
}

.best-seller-track {
  display: flex;
  transition: transform 360ms ease;
  will-change: transform;
}

.best-seller-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.best-seller-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f6f0e6 0%, #e0d5c4 100%);
}

.best-seller-badge {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(122, 31, 43, 0.92);
  padding: 0.4rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 31, 43, 0.24);
}

.best-seller-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  height: 2.4rem;
  width: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 31, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7a1f2b;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 12px 28px rgba(35, 22, 16, 0.12);
}

.best-seller-nav.prev {
  left: 1rem;
}

.best-seller-nav.next {
  right: 1rem;
}

.best-seller-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 1rem;
}

.best-seller-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(122, 31, 43, 0.18);
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.best-seller-dot.active {
  width: 1.65rem;
  background: #7a1f2b;
}

.best-seller-dot:hover {
  transform: scale(1.08);
}

.review-card > summary {
  list-style: none;
}

.review-card > summary::-webkit-details-marker {
  display: none;
}

.review-card[open] {
  box-shadow: 0 20px 44px rgba(35, 22, 16, 0.08);
}

.review-full-image {
  max-height: 70vh;
}

@media (prefers-reduced-motion: reduce) {
  .best-seller-track,
  .best-seller-dot {
    transition: none !important;
  }
}

/* Modern card appearance: remove heavy border and use soft shadow */
.catalog-card {
  border: none !important;
  box-shadow: 0 12px 30px rgba(15, 15, 15, 0.06);
}

/* Small 'Tap to purchase' trigger style */
.tap-to-purchase {
  background: transparent;
  border: none;
  padding: 0;
  color: #6b7280; /* gray-500 */
  font-size: 0.8125rem; /* 13px */
  cursor: pointer;
}
.tap-to-purchase:focus { outline: 2px solid rgba(122,31,43,0.12); border-radius: 6px; }

/* Carousel styles */
.product-carousel { position: relative; }
.product-carousel .carousel-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
.product-carousel .carousel-track::-webkit-scrollbar { display: none; }
.product-carousel .carousel-card { scroll-snap-align: center; flex: 0 0 82%; max-width: 82%; background: white; border-radius: 1rem; padding: 1rem; box-shadow: 0 10px 30px rgba(12,12,12,0.06); display: flex; gap: 1rem; align-items: center; }
.product-carousel .carousel-media { flex: 0 0 40%; }
.product-carousel .carousel-media img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 0.6rem; border: none; box-shadow: none; }
.product-carousel .carousel-body { flex: 1 1 60%; }
.product-carousel .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border-radius: 999px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.product-carousel .carousel-nav.prev { left: -0.6rem; }
.product-carousel .carousel-nav.next { right: -0.6rem; }
.product-carousel .carousel-dots { margin-top: 0.75rem; display:flex; gap:0.5rem; justify-content:center; }
.product-carousel .carousel-dots button { width:8px; height:8px; border-radius:999px; background:#e5e7eb; border: none; }
.product-carousel .carousel-dots button.active { background:#7a1f2b; }

@media(min-width:1024px) {
  .product-carousel .carousel-card { flex: 0 0 32%; max-width: 32%; }
  .product-carousel .carousel-media { flex: 0 0 45%; }
  .product-carousel .carousel-body { flex: 1 1 55%; }
}

.fade-in-up {
  animation: fadeInUp 360ms ease both;
}

.slide-in-right {
  animation: slideInRight 260ms ease both;
}

.scale-in {
  animation: scaleIn 220ms ease both;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 16, 14, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.popup-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-panel {
  width: min(100%, 32rem);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(236, 223, 194, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.popup-backdrop.open .popup-panel {
  transform: translateY(0) scale(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-overlay,
  .site-nav-panel,
  .catalog-card,
  .popup-backdrop,
  .popup-panel,
  .fade-in-up,
  .slide-in-right,
  .scale-in,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-fade-up,
  .animate-slide-in-up,
  .animate-float-in,
  .animate-float-in-slow,
  .site-preloader,
  .site-preloader *,
  .site-preloader-orb {
    animation: none !important;
    transition: none !important;
  }
}

/* Hero entrance animations (added) */
.hero-line { will-change: transform, opacity; }
@keyframes slideInFromLeft {
  from { transform: translateX(-110vw); opacity: 0; }
  to { transform: translateX(0px); opacity: 1; }
}
@keyframes slideInFromRight {
  from { transform: translateX(110vw); opacity: 0; }
  to { transform: translateX(0px); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-slide-in-left { animation: slideInFromLeft 2200ms cubic-bezier(.2,.9,.3,1) both; }
.animate-slide-in-right { animation: slideInFromRight 2200ms cubic-bezier(.2,.9,.3,1) both; }
.animate-fade-up { animation: fadeUp 1800ms cubic-bezier(.2,.9,.3,1) both; }

@keyframes slideInFromBottom {
  from { transform: translateY(110vh); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-slide-in-up { animation: slideInFromBottom 1800ms cubic-bezier(.2,.9,.3,1) both; }

@keyframes floatIn {
  from { transform: translateY(36px) scale(.99); opacity: 0; }
  60% { transform: translateY(6px) scale(1.01); opacity: 1; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.animate-float-in { animation: floatIn 1400ms cubic-bezier(.2,.9,.3,1) both; }
/* Slower variant for large hero image entrance */
.animate-float-in-slow { animation: floatIn 5000ms cubic-bezier(.2,.9,.3,1) both; }

body.is-preloading {
  overflow: hidden;
  cursor: progress;
}

body.is-preloading > :not([data-site-preloader]) {
  visibility: hidden;
}

body.is-preloading .fade-in-up,
body.is-preloading .slide-in-right,
body.is-preloading .scale-in,
body.is-preloading .animate-slide-in-left,
body.is-preloading .animate-slide-in-right,
body.is-preloading .animate-fade-up,
body.is-preloading .animate-slide-in-up,
body.is-preloading .animate-float-in,
body.is-preloading .animate-float-in-slow,
body.is-preloading .site-nav-overlay,
body.is-preloading .site-nav-panel,
body.is-preloading .catalog-card,
body.is-preloading .popup-backdrop,
body.is-preloading .popup-panel,
body.is-preloading .product-card,
body.is-preloading .product-card-img,
body.is-preloading .quick-add-panel,
body.is-preloading .wishlist-btn svg,
body.is-preloading .badge-pop,
body.is-preloading .added-flash {
  animation: none !important;
  transition: none !important;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(122, 31, 43, 0.15), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(201, 162, 39, 0.18), transparent 38%),
    linear-gradient(135deg, #fffdf8 0%, #f7efe1 42%, #efe3ce 100%);
  transition: opacity 420ms ease, transform 420ms ease;
}

.site-preloader::before,
.site-preloader::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
  animation: preloaderFloat 6s ease-in-out infinite;
}

.site-preloader::before {
  left: 10%;
  top: 14%;
  width: 8rem;
  height: 8rem;
  background: rgba(122, 31, 43, 0.08);
}

.site-preloader::after {
  right: 12%;
  bottom: 16%;
  width: 11rem;
  height: 11rem;
  background: rgba(201, 162, 39, 0.12);
  animation-delay: -2.2s;
}

.site-preloader.is-exiting {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.site-preloader-card {
  position: relative;
  width: min(92vw, 19rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.6rem 1.75rem 1.45rem;
  border: 1px solid rgba(122, 31, 43, 0.12);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(40, 26, 18, 0.12);
}

.site-preloader-mark {
  position: relative;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
}

.site-preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(122, 31, 43, 0.12), rgba(122, 31, 43, 0.96), rgba(201, 162, 39, 0.96), rgba(122, 31, 43, 0.12));
  animation: preloaderSpin 1s linear infinite;
}

.site-preloader-ring::after {
  content: '';
  position: absolute;
  inset: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffdf8 0%, #f4ead9 100%);
}

.site-preloader-sweep {
  position: absolute;
  inset: -0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 31, 43, 0.18);
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.site-preloader-core {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  color: #7a1f2b;
  text-shadow: 0 8px 18px rgba(122, 31, 43, 0.2);
}

.site-preloader-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: #2a1f1c;
}

.site-preloader-copy {
  font-size: 0.82rem;
  color: #8c7a66;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-preloader-bar {
  width: 100%;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(122, 31, 43, 0.08);
  overflow: hidden;
}

.site-preloader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(122, 31, 43, 0), rgba(122, 31, 43, 0.95), rgba(201, 162, 39, 0.95));
  animation: preloaderBar 1.4s ease-in-out infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.38; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes preloaderBar {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(240%); }
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Ensure hero CTA buttons remain visible on small screens */
[data-hero-button], main a.inline-flex {
  display: inline-flex !important;
  visibility: visible !important;
}

/* === Best Sellers card system === */

/* rating stars */
.star-rating { position: relative; display: inline-block; font-size: .85rem; line-height: 1; letter-spacing: 2px; }
.stars-bg { color: #e5dfd0; }
.stars-fg { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; color: #f0a63d; }

/* card entrance + hover */
.product-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .35s ease, border-color .35s ease;
}
.product-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  box-shadow: 0 24px 48px -18px rgba(36, 26, 22, 0.22);
  border-color: rgba(122, 31, 43, 0.18);
}

.product-card-img {
  transform-origin: 60% 100%;
}
.product-card:hover .product-card-img {
  transform: scale(1.06) rotate(-1.2deg);
}

/* quick add panel, hidden until hover/focus */
.quick-add-panel {
  transform: translateY(10px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.product-card:hover .quick-add-panel,
.product-card:focus-within .quick-add-panel {
  transform: translateY(0);
  opacity: 1;
}

/* wishlist heart */
.wishlist-btn svg { transition: transform .3s ease, fill .3s ease, color .3s ease; }
.wishlist-btn.active svg { fill: #7a1f2b; color: #7a1f2b; transform: scale(1.12); }
.wishlist-btn:active svg { transform: scale(0.85); }

.swatch-dot {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(36,26,22,0.12);
}

/* color filter swatches */
.color-filter-btn { position: relative; }
.color-filter-btn.active::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 999px;
  border: 2px solid #7a1f2b;
}

.badge-pop { animation: pop .4s cubic-bezier(.3,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.added-flash { animation: flash 1s ease; }
@keyframes flash {
  0% { background-color: #241a16; }
  30% { background-color: #16a34a; }
  100% { background-color: #241a16; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card-img, .quick-add-panel, .wishlist-btn svg, .badge-pop, .added-flash, .site-preloader, .site-preloader *, .site-preloader-orb, .site-preloader-card, .site-preloader-mark, .site-preloader-bar span {
    transition: none !important; animation: none !important; transform: none !important;
  }
  .product-card { opacity: 1; }
}
