/* ==========================================================================
   Single Product Page Styling
   ========================================================================== */

:root {
  --brand-red: #c0392b;
  --brand-red-dark: #a53125;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --border-light: #ececec;
}

.product-single {
  max-width: 1320px;
}

/* ---------- Image Gallery ---------- */

.product-gallery {
  position: relative;
}

.product-main-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f0efec;
  aspect-ratio: 4 / 3.4;
}

.product-main-image .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
  cursor: zoom-in;
}

.product-main-image .product-image.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.product-main-image:hover .product-image.active {
  transform: scale(1.08);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  background: #eee;
}

/* Badge */
.badge-new-arrival {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

/* Circular icon buttons on the image (expand, zoom, prev/next) */
.gallery-icon-btn {
  position: absolute;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  border: none;
}

.gallery-icon-btn:hover {
  background: #fff;
  transform: scale(1.06);
}

.gallery-icon-btn.expand-btn {
  top: 16px;
  right: 16px;
}

.gallery-icon-btn.zoom-btn {
  bottom: 16px;
  right: 16px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.gallery-nav-prev {
  left: 16px;
}

.gallery-nav-next {
  right: 16px;
}

/* Thumbnails */
.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #f5f5f5;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--brand-red);
}

/* ---------- Product Info ---------- */

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--text-dark);
}

.product-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.icon-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.icon-action-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-1px);
}

.icon-action-btn.active,
.icon-action-btn.wishlist-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.title-underline {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
  margin: 0.6rem 0 1.5rem;
}

.product-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ---------- Meta Rows ---------- */

.product-meta {
  margin-bottom: 1.75rem;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border-light);
}

.meta-row:first-child {
  border-top: 1px solid var(--border-light);
}

.meta-icon {
  flex: 0 0 22px;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.5rem;
}

.meta-label {
  flex: 0 0 90px;
  font-weight: 600;
  color: var(--text-dark);
}

.meta-colon {
  flex: 0 0 12px;
  color: var(--text-muted);
}

.meta-value {
  flex: 1 1 auto;
  color: var(--text-dark);
}

/* ---------- CTA Buttons ---------- */

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.enquiry-btn,
.request-call-btn {
  flex: 1 1 220px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.enquiry-btn {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.enquiry-btn:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.25);
}

.request-call-btn {
  background: #fff;
  color: var(--brand-red);
  border: 1.5px solid var(--brand-red);
}

.request-call-btn:hover {
  background: #fdf1f0;
  color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-2px);
}

/* ---------- Description ---------- */

.product-description {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.description-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--text-dark);
}

.description-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: transform 0.25s ease;
}

.description-header[aria-expanded="false"] .description-toggle-icon {
  transform: rotate(180deg);
}

.description-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---------- Trust Bar ---------- */

.product-trust-bar {
  max-width: 1320px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.trust-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-dark);
}

.trust-item:nth-child(2) .trust-icon {
  color: var(--brand-red);
}

.trust-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.trust-text strong {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.trust-text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Lightbox (fullscreen expand) ---------- */

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .product-title {
    font-size: 1.75rem;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .product-cta-row {
    flex-direction: column;
  }

  .enquiry-btn,
  .request-call-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
  }

  .meta-label {
    flex: 0 0 76px;
  }
}
