/* ========================================
   AIYA PRINT
   SHARED PRODUCT PAGE
======================================== */


/* ========================================
   BREADCRUMB
======================================== */

.product-breadcrumb {

  max-width: var(--max-width);

  margin: 0 auto;

  padding: 28px 5vw 10px;

  display: flex;

  gap: 10px;

  align-items: center;

  font-size: 13px;

  color: rgba(45, 42, 38, 0.55);
}


.product-breadcrumb a:hover {

  color: var(--charcoal);

}



/* ========================================
   PRODUCT PAGE
======================================== */

.product-page {

  max-width: var(--max-width);

  margin: 0 auto;

  padding: 45px 5vw 120px;

  display: grid;

  grid-template-columns:

    minmax(0, 1.1fr)

    minmax(380px, 0.9fr);

  gap: clamp(50px, 7vw, 110px);

  align-items: start;

}

/* ========================================
   AIYA PRINT
   STICKERS â€” PRODUCT.CSS ADDITIONS
======================================== */

/* Three-image sticker gallery */
.product-thumbnails.sticker-thumbnails {
  grid-template-columns: repeat(3, 1fr);
}

/*
  Keep this only once in product.css.
  It prevents the empty uploaded-file row from appearing
  before a customer selects artwork.
*/
.uploaded-file[hidden] {
  display: none !important;
}

/* ========================================
   PRODUCT GALLERY
======================================== */

.product-gallery {
  position: sticky;
  top: 115px;
}

.product-main-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--paper);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-thumbnail {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--paper);
  padding: 0;
  cursor: pointer;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-thumbnail:hover {
  border-color: rgba(45, 42, 38, 0.45);
}

.product-thumbnail.active {
  border-color: var(--charcoal);
}

/* Invitation gallery uses three thumbnails */
.product-thumbnails.invitation-thumbnails {
  grid-template-columns: repeat(3, 1fr);
}

/* Flyer gallery uses three images */
.product-thumbnails.flyer-thumbnails {
  grid-template-columns: repeat(3, 1fr);
}

/* Optional back-artwork label */
.artwork-optional {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.55;
}

/* Let unavailable quantity buttons fit the extra label cleanly */
#quantityOptions .option-button.is-disabled {
  min-height: 70px;
}

/* ========================================
   PRODUCT INFORMATION
======================================== */

.product-info {

  width: 100%;

}


.product-heading {

  padding-bottom: 32px;

  border-bottom:

    1px solid rgba(45, 42, 38, 0.1);

}


.product-title {

  font-size:

    clamp(44px, 5vw, 68px);

  line-height: 1;

  letter-spacing: -0.05em;

  font-weight: 500;

}


.product-description {

  margin-top: 20px;

  max-width: 570px;

  font-size: 16px;

  color: rgba(45, 42, 38, 0.7);

}



/* ========================================
   INCLUDED FEATURES
======================================== */

.product-included {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  padding: 24px 0;

  border-bottom:

    1px solid rgba(45, 42, 38, 0.1);

}


.product-included span {

  padding: 8px 12px;

  border-radius: 999px;

  background: var(--paper);

  font-size: 12px;

}



/* ========================================
   OPTION GROUPS
======================================== */

.option-group {

  padding: 30px 0;

  border-bottom:

    1px solid rgba(45, 42, 38, 0.1);

}


.option-heading {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 14px;

}


.option-heading label {

  font-size: 14px;

  font-weight: 700;

}


.selected-option {

  color:

    rgba(45, 42, 38, 0.55);

  font-size: 13px;

}



/* ========================================
   OPTION BUTTONS
======================================== */

.option-buttons {

  display: grid;

  grid-template-columns:

    repeat(
      auto-fit,
      minmax(110px, 1fr)
    );

  gap: 10px;

}


.option-button {

  min-height: 54px;

  padding: 12px 15px;

  border:

    1px solid
    rgba(45, 42, 38, 0.15);

  border-radius: var(--radius-small);

  background: var(--soft-white);

  color: var(--charcoal);

  cursor: pointer;

  text-align: left;

  font: inherit;

  transition:

    border-color 0.18s ease,

    background 0.18s ease,

    transform 0.18s ease;

}


.option-button:hover {

  border-color:

    rgba(45, 42, 38, 0.45);

}


.option-button.active {

  background: var(--paper);

  border-color: var(--charcoal);

}


.option-title {

  display: block;

  font-weight: 700;

  font-size: 13px;

}


.option-detail {

  display: block;

  margin-top: 3px;

  font-size: 11px;

  color: rgba(45, 42, 38, 0.55);

}

/* ========================================
   OPTION BUTTON DISABLED STATE
======================================== */

.option-button {
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.option-button:disabled,
.option-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  border-color: rgba(45, 42, 38, 0.10);
  background: rgba(246, 241, 231, 0.45);
}

.option-button:disabled:hover,
.option-button.is-disabled:hover {
  border-color: rgba(45, 42, 38, 0.10);
}


/* ========================================
   OPTION REQUIREMENT NOTE
======================================== */

.option-requirement {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(45, 42, 38, 0.62);
}

.option-requirement.is-emphasized {
  font-weight: 700;
  color: var(--charcoal);
}

/* ========================================
   MULTIPLE ARTWORK UPLOADS
======================================== */

.artwork-upload-stack {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.artwork-upload-panel[hidden] {
  display: none;
}

.artwork-upload-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
}

@media (min-width: 720px) {
  .artwork-upload-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* ========================================
   UPLOAD AREA
======================================== */

.upload-area {

  min-height: 145px;

  border:

    1px dashed
    rgba(45, 42, 38, 0.28);

  border-radius: var(--radius-medium);

  background: var(--paper);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  cursor: pointer;

  transition:

    background 0.2s ease,

    border-color 0.2s ease;

}


.upload-area:hover {

  background: var(--cream);

  border-color: var(--charcoal);

}


.upload-icon {

  font-size: 22px;

  margin-bottom: 7px;

}


.upload-title {

  font-size: 14px;

  font-weight: 700;

}


.upload-description {

  font-size: 12px;

  opacity: 0.55;

  margin-top: 3px;

}



/* ========================================
   HIDE EMPTY ARTWORK FILE ROWS
======================================== */

.uploaded-file[hidden] {
  display: none !important;
}

.uploaded-file button {

  background: none;

  border: none;

  color: var(--charcoal);

  cursor: pointer;

  text-decoration: underline;

}



/* ========================================
   PURCHASE AREA
======================================== */

.product-purchase {

  padding: 32px 0 26px;

  display: flex;

  gap: 25px;

  align-items: center;

  justify-content: space-between;

}


.price-area {

  display: flex;

  flex-direction: column;

}


.price-label {

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  opacity: 0.55;

}


.product-price {

  font-size: 38px;

  font-weight: 500;

  letter-spacing: -0.04em;

}


.development-price-note {

  font-size: 10px;

  opacity: 0.45;

}


.add-to-cart-button {

  border: none;

  min-width: 180px;

  cursor: pointer;

}



/* ========================================
   PRODUCT NOTES
======================================== */

.product-notes {

  padding-top: 20px;

  color:

    rgba(45, 42, 38, 0.55);

  font-size: 12px;

}


.product-notes p {

  margin-bottom: 6px;

}



/* ========================================
   BENEFITS
======================================== */

.product-benefits {

  max-width: var(--max-width);

  margin: 0 auto 120px;

  padding: 70px 5vw;

  background: var(--paper);

  border-radius: var(--radius-large);

  display: grid;

  grid-template-columns:

    repeat(3, 1fr);

  gap: 60px;

}


.product-benefit p {

  margin-top: 10px;

  color:

    rgba(45, 42, 38, 0.65);

  max-width: 340px;

}



/* ========================================
   BOTTOM CTA
======================================== */

.product-bottom-cta {

  padding: 140px 20px;

  text-align: center;

  background: var(--cream);

}


.product-bottom-cta h2 {

  max-width: 720px;

  margin: 0 auto;

}



/* ========================================
   CART COUNT
======================================== */

.cart-button {

  display: inline-flex;

  align-items: center;

  gap: 8px;

}


.cart-count {

  width: 22px;

  height: 22px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--charcoal);

  color: var(--soft-white);

  font-size: 10px;

}



/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

  .product-page {

    grid-template-columns: 1fr;

    gap: 50px;

  }


  .product-gallery {

    position: static;

  }


  .product-main-image {

    max-width: 700px;

    margin: 0 auto;

  }


  .product-thumbnails {

    max-width: 700px;

    margin-left: auto;

    margin-right: auto;

    margin-top: 14px;

  }

}



/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  .product-page {

    padding:

      25px 20px 80px;

  }


  .product-breadcrumb {

    padding-left: 20px;

    padding-right: 20px;

  }


  .product-purchase {

    align-items: stretch;

    flex-direction: column;

  }


  .add-to-cart-button {

    width: 100%;

  }


  .option-buttons {

    grid-template-columns:

      repeat(2, 1fr);

  }


  .product-benefits {

    margin: 0 10px 80px;

    padding: 55px 30px;

    grid-template-columns: 1fr;

    gap: 40px;

  }


  .product-title {

    font-size: 44px;

  }

}

/* ========================================
   MOBILE GALLERY
======================================== */

@media (max-width: 600px) {
  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}