/* ============================================
   ESENCIA SHOP — Product Grid & Cart Drawer
   ============================================ */

/* ============================================
   CART TOGGLE (Header)
   ============================================ */
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-left: -4px;
  margin-right: 4px;
  order: 3;
}
.cart-toggle:hover {
  background: rgba(107,45,139,0.06);
}
.cart-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text-body);
  transition: color 0.3s var(--ease);
}
.cart-toggle:hover svg {
  color: var(--plum);
}
.cart-toggle__count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.35s var(--ease-spring);
}
.cart-toggle__count.visible {
  display: flex;
  transform: scale(1);
}

/* ============================================
   SHOP TOOLBAR — Filters & Sort
   ============================================ */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 52px);
  flex-wrap: wrap;
}

.shop-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-filter {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.shop-filter:hover {
  border-color: var(--plum-soft);
  color: var(--plum);
  background: rgba(107,45,139,0.04);
}
.shop-filter.active {
  background: var(--aubergine);
  color: var(--cream);
  border-color: var(--aubergine);
}
.shop-filter.active:hover {
  background: var(--plum);
  border-color: var(--plum);
}

/* Sort */
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-sort__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.shop-sort__select-wrap {
  position: relative;
}
.shop-sort__select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 38px 10px 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.shop-sort__select:hover,
.shop-sort__select:focus {
  border-color: var(--plum-soft);
  box-shadow: 0 0 0 4px rgba(107,45,139,0.06);
}
.shop-sort__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */

.featured-section {
  padding: 60px 0 20px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}

.featured-header {
  text-align: center;
  margin-bottom: 40px;
}

.featured-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.featured-title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--aubergine);
  margin: 0;
}

.featured-line {
  width: 60px;
  height: 3px;
  background: var(--sage);
  margin: 16px auto 0;
  border-radius: 2px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .featured-section {
    padding: 40px 0 10px;
  }
  .featured-title {
    font-size: 26px;
  }
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.6s var(--ease-out) forwards;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(45,27,61,0.1);
  border-color: var(--sage-pale);
}

/* Image */
.product-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--cream);
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card__img img {
  transform: scale(1.08);
}

/* Featured ribbon */
.product-card__featured {
  position: absolute;
  top: 16px;
  left: 0;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px 5px 12px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(196,162,101,0.3);
  z-index: 2;
}

/* Out of stock overlay */
.product-card__out-of-stock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45,27,61,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.product-card__out-of-stock span {
  background: var(--aubergine);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 8px;
}

/* Card body */
.product-card__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category badge */
.product-card__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}
.product-card__category--skincare {
  background: rgba(107,45,139,0.08);
  color: #6B2D8B;
}
.product-card__category--giftcard {
  background: rgba(196,162,101,0.12);
  color: #C4A265;
}
.product-card__category--bodycare {
  background: rgba(139,168,136,0.15);
  color: #6E8E6B;
}
.product-card__category--other {
  background: rgba(74,69,82,0.08);
  color: #4A4552;
}

/* Product name */
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Product description */
.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price */
.product-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 16px;
}

/* Add to cart button */
.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--aubergine);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
}
.product-card__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.product-card__btn:hover {
  background: var(--plum);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,27,61,0.2);
}
.product-card__btn:hover svg {
  transform: scale(1.15);
}
.product-card__btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}
.product-card__btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Added-to-cart confirmation state */
.product-card__btn--added {
  background: var(--sage-dark) !important;
  color: #fff !important;
}

/* ============================================
   LOADING SKELETONS
   ============================================ */
.product-grid--loading {
  gap: 24px;
}
.product-skeleton {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}
.product-skeleton__img {
  height: 240px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.product-skeleton__body {
  padding: 22px;
}
.product-skeleton__badge {
  width: 70px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  animation-delay: 0.1s;
  margin-bottom: 12px;
}
.product-skeleton__title {
  width: 80%;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  animation-delay: 0.2s;
  margin-bottom: 16px;
}
.product-skeleton__price {
  width: 50%;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  animation-delay: 0.3s;
  margin-bottom: 18px;
}
.product-skeleton__btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  animation-delay: 0.4s;
}

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

/* ============================================
   EMPTY / ERROR STATES
   ============================================ */
.shop-empty,
.shop-error {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 20px;
}
.shop-empty__icon,
.shop-error__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.shop-empty__icon svg,
.shop-error__icon svg {
  width: 36px;
  height: 36px;
  color: var(--sage-dark);
}
.shop-error__icon {
  background: rgba(107,45,139,0.08);
}
.shop-error__icon svg {
  color: var(--plum-soft);
}
.shop-empty h3,
.shop-error h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.shop-empty p,
.shop-error p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ============================================
   CART OVERLAY
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,27,61,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--warm-white);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -16px 0 60px rgba(45,27,61,0.15);
}
.cart-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
}
.cart-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.cart-drawer__close svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.cart-drawer__close:hover {
  background: rgba(107,45,139,0.06);
}
.cart-drawer__close:hover svg {
  color: var(--plum);
}

/* Drawer body */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  text-align: center;
  min-height: 300px;
}
.cart-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cart-empty__icon svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}
.cart-empty__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 24px;
}
.cart-empty__btn {
  font-size: 0.82rem;
  padding: 12px 28px;
}

/* ============================================
   CART ITEMS
   ============================================ */
.cart-items {
  padding: 8px 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  animation: cartItemIn 0.35s var(--ease-out) forwards;
}

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

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 10px;
}
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cart-item__qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.2s var(--ease);
}
.cart-item__qty-btn:hover {
  background: var(--cream);
  color: var(--plum);
}
.cart-item__qty-val {
  width: 32px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  line-height: 32px;
}
.cart-item__remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-left: auto;
}
.cart-item__remove svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.cart-item__remove:hover {
  background: rgba(220,60,60,0.08);
}
.cart-item__remove:hover svg {
  color: #c0392b;
}

/* ============================================
   CART FOOTER — Totals & Checkout
   ============================================ */
.cart-drawer__footer {
  flex-shrink: 0;
  padding: 24px 28px;
  border-top: 1px solid var(--border-light);
  background: var(--warm-white);
}
.cart-totals {
  margin-bottom: 20px;
}
.cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-body);
}
.cart-totals__row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}
.cart-totals__row--total {
  border-top: 1.5px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1rem;
  font-weight: 700;
}
.cart-totals__row--total span:first-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-dark);
}
.cart-totals__row--total span:last-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--plum);
  font-weight: 600;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
}
.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-continue {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 0 4px;
  transition: color 0.3s var(--ease);
  letter-spacing: 0.03em;
}
.cart-continue:hover {
  color: var(--sage-dark);
}

/* Free shipping indicator */
.cart-shipping--free {
  color: var(--sage-dark) !important;
  font-weight: 700 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet landscape */
@media (max-width: 1200px) {
  .product-grid,
  .product-grid--loading {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .product-grid,
  .product-grid--loading {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .product-card__img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .cart-toggle {
    margin-right: 0;
    order: 2;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .shop-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filter {
    flex-shrink: 0;
  }
  .shop-sort {
    width: 100%;
    justify-content: space-between;
  }
  .shop-sort__select {
    flex: 1;
  }

  .product-grid,
  .product-grid--loading {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-card__img {
    height: 180px;
  }
  .product-card__body {
    padding: 16px 16px 18px;
  }
  .product-card__name {
    font-size: 0.95rem;
  }
  .product-card__price {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  .product-card__desc {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .product-grid,
  .product-grid--loading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card__img {
    height: 220px;
  }
  .product-card__body {
    padding: 18px 18px 20px;
  }
  .product-card__desc {
    display: -webkit-box;
  }

  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .product-modal__grid {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .product-modal__image {
    max-height: 300px;
  }

  .product-modal {
    margin: 16px;
    max-height: 95vh;
    border-radius: 20px;
  }

  .product-modal__actions {
    flex-direction: column;
  }

  .product-modal__add {
    width: 100%;
  }
}


/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(45, 27, 61, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--warm-white);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(45, 27, 61, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease);
}

.product-modal-overlay.open .product-modal {
  transform: scale(1) translateY(0);
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.3s var(--ease);
}

.product-modal__close:hover {
  background: var(--aubergine);
  color: white;
  border-color: var(--aubergine);
}

.product-modal__close svg {
  width: 20px;
  height: 20px;
}

.product-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal__image {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.product-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.product-modal__details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-modal__category {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-flex;
  width: fit-content;
}

.product-modal__category--skincare {
  background: rgba(107, 45, 139, 0.1);
  color: #6B2D8B;
}

.product-modal__category--giftcard {
  background: rgba(196, 162, 101, 0.12);
  color: #C4A265;
}

.product-modal__category--bodycare {
  background: rgba(139, 168, 136, 0.12);
  color: #6E8E6B;
}

.product-modal__category--other {
  background: rgba(74, 69, 82, 0.08);
  color: #4A4552;
}

.product-modal__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 4px;
}

.product-modal__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.product-modal__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-top: 8px;
  flex: 1;
}

.product-modal__stock {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.product-modal__stock--in-stock {
  color: var(--sage-dark);
}

.product-modal__stock--out {
  color: #C04848;
}

.product-modal__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.product-modal__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.product-modal__qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-body);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}

.product-modal__qty-btn:hover {
  background: var(--cream);
  color: var(--text-dark);
}

.product-modal__qty-val {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.product-modal__add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  height: 44px;
}

.product-modal__add svg {
  width: 20px;
  height: 20px;
}

.product-modal__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-modal__add--added {
  background: var(--sage) !important;
}

/* Make product cards clickable */
.product-card {
  cursor: pointer;
}

/* ============================================
   CHECKOUT SUCCESS
   ============================================ */
.checkout-success {
  padding: clamp(60px, 8vw, 100px) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.success-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  box-shadow: 0 8px 60px rgba(45, 27, 61, 0.08), 0 2px 12px rgba(45, 27, 61, 0.04);
  overflow: hidden;
  animation: successCardIn 0.7s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes successCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.success-card__header {
  text-align: center;
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(139, 168, 136, 0.06) 0%, transparent 100%);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.success-icon__circle {
  width: 64px;
  height: 64px;
}

/* Animated checkmark */
@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes circle-fill {
  to { fill-opacity: 0.12; }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.success-icon__circle-bg {
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  fill: var(--sage);
  fill-opacity: 0;
  animation: circle-draw 0.6s ease forwards, circle-fill 0.3s ease 0.6s forwards;
}

.success-icon__check {
  stroke: var(--sage);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: check-draw 0.4s ease 0.5s forwards;
}

.success-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.success-card__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Body */
.success-card__body {
  padding: 36px 40px;
}

/* Loading state */
.success-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.success-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.success-loading p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Customer info */
.success-customer {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.success-customer__greeting {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.success-customer__order-id {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Gift cards section */
.success-gift-cards__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.success-gift-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* Gift card display */
.gift-card-display {
  background: linear-gradient(145deg, var(--aubergine) 0%, #6B2D8B 60%, #7E3FA2 100%);
  border-radius: 18px;
  padding: 28px 26px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(45, 27, 61, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gift-card-display:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 27, 61, 0.35);
}

/* Sage accent line */
.gift-card-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), rgba(139, 168, 136, 0.4));
}

/* Decorative pattern overlay */
.gift-card-display::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.gift-card-display__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gift-card-display__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.gift-card-display__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.gift-card-display__amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gift-card-display__code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

.gift-card-display__expiry {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

/* Order summary */
.success-summary {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.success-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--text-body);
}

.success-summary__total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--plum);
}

/* Email notice */
.success-email-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(139, 168, 136, 0.08);
  border: 1px solid rgba(139, 168, 136, 0.18);
  border-radius: 14px;
  border-left: 3px solid var(--sage);
}

.success-email-notice svg {
  width: 22px;
  height: 22px;
  color: var(--sage-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.success-email-notice strong {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}

.success-email-notice p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Error state */
.success-error {
  text-align: center;
  padding: 32px 0;
}

.success-error p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.success-error a {
  color: var(--plum);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-error a:hover {
  color: var(--sage-dark);
}

/* Footer */
.success-card__footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 28px 40px 36px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(0deg, rgba(139, 168, 136, 0.04) 0%, transparent 100%);
}

.success-card__footer .btn {
  min-width: 160px;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.88rem;
  padding: 14px 28px;
}

/* Outline button */
.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--aubergine);
  border: 1.5px solid var(--aubergine);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-decoration: none;
}

.btn--outline:hover {
  background: var(--aubergine);
  color: var(--cream);
  box-shadow: 0 6px 20px rgba(45, 27, 61, 0.2);
  transform: translateY(-1px);
}

/* ============================================
   CHECKOUT SUCCESS — Responsive
   ============================================ */
@media (max-width: 768px) {
  .success-card__header {
    padding: 36px 24px 24px;
  }

  .success-card__body {
    padding: 28px 24px;
  }

  .success-card__footer {
    padding: 24px 24px 28px;
    flex-direction: column;
  }

  .success-card__footer .btn {
    width: 100%;
    min-width: unset;
  }

  .success-gift-cards__grid {
    grid-template-columns: 1fr;
  }

  .gift-card-display {
    aspect-ratio: 1.7 / 1;
  }
}

@media (max-width: 480px) {
  .checkout-success {
    padding: 40px 0;
  }

  .success-card {
    border-radius: 20px;
  }

  .success-card__header {
    padding: 28px 20px 20px;
  }

  .success-card__body {
    padding: 24px 20px;
  }

  .success-card__footer {
    padding: 20px 20px 24px;
  }

  .success-email-notice {
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
  }
}

/* ============================================================
   Premier Deals banner — admin-controlled monthly specials
   1 active = centered half-width
   2 active = side-by-side half-half
   ============================================================ */
.premier-deals-section {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(120, 60, 100, 0.04) 100%);
}

.premier-deals__header {
  text-align: center;
  margin-bottom: 36px;
}

.premier-deals__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 12px;
}

.premier-deals__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--aubergine);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.premier-deals__line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--plum), var(--gold));
  margin: 14px auto 0;
  border-radius: 2px;
}

.premier-deals__grid {
  display: grid;
  gap: 24px;
}

.premier-deals__grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 580px;
  margin: 0 auto;
}

.premier-deals__grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premier-deal {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(72, 35, 60, 0.08);
  border: 1px solid rgba(120, 60, 100, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.premier-deal:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(72, 35, 60, 0.14);
}

.premier-deal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  overflow: hidden;
}

.premier-deal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premier-deal:hover .premier-deal__media img { transform: scale(1.04); }

.premier-deal__media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), rgba(180, 140, 50, 0.15));
}

.premier-deal__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--plum), var(--aubergine));
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(72, 35, 60, 0.25);
}

.premier-deal__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premier-deal__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.55rem;
  color: var(--aubergine);
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

.premier-deal__desc {
  font-size: 0.92rem;
  color: var(--text-muted, #6b6470);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premier-deal__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
}

.premier-deal__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--plum);
}

.premier-deal__expires {
  font-size: 0.78rem;
  color: var(--text-muted, #6b6470);
  font-style: italic;
}

.premier-deal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--aubergine);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 6px;
}

.premier-deal__btn:hover {
  background: var(--plum);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(72, 35, 60, 0.2);
}

.premier-deal__btn svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .premier-deals__grid[data-count="2"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .premier-deal__title  { font-size: 1.35rem; }
  .premier-deal__price  { font-size: 1.25rem; }
  .premier-deal__body   { padding: 20px 20px 22px; }
}
