/* ============================================================
   MARY'S MANTLE — FUTURE‑CENTURY SHOPPING EXPERIENCE
   360° viewer, glass cards, parallax hover, gold mode, luxury UI
   ============================================================ */

/* GRID LAYOUT */
.mm-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

/* PRODUCT CARD */
.mm-product-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .mm-product-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(209, 213, 219, 0.35);
}

/* GOLD MODE */
html[data-gold="on"] .mm-product-card {
  background: rgba(255, 248, 225, 0.55);
  border-color: var(--gold-3);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.15);
}

/* HOVER LIFT */
.mm-product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* PRODUCT IMAGE WRAPPER */
.mm-product-image {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.2);
}

/* IMAGE */
.mm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mm-product-card:hover .mm-product-image img {
  transform: scale(1.08);
}

/* 360° BADGE */
.mm-360-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

html[data-theme="light"] .mm-360-badge {
  background: rgba(255,255,255,0.55);
  color: #111;
}

/* GOLD MODE */
html[data-gold="on"] .mm-360-badge {
  background: rgba(251, 191, 36, 0.55);
  color: #3b2f00;
  border-color: var(--gold-3);
}

/* PRODUCT TITLE */
.mm-product-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--mm-text);
}

/* PRODUCT PRICE */
.mm-product-price {
  font-size: 16px;
  margin-top: 6px;
  color: #22c55e;
  font-weight: 600;
}

html[data-gold="on"] .mm-product-price {
  color: var(--gold-3);
}

/* ADD TO CART BUTTON */
.mm-add-cart {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mm-add-cart:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* GOLD MODE BUTTON */
html[data-gold="on"] .mm-add-cart {
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  color: #3b2f00;
}

/* ================================
   PRODUCT MODAL (360°, gallery)
================================ */
.mm-product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

/* MODAL CONTENT */
.mm-modal-content {
  width: 90%;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
}

html[data-theme="light"] .mm-modal-content {
  background: rgba(255,255,255,0.75);
  border-color: rgba(209,213,219,0.35);
}

html[data-gold="on"] .mm-modal-content {
  background: rgba(255, 248, 225, 0.75);
  border-color: var(--gold-3);
}

/* CLOSE BUTTON */
.mm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: var(--mm-text);
}

/* MODAL IMAGE / VIDEO */
.mm-modal-media {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.mm-modal-media img,
.mm-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* THUMBNAILS */
.mm-modal-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.mm-modal-thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.mm-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-modal-thumb.active {
  border-color: #0ea5e9;
}

html[data-gold="on"] .mm-modal-thumb.active {
  border-color: var(--gold-3);
}
