/* =========================================================
   PRODUCT-PAGE.CSS
   Styles specific to product.html — the individual product
   detail page (image gallery, breadcrumb, spec list, related
   products). Kept in its own file, separate from style.css,
   since it's only loaded on product.html.

   Mobile-first: gallery and info stack vertically on small
   screens, then move to a side-by-side layout on desktop.
   ========================================================= */

/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */
.breadcrumb-nav {
  padding-block: var(--space-4);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--color-gray-300);
}

.breadcrumb-list a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--color-accent);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   PRODUCT DETAIL — LAYOUT
   --------------------------------------------------------- */
.product-detail-section {
  padding-block: var(--space-6) var(--space-10);
}

.product-detail-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ---------------------------------------------------------
   GALLERY
   --------------------------------------------------------- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-100);
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-main.is-zoomed img {
  opacity: 0;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.product-gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-gray-100);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumb:hover {
  border-color: var(--color-gray-300);
}

.product-gallery-thumb.is-active {
  border-color: var(--color-accent);
}

.product-gallery-thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   PRODUCT INFO (right column)
   --------------------------------------------------------- */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-detail-title {
  font-size: var(--fs-2xl);
  line-height: 1.2;
  margin-block: var(--space-1);
}

.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-block: var(--space-2);
}

.product-detail-price-row .product-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-accent);
}

.product-detail-price-row .product-old-price {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-discount-badge {
  background: var(--color-text);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.product-detail-shortdesc {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

/* ---------------------------------------------------------
   SPECS LIST
   --------------------------------------------------------- */
.product-detail-specs {
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-block: var(--space-2);
}

.product-detail-spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
}

.product-detail-spec-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.product-detail-spec-row:nth-child(odd) {
  background: var(--color-bg-subtle);
}

.product-detail-spec-label {
  color: var(--color-text-muted);
  font-weight: 600;
}

.product-detail-spec-value {
  color: var(--color-text);
  text-align: right;
}

/* ---------------------------------------------------------
   CTA BUTTONS — order / whatsapp / call
   Uses its own .btn-action class (not the site's shared .btn)
   so padding/size/weight are fully controlled here and never
   fight with the base button styles.
   --------------------------------------------------------- */
.product-detail-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.btn-action:hover {
  filter: brightness(0.92);
}

.btn-action:active {
  transform: scale(0.98);
}

.btn-order {
  grid-column: 1 / -1;
  background: var(--color-accent);
  color: #ffffff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-call {
  background: #1e3a8a;
  color: #ffffff;
}

/* ---------------------------------------------------------
   ORDER BUTTON — shake animation
   Fast, small side-to-side jitters that repeat every couple
   of seconds (shake, then pause, then shake again) — pauses
   on hover, and is disabled for users who've asked their OS
   to minimize motion.
   --------------------------------------------------------- */
.btn-order {
  animation: order-btn-shake 2.5s ease-in-out infinite;
}

.btn-order:hover {
  animation-play-state: paused;
}

@keyframes order-btn-shake {
  0%, 20%, 100% {
    transform: translateX(0);
  }
  2% {
    transform: translateX(-4px);
  }
  4% {
    transform: translateX(4px);
  }
  6% {
    transform: translateX(-4px);
  }
  8% {
    transform: translateX(4px);
  }
  10% {
    transform: translateX(-2px);
  }
  12% {
    transform: translateX(2px);
  }
  14% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-order {
    animation: none;
  }
}

/* ---------------------------------------------------------
   TRUST LIST
   --------------------------------------------------------- */
.product-detail-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.product-detail-trust-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------------------------------------------------------
   FULL DESCRIPTION
   --------------------------------------------------------- */
.product-detail-description {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.product-detail-description-heading {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.product-detail-description p {
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 70ch;
}

/* ---------------------------------------------------------
   NOT FOUND STATE
   --------------------------------------------------------- */
.product-not-found {
  text-align: center;
  padding-block: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------
   RELATED PRODUCTS SECTION
   --------------------------------------------------------- */
.related-products-section {
  background: var(--color-bg-subtle);
  padding-block: var(--space-10);
}

/* ---------------------------------------------------------
   RESPONSIVE — DESKTOP (min-width: 900px)
   --------------------------------------------------------- */
@media (min-width: 900px) {
  .product-detail-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-10);
  }

  .product-gallery {
    flex: 1;
    min-width: 0;
    max-width: 520px;
  }

  .product-detail-info {
    flex: 1;
    min-width: 0;
  }

  .product-detail-title {
    font-size: var(--fs-3xl);
  }
}
.order-summary-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-block: var(--space-3);
  background: var(--color-bg-subtle);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.order-summary-total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
}
.order-form-heading {
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-block: var(--space-6) var(--space-4);
}

.order-form-heading:first-child {
  margin-top: 0;
}

.order-summary-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.order-summary-table-header {
  display: flex;
  justify-content: space-between;
  background: var(--color-bg-subtle);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.order-summary-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
}

.order-summary-table-product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.order-summary-table-product img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-gray-100);
}

.order-product-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-product-preview-name {
  font-weight: 600;
  color: var(--color-accent);
  font-size: var(--fs-sm);
}

.order-product-preview-qty {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.order-product-preview-price {
  font-weight: 700;
  color: var(--color-text);
}

.required-star {
  color: #e11d48;
}

.product-color-selector {
  margin-block: var(--space-3);
}

.product-color-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-color-btn {
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.product-color-btn:hover {
  border-color: var(--color-gray-300);
}

.product-color-btn.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}