/* ==========================================================================
   EPIMAR CREACIONES - WOOCOMMERCE PREMIUM STYLESHEET (PRINTFUL-GRADE)
   Catalog, Single Product Configurator, Tiered Scales, Swatches & WhatsApp
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SINGLE PRODUCT PAGE LAYOUT (2 COLUMNS)
   -------------------------------------------------------------------------- */
.ep-single-product-page {
  padding: 30px 0 80px;
  background-color: #f8fafc;
}

/* Breadcrumbs */
.ep-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ep-gray-500);
  margin-bottom: 28px;
}

.ep-breadcrumbs a {
  color: var(--ep-gray-700);
  font-weight: 500;
  text-decoration: none;
}

.ep-breadcrumbs a:hover {
  color: var(--ep-primary-light);
}

.ep-crumb-sep {
  color: var(--ep-gray-300);
}

.ep-crumb-current {
  color: var(--ep-gray-900);
  font-weight: 600;
}

/* Grid Layout */
.ep-product-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .ep-product-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   2. COLUMN 1: GALLERY & MEDIA (STICKY)
   -------------------------------------------------------------------------- */
.ep-sticky-gallery {
  position: sticky;
  top: 100px;
}

.ep-main-gallery-card {
  background: var(--ep-white);
  border: 1px solid var(--ep-gray-200);
  border-radius: var(--ep-radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  position: relative;
  transition: var(--ep-transition);
}

.ep-main-gallery-card:hover {
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.14);
}

.ep-gallery-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.ep-badge-dtf {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--ep-radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ep-badge-stock {
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--ep-radius-full);
}

.ep-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.4s ease;
}

.ep-main-gallery-card:hover .ep-main-img-wrap img {
  transform: scale(1.05);
}

.ep-fallback-product-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--ep-gray-500);
}

.ep-art-icon {
  font-size: 5rem;
}

.ep-art-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ep-gray-700);
}

/* Thumbs Strip */
.ep-thumbs-strip {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ep-thumb-btn {
  width: 70px;
  height: 70px;
  border-radius: var(--ep-radius-md);
  border: 2px solid transparent;
  background: var(--ep-white);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--ep-shadow-sm);
  transition: var(--ep-transition);
}

.ep-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ep-thumb-btn.active,
.ep-thumb-btn:hover {
  border-color: var(--ep-secondary);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

/* Trust Highlight Box */
.ep-gallery-trust-box {
  background: var(--ep-white);
  border: 1px solid var(--ep-gray-200);
  border-radius: var(--ep-radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ep-trust-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.ep-trust-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ep-gray-900);
  margin-bottom: 2px;
}

.ep-trust-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--ep-gray-500);
}


/* --------------------------------------------------------------------------
   3. COLUMN 2: SUMMARY & CONFIGURATOR
   -------------------------------------------------------------------------- */
.ep-product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ep-cat-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ep-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--ep-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ep-rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.ep-rating-score {
  font-weight: 700;
  color: var(--ep-gray-900);
}

.ep-reviews-count {
  color: var(--ep-gray-500);
}

.ep-product-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ep-gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* Price Box */
.ep-price-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--ep-radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.ep-price-primary {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ep-gray-900);
}

.ep-currency-symbol {
  font-size: 1.4rem;
  font-weight: 700;
}

.ep-price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
}

.ep-price-unit {
  font-size: 0.85rem;
  color: var(--ep-gray-500);
  font-weight: 600;
}

.ep-price-secondary {
  font-size: 1rem;
  font-weight: 700;
  color: #0284c7;
}

.ep-bcv-note {
  font-size: 0.8rem;
  color: var(--ep-gray-500);
  font-weight: normal;
}

/* Tiered Volume Scale Card (Printful Style) */
.ep-volume-scale-card {
  background: var(--ep-white);
  border: 1px solid var(--ep-gray-200);
  border-radius: var(--ep-radius-lg);
  padding: 18px;
  margin-bottom: 28px;
}

.ep-scale-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ep-gray-900);
  margin-bottom: 12px;
}

.ep-scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

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

.ep-scale-item {
  background: var(--ep-gray-100);
  border: 1px solid var(--ep-gray-200);
  border-radius: var(--ep-radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--ep-transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep-scale-item:hover,
.ep-scale-item.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--ep-secondary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.ep-scale-qty {
  font-size: 0.76rem;
  color: var(--ep-gray-500);
  font-weight: 600;
}

.ep-scale-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ep-gray-900);
}

.ep-scale-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ep-gray-500);
  text-transform: uppercase;
}

.ep-scale-tag.highlight {
  color: #10b981;
}

.ep-scale-tag.gold {
  color: #d97706;
}


/* --------------------------------------------------------------------------
   4. INTERACTIVE SELECTORS (SWATCHES & PILLS)
   -------------------------------------------------------------------------- */
.ep-option-section {
  margin-bottom: 20px;
}

.ep-option-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ep-gray-900);
}

.ep-option-label span {
  color: var(--ep-secondary);
  font-weight: 700;
}

/* Color Swatches */
.ep-color-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ep-color-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--ep-transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ep-color-swatch:hover,
.ep-color-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--ep-white), 0 0 0 5px var(--ep-secondary);
}

/* Size & Placement Pills */
.ep-size-pills,
.ep-placement-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ep-size-pill,
.ep-place-pill {
  padding: 9px 18px;
  background: var(--ep-white);
  border: 1px solid var(--ep-gray-200);
  border-radius: var(--ep-radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ep-gray-700);
  cursor: pointer;
  transition: var(--ep-transition);
}

.ep-size-pill:hover,
.ep-size-pill.active,
.ep-place-pill:hover,
.ep-place-pill.active {
  background: var(--ep-gray-900);
  color: var(--ep-white);
  border-color: var(--ep-gray-900);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Design Dropzone */
.ep-dropzone-box {
  display: block;
  border: 2px dashed var(--ep-gray-300);
  border-radius: var(--ep-radius-lg);
  padding: 20px;
  text-align: center;
  background: #fbfcfe;
  cursor: pointer;
  transition: var(--ep-transition);
}

.ep-dropzone-box:hover {
  border-color: var(--ep-secondary);
  background: rgba(6, 182, 212, 0.03);
}

.ep-dropzone-box input[type="file"] {
  display: none;
}

.ep-dropzone-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.ep-dropzone-text {
  font-size: 0.9rem;
  color: var(--ep-gray-700);
}

.ep-dropzone-hint {
  font-size: 0.76rem;
  color: var(--ep-gray-500);
  margin-top: 4px;
  display: block;
}


/* --------------------------------------------------------------------------
   5. QUANTITY & CTAs GROUP
   -------------------------------------------------------------------------- */
.ep-purchase-action-group {
  margin: 32px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-qty-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ep-qty-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ep-gray-900);
}

.ep-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--ep-white);
  border: 1px solid var(--ep-gray-300);
  border-radius: var(--ep-radius-md);
  overflow: hidden;
  box-shadow: var(--ep-shadow-sm);
}

.ep-qty-btn {
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ep-gray-700);
  cursor: pointer;
  transition: var(--ep-transition);
}

.ep-qty-btn:hover {
  background: var(--ep-gray-200);
  color: var(--ep-gray-900);
}

.ep-qty-stepper input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ep-gray-900);
  background: transparent;
}

.ep-cta-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-btn-glow {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: var(--ep-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  background: #25d366;
  color: #fff;
  transition: var(--ep-transition);
}

.ep-btn-glow:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.ep-btn-cart {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--ep-radius-lg);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--ep-transition);
}

.ep-btn-cart:hover {
  background: #1e293b;
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   6. ACCORDION / SPECS TABS (PRINTFUL STYLE)
   -------------------------------------------------------------------------- */
.ep-product-accordions {
  border-top: 1px solid var(--ep-gray-200);
  margin-top: 24px;
}

.ep-accordion-item {
  border-bottom: 1px solid var(--ep-gray-200);
}

.ep-accordion-header {
  padding: 16px 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ep-gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.ep-accordion-header::-webkit-details-marker {
  display: none;
}

.ep-acc-icon {
  font-size: 0.75rem;
  color: var(--ep-gray-500);
  transition: transform 0.2s ease;
}

.ep-accordion-item[open] .ep-acc-icon {
  transform: rotate(180deg);
}

.ep-accordion-body {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ep-gray-600);
  line-height: 1.6;
}

.ep-specs-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.ep-specs-list li {
  margin-bottom: 8px;
}

.ep-size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.85rem;
}

.ep-size-table th,
.ep-size-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ep-gray-200);
}

.ep-size-table th {
  background: #f1f5f9;
  color: var(--ep-gray-900);
  font-weight: 700;
}
