/* ============================================================
   ETSY-STYLE PRODUCT PAGE
   File: assets/css/etsy-product.css
   ============================================================ */

/* ─── Reset some theme defaults for this template ─── */
.full-width-content .site-main {
  padding-top: 1.5rem;
}

.full-width-content .entry-header {
  display: none; /* We render the title in the right column */
}

.full-width-content .entry-content {
  max-width: 1200px;
  margin: 0 auto;
}

.full-width-content .entry-footer {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Breadcrumb ─── */
.ep-breadcrumb {
  font-size: 1.4rem;
  color: #666;
  padding: 2.5rem 0 0;
  max-width: 1200px;
  margin: 0 auto;
}

.ep-breadcrumb a {
  color: #333;
  text-decoration: underline;
}

.ep-breadcrumb a:hover {
  color: #000;
}

.ep-breadcrumb__sep {
  margin: 0 0.5rem;
  color: #999;
}

.ep-breadcrumb__current {
  color: #999;
}

/* ═══════════════════════════════════════════════════
   MAIN PRODUCT LAYOUT — two columns
   ═══════════════════════════════════════════════════ */
.ep-product {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 1.5rem auto 4rem;
}

@media (min-width: 960px) {
  .ep-product {
    flex-direction: row;
    gap: 4rem;
  }
}

/* ─── LEFT COLUMN: Gallery ─── */
.ep-gallery {
  flex: 1 1 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .ep-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}

/* Thumbnail strip — vertical on desktop, horizontal on mobile */
.ep-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.4rem;
}

@media (min-width: 960px) {
  .ep-gallery__thumbs {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 600px;
    width: 80px;
    flex-shrink: 0;
    order: -1;
    padding-bottom: 0;
    padding-right: 0.4rem;
  }
}

.ep-gallery__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color 0.15s ease;
}

@media (min-width: 960px) {
  .ep-gallery__thumb {
    width: 72px;
    height: 72px;
  }
}

.ep-gallery__thumb:hover {
  border-color: #999;
}

.ep-gallery__thumb.is-active {
  border-color: #222;
}

.ep-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main image viewport */
.ep-gallery__main {
  position: relative;
  flex: 1 1 auto;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

@media (min-width: 960px) {
  .ep-gallery__main {
    /* Take remaining width after thumbnails */
    flex: 1 1 0;
    min-width: 0;
  }
}


.ep-gallery__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*
.ep-gallery__viewport {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-gallery__viewport .ep-gallery__image {
  position: relative;
  width: 100%;
  height: auto;
}

.ep-gallery__viewport .ep-gallery__image:not(.is-active) {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: contain;
}
*/

.ep-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ep-gallery__image.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation arrows */
.ep-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #ddd;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0;
}

.ep-gallery__nav:hover,
.ep-gallery__nav:focus {
  color: #333;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ep-gallery__nav--prev {
  left: 12px;
}

.ep-gallery__nav--next {
  right: 12px;
}

.ep-gallery__nav span {
  display: inline-block;
  transform: translateY(-2px);
}

/* ─── Badges ─── */
.ep-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
}

@media (min-width: 960px) {
  .ep-badges {
    /* Full width below the gallery row */
    width: 100%;
  }
}

.ep-badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid #222;
  background: #fff;
  color: #222;
  white-space: nowrap;
}

.ep-badge:first-child {
  background: #222;
  color: #fff;
}

.ep-badge:nth-child(2) {
  background: #2a5a3a;
  color: #fff;
  border-color: #2a5a3a;
}

.ep-badge:nth-child(3) {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

/* ═══════════════════════════════════════════════════
   RIGHT COLUMN: Product Info
   ═══════════════════════════════════════════════════ */
.ep-info {
  flex: 0 0 360px;
  max-width: 100%;
}

@media (max-width: 959px) {
  .ep-info {
    flex: 1 1 auto;
  }
}

/* Price */
.ep-info__price {
  font-size: 3.2rem;
  font-weight: 700;
  color: #222;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

/* Title */
.ep-info__title {
  font-size: 2rem !important;
  font-weight: 400 !important;
  color: #333;
  line-height: 1.4;
  margin: 0 0 0.6rem !important;
  text-align: left !important;
  padding: 0;
}

/* Buy / Cart button area */
.ep-info__buy {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.ep-cart-btn,
.ep-download-btn {
  text-align: center;
}

/* Style the eStore add-to-cart button to look like Etsy */
.ep-cart-btn .eStore_button_wrapper,
.ep-cart-btn .shopping_cart {
  display: block;
}

.ep-cart-btn input[type="image"],
.ep-cart-btn input[type="submit"],
.ep-download-btn input[type="image"],
.ep-download-btn input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 1.4rem 2rem;
  font-size: 1.7rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

/* If the eStore button is an image, make it fit nicely */
.ep-cart-btn input[type="image"] {
  height: auto;
  object-fit: contain;
}

/* Fallback styled button for text-based cart buttons */
.ep-cart-btn .eStore_button_wrapper input[type="submit"] {
  background: #222;
  color: #fff;
  letter-spacing: 0.02em;
}

.ep-cart-btn .eStore_button_wrapper input[type="submit"]:hover {
  background: #444;
}

/* ─── Accordion sections ─── */
.ep-accordion {
  border-top: 1px solid #e0e0e0;
}

.ep-accordion:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.ep-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.6rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  text-align: left;
}

.ep-accordion__trigger:hover,
.ep-accordion__trigger:focus {
  color: #1f6095;
  background: none;
  outline: none;
}

.ep-accordion__icon {
  font-size: 1.2rem;
  color: #666;
  transition: transform 0.2s ease;
}

.ep-accordion__panel {
  display: none;
  padding: 0 0 1.6rem;
}

.ep-accordion__panel.is-open {
  display: block;
}

/* Delivery list */
.ep-delivery-list {
  list-style: disc;
  padding-left: 2rem;
  margin: 0;
}

.ep-delivery-list li {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.5;
  padding: 0.3rem 0;
}

/* Details table */
.ep-details-table {
  width: 100%;
  border-collapse: collapse;
}

.ep-details-table td {
  padding: 0.6rem 0;
  font-size: 1.5rem;
  color: #444;
  border: none;
  vertical-align: top;
}

.ep-details-table__label {
  font-weight: 600;
  color: #222;
  width: 120px;
}

/* Confidence list */
.ep-confidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-confidence-list li {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.5;
  padding: 0.5rem 0;
  padding-left: 2.4rem;
  position: relative;
}

.ep-confidence-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a5a3a;
  font-weight: 700;
  font-size: 1.4rem;
}

/* ═══════════════════════════════════════════════════
   DESCRIPTION SECTION (below the fold)
   ═══════════════════════════════════════════════════ */

.ep-description {
  max-width: 800px;
  margin: 0 0 4rem;
  border-top: 1px solid #e0e0e0;
}

.what-know__heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1.2rem;
  text-align: left;
}

p.what-know {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

p.what-know a {
  color: #222;
  text-decoration: underline;
}

.wt-icon {
  flex-shrink: 0;
  color: #222;
}

h3.ep-description__heading  {
  margin-top: -2rem;
}
.ep-description__heading {
  font-size: 2.2rem;
  font-weight: 600;
  color: #222;

  margin-bottom: 2rem;
  text-align: left;
}

/* Reset the aggressive heading margins from item-posts.css */
.ep-description h2:not(.ep-description__heading),
.ep-description h3,
.ep-description h4 {
  margin-top: 2.5rem;
  text-align: left;
}

/*
.ep-description p {
  font-size: 1.7rem;
  line-height: 1.7;
  color: #444;
}
  */

.ep-description img {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Adjust Related Posts Margin */
.rel-posts{
  margin-top: 4rem;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════
   MOBILE REFINEMENTS
   ═══════════════════════════════════════════════════ */
@media (max-width: 599px) {
  .ep-info__price {
    font-size: 2.8rem;
  }

  .ep-info__title {
    font-size: 1.8rem !important;
  }

  .ep-gallery__thumb {
    width: 56px;
    height: 56px;
  }

  .ep-gallery__nav {
    width: 34px;
    height: 34px;
  }

  .ep-badges {
    gap: 0.5rem;
  }

  .ep-badge {
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
  }

  .ep-gallery__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ep-gallery__viewport .ep-gallery__image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .ep-gallery__viewport .ep-gallery__image:not(.is-active) {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: contain;
  }


}

/* ─── Hide the old buy button footer ─── */
.full-width-content .bel-btn {
  display: none;
}

/* ─── Remove sidebar from this template ─── */
.full-width-content .sidebar-primary {
  display: none;
}

/* ─── After-entry category box: restyle or hide ─── */
.full-width-content .after-entry {
  max-width: 800px;
  margin: 0 auto;
}
