html, body { height: 100%; }
body { margin: 0; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.filled-icon {
  font-variation-settings: 'FILL' 1;
}

.text-wine {
  color: #800020;
}

.group:hover .group-hover-wine {
  color: #800020;
}

.peer:checked ~ .custom-radio-bg {
  background-color: #800020;
  border-color: #800020;
  color: white;
}

.peer:checked ~ .custom-radio-ring {
  box-shadow: 0 0 0 2px #F9F8F6, 0 0 0 4px #800020;
}

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

.product-card-desc {
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(44, 44, 44, 0.78);
  margin-top: 0.8rem;
}

.seasonal-cta {
  background-image:
    linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(249, 248, 246, 0.0) 55%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35));
  background-size: cover;
  background-position: center;
}

@keyframes promo-ribbon-shine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  10% { opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translateX(140%) skewX(-18deg); opacity: 0; }
}

.promo-ribbon-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 46%, rgba(255,255,255,0) 70%);
  mix-blend-mode: screen;
  animation: promo-ribbon-shine 2.6s ease-in-out infinite;
}

.promo-card-desc-slot {
  min-height: calc(1.45em * 2 + 0.8rem);
}

@keyframes tag-badge-shine {
  0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
}

@keyframes tag-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes tag-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { box-shadow: 0 0 0 6px rgba(128, 0, 32, 0.12); }
}

@keyframes tag-badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.tag-badge {
  position: relative;
  overflow: hidden;
}

.tag-badge--anim-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.30) 46%, rgba(255,255,255,0) 70%);
  mix-blend-mode: screen;
  animation: tag-badge-shine 2.4s ease-in-out infinite;
}

.tag-badge--anim-pulse {
  transform-origin: center;
  animation: tag-badge-pulse 1.6s ease-in-out infinite;
}

.tag-badge--anim-glow {
  animation: tag-badge-glow 1.9s ease-in-out infinite;
}

.tag-badge--anim-bounce {
  animation: tag-badge-bounce 1.1s ease-in-out infinite;
}

.tag-badge--theme-wine {
  background-color: rgba(128, 0, 32, 0.16) !important;
  border-color: rgba(128, 0, 32, 0.32) !important;
  color: #800020 !important;
}

.tag-badge--theme-primary {
  background-color: rgba(128, 0, 32, 0.16) !important;
  border-color: rgba(128, 0, 32, 0.32) !important;
  color: #800020 !important;
}

.tag-badge--theme-emerald {
  background-color: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.34) !important;
  color: rgb(6, 95, 70) !important;
}

.tag-badge--theme-amber {
  background-color: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.36) !important;
  color: rgb(146, 64, 14) !important;
}

.tag-badge--theme-rose {
  background-color: rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(244, 63, 94, 0.32) !important;
  color: rgb(159, 18, 57) !important;
}

.tag-badge--theme-slate {
  background-color: rgba(100, 116, 139, 0.16) !important;
  border-color: rgba(100, 116, 139, 0.32) !important;
  color: rgb(51, 65, 85) !important;
}

@keyframes tl-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.tl-skeleton {
  background: linear-gradient(90deg, rgba(234, 232, 228, 0.7) 25%, rgba(255, 255, 255, 0.9) 37%, rgba(234, 232, 228, 0.7) 63%);
  background-size: 400% 100%;
  animation: tl-shimmer 1.2s ease-in-out infinite;
}

.tl-img-bg {
  --tl-img-filter: none;
  background-color: #F2E6DA;
  background-image: none;
}

.tl-img-bg img,
.tl-img-bg [style*="background-image"],
.tl-img-bg .bg-cover {
  filter: var(--tl-img-filter);
  opacity: 1;
}

#productSuggestionsGrid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#productSuggestionsGrid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 767px) {
  #productSuggestionsGrid {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #productSuggestionsGrid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

#productDetail[data-loading="1"] #productMainImage {
  background-image: none !important;
}

#productDetail[data-loading="1"] #productMainImageWrap {
  overflow: hidden;
}

#productDetail[data-loading="1"] #productMainImageWrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(234, 232, 228, 0.7) 25%, rgba(255, 255, 255, 0.9) 37%, rgba(234, 232, 228, 0.7) 63%);
  background-size: 400% 100%;
  animation: tl-shimmer 1.2s ease-in-out infinite;
}

#productDetail[data-loading="1"] #productTitle,
#productDetail[data-loading="1"] #productBreadcrumb {
  color: transparent !important;
  background: linear-gradient(90deg, rgba(234, 232, 228, 0.7) 25%, rgba(255, 255, 255, 0.9) 37%, rgba(234, 232, 228, 0.7) 63%);
  background-size: 400% 100%;
  animation: tl-shimmer 1.2s ease-in-out infinite;
  border-radius: 0.75rem;
}

#productDetail[data-loading="1"] #productTitle { min-height: 2.6rem; }

#productDetail[data-loading="1"] #productBreadcrumb {
  display: inline-block;
  min-width: 220px;
}

#productDetail[data-loading="1"] #productDesc {
  color: transparent !important;
  border-radius: 0.75rem;
  min-height: 5.2rem;
  background: linear-gradient(90deg, rgba(234, 232, 228, 0.7) 25%, rgba(255, 255, 255, 0.9) 37%, rgba(234, 232, 228, 0.7) 63%);
  background-size: 400% 100%;
  animation: tl-shimmer 1.2s ease-in-out infinite;
}

#productDetail[data-loading="1"] #productPriceRow {
  min-height: 2.75rem;
}

#productDetail[data-loading="1"] #productPriceRow > * {
  color: transparent !important;
}

#productDetail[data-loading="1"] #productPriceRow::before {
  content: '';
  display: block;
  height: 2.25rem;
  width: 70%;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(234, 232, 228, 0.7) 25%, rgba(255, 255, 255, 0.9) 37%, rgba(234, 232, 228, 0.7) 63%);
  background-size: 400% 100%;
  animation: tl-shimmer 1.2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .product-card-desc {
    font-size: 1.2rem;
  }
}

/* Widen layout even if HTML still uses Tailwind max-w-6xl */
header > div.max-w-6xl,
main.max-w-6xl,
footer > div.max-w-6xl {
  max-width: 1536px !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

/* Fallback: widen even if the max-w class changes or is missing */
body > header > div,
body > main,
body > footer > div {
  max-width: 1536px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

html.js [data-site-logo-fallback] {
  display: none;
}

html.js.no-logo [data-site-logo-fallback] {
  display: inline;
}

.cart-summary-fixed {
  right: max(1.5rem, calc((100vw - 1536px) / 2 + 2.5rem));
}

@media (min-width: 1024px) {
  .cart-grid-fallback {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 2.5rem !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 640px) {
  header > div.max-w-6xl,
  main.max-w-6xl,
  footer > div.max-w-6xl {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  body > header > div,
  body > main,
  body > footer > div {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
