/* ============================================
   Dreem × WooCommerce Styles
   ============================================ */

/* === Container === */
.dreem-woo-wrap {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Archive Header === */
.dreem-woo-archive-header {
  text-align: center;
  padding: 20px 0 40px;
}
.dreem-woo-archive-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #2D2D2D;
  margin: 0 0 12px;
}
.dreem-woo-archive-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dreem-primary, #FF6B35);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* === Shop Archive Grid === */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* === Product Card === */
.woocommerce ul.products li.product {
  background: var(--dreem-white, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
  padding: 0 0 24px;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 32px rgba(255,107,53,0.14);
  transform: translateY(-4px);
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fdf8f4;
  padding: 16px;
  display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  color: #2D2D2D;
  padding: 12px 16px 4px;
  margin: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--dreem-primary, #FF6B35);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 16px 12px;
  display: block;
}

/* === Coming Soon Badge === */
.dreem-coming-soon-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: #f5f5f5;
  color: #888;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  border: 1.5px dashed #ccc;
}

/* === Coming Soon Notice (single product) === */
.dreem-shop-notice {
  background: #FFF3EC;
  border-left: 4px solid var(--dreem-primary, #FF6B35);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.95rem;
  color: #4A4A4A;
}
.dreem-shop-notice a { color: var(--dreem-primary, #FF6B35); font-weight: 700; }

/* === Single Product === */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 40px 0;
}
@media (max-width: 768px) { .woocommerce div.product { grid-template-columns: 1fr; } }

.woocommerce div.product .woocommerce-product-gallery { border-radius: 12px; overflow: hidden; }

.woocommerce div.product .product_title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #2D2D2D;
  margin-bottom: 12px;
}
.woocommerce div.product .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dreem-primary, #FF6B35);
  margin-bottom: 20px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* === Color Swatches === */
.dreem-color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}
.dreem-color-swatches__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2D2D2D;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 8px;
}
.dreem-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
}
.dreem-swatch:hover { transform: scale(1.15); }
.dreem-swatch.is-selected {
  border-color: var(--dreem-primary, #FF6B35);
  transform: scale(1.2);
}
.dreem-swatch.is-selected::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--dreem-primary, #FF6B35);
  border-radius: 50%;
  opacity: 0.4;
}
.dreem-swatch[title] { position: relative; }

/* === Variations Table (WooCommerce native) → hide, replaced by swatches === */
.woocommerce div.product .variations { display: none; }

/* === Product Card (custom loop) === */
.dreem-woo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex !important;
  flex-direction: column;
  list-style: none;
}
.dreem-woo-card:hover {
  box-shadow: 0 8px 32px rgba(255,107,53,0.14);
  transform: translateY(-4px);
}
.dreem-woo-card__img-link { display: block; }
.dreem-woo-card__img-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fdf8f4;
  padding: 20px;
  display: block;
}
.dreem-woo-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.dreem-woo-card__title { font-family: 'Playfair Display', serif; font-size: 1rem; margin: 0; }
.dreem-woo-card__title a { color: #2D2D2D; text-decoration: none; }
.dreem-woo-card__price { color: var(--dreem-primary, #FF6B35); font-weight: 700; font-size: 1rem; }
.dreem-woo-card__swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dreem-swatch--sm {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  display: inline-block;
  cursor: default;
}
.dreem-woo-card__cta {
  display: inline-block;
  margin-top: auto;
  padding: 9px 20px;
  background: var(--dreem-primary, #FF6B35);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.dreem-woo-card__cta:hover { background: #e5551f; }

/* === WooCommerce Notices === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px !important;
  border-top-color: var(--dreem-primary, #FF6B35) !important;
  padding: 16px 20px !important;
  font-size: 0.95rem;
}

/* === Breadcrumbs === */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 32px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--dreem-primary, #FF6B35); }

/* ============================================================
   Product Video
   ============================================================ */
.dreem-product-video {
  margin-top: 16px;
}
.dreem-product-video__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2D2D2D;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  justify-content: center;
}
.dreem-product-video__toggle:hover {
  background: var(--dreem-primary, #FF6B35);
  transform: translateY(-1px);
}
.dreem-product-video__toggle[aria-expanded="true"] {
  background: var(--dreem-primary, #FF6B35);
  border-radius: 12px 12px 0 0;
}
.dreem-product-video__toggle svg { flex-shrink: 0; }

.dreem-product-video__embed {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.dreem-product-video__embed iframe,
.dreem-product-video__embed video {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0 0 12px 12px;
}

/* Play badge on product cards */
.dreem-card-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--dreem-primary, #FF6B35);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}
.woocommerce ul.products li.product { position: relative; }

/* === Product Tabs === */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--dreem-primary, #FF6B35);
  border-bottom-color: var(--dreem-primary, #FF6B35);
}
