/* ============================================
   Product Detail Page (PDP) Stylesheet
   Ekaara Home
   ============================================ */

/* ── Force header to always be visible with background (no hero image on this page) ── */
.pdp-page .announcement-bar {
  display: none;
}

.product-page-wrapper header,
body.pdp-page header {
  top: 0 !important;
  background-color: var(--header-bg) !important;
  border-bottom: 1px solid var(--nav-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(0) !important;
  visibility: visible !important;
}

body.pdp-page header .logo-img {
  filter: none !important;
  height: 23px !important;
}

body.pdp-page header .nav-link {
  color: var(--nav-text) !important;
}

body.pdp-page header .header-utils button,
body.pdp-page header .header-utils a {
  color: var(--header-text) !important;
}

body.pdp-page header .nav-toggle {
  color: var(--header-text) !important;
}


body.pdp-page header .header-container {
  padding: 12px 30px !important;
}

/* ── Page top offset: announcement bar (30px) + header (~68px) = ~98px ── */
.product-page {
  --pdp-top-row-height: 52px;
  padding-top: 56px;
  background: var(--bg-light);
}

/* ── Max-width wrapper for all pdp content ── */
.pdp-max-width {
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Breadcrumbs ── */
.pdp-breadcrumbs-outer {
  width: calc(65% - 1rem);
  background: var(--bg-light);
}

.pdp-breadcrumbs {
  margin: 0;
  padding: 20px;
  font-family: var(--font-cta);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
}

.pdp-breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.pdp-breadcrumbs a:hover { color: var(--text-color); }
.pdp-breadcrumbs .bc-sep { margin: 0 8px; }
.pdp-breadcrumbs .bc-active { color: var(--text-color); }

/* ── Main Two-Column Layout ── */
.pdp-layout {
  position: relative;
  background: var(--bg-light);
  max-width: 1300px;
  margin: 0 auto;
}

/* ── LEFT: Gallery ── */
.pdp-gallery {
  width: calc(65% - 20px);
  display: flex;
  gap: 0;
  position: relative;
}

/* Thumbnail Rail */
.pdp-thumbnails {
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 1rem;
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: var(--bg-light);
}

.pdp-thumbnails::-webkit-scrollbar { display: none; }

.pdp-thumb {
  width: 48px;
  height: 48px;
  border: 1.5px solid transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
  background: #f0eeea;
}

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

.pdp-thumb:hover { border-color: var(--text-light); }
.pdp-thumb.active { border-color: var(--text-color); }

/* Main Images Stack */
.pdp-images-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.pdp-main-img-wrapper {
  width: 100%;
  background: #f0eeea;
  overflow: hidden;
  flex-shrink: 0;
}

.pdp-main-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pdp-main-img-wrapper:hover img {
  transform: scale(1.03);
}

/* ── RIGHT: Sticky Info Panel ── */
.pdp-info {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  background: var(--bg-light);
}

.pdp-info::-webkit-scrollbar { display: none; }

.pdp-info-inner {
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 1rem 1rem 0;
  scrollbar-width: none;
}

.pdp-info-inner::-webkit-scrollbar { display: none; }

/* Vendor */
.pdp-vendor {
  display: none;
}

/* Title */
.pdp-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--heading-color);
  margin-bottom: 18px;
  line-height: 1.25;
}

/* Price */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.pdp-price {
  font-family: var(--font-cta);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.pdp-original-price {
  font-family: var(--font-cta);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Short Description */
.pdp-short-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0;
  padding-bottom: 0;
}

.pdp-short-desc ul,
.pdp-short-desc ol {
  padding-left: 32px;
  margin: 15px 0;
  list-style-position: outside;
}

.pdp-short-desc ul {
  list-style-type: disc;
}

.pdp-short-desc ol {
  list-style-type: decimal;
}

.pdp-short-desc li {
  margin-bottom: 4px;
}

/* Size Selector */
.pdp-option-group {
  margin-bottom: 22px;
}

.pdp-option-label {
  font-family: var(--font-cta);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 10px;
}

.pdp-size-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-size-btn {
  font-family: var(--font-cta);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
}

.pdp-size-btn:hover {
  border-color: var(--text-color);
}

.pdp-size-btn.active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: #fff;
}

/* Quantity + ATC Row */
.pdp-atc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  width: 110px;
  flex-shrink: 0;
}

.pdp-qty-btn {
  width: 36px;
  height: 46px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: background 0.2s;
}

.pdp-qty-btn:hover { background: var(--bg-color); }

.pdp-qty-val {
  flex: 1;
  text-align: center;
  font-family: var(--font-cta);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  user-select: none;
}

.pdp-atc-btn {
  flex: 1;
  height: 46px;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-cta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.pdp-atc-btn:hover { background: var(--btn-hover); }

.pdp-buy-btn {
  width: 100%;
  height: 46px;
  background: transparent;
  color: var(--text-color);
  font-family: var(--font-cta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.pdp-buy-btn:hover {
  border-color: var(--text-color);
  background: var(--bg-color);
}

/* Wishlist / Share */
.pdp-meta-links {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.pdp-meta-btn {
  font-family: var(--font-cta);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.pdp-meta-btn:hover { color: var(--text-color); }

/* Accordion Group */
.pdp-accordion-group {
  display: flex;
  flex-direction: column;
}

.pdp-details-wide {
  width: calc(65% - 1rem);
  padding: 28px 1rem 34px;
  background: var(--bg-light);
}

.pdp-accordion {
  border-bottom: none;
}

.pdp-accordion:first-child {
  border-top: none;
}

.pdp-details-wide .pdp-accordion {
  border-bottom: 1px solid var(--border-color);
}

.pdp-details-wide .pdp-accordion:first-child {
  border-top: none;
}

.pdp-details-wide .pdp-accordion:last-child {
  border-bottom: none;
}

.pdp-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-family: var(--font-cta);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-color);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.pdp-acc-icon {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.3s;
}

.pdp-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text-light);
}

.pdp-accordion.active .pdp-accordion-panel {
  max-height: 400px;
}

.pdp-accordion-panel p,
.pdp-accordion-panel ul {
  padding: 0 0 16px;
}

.pdp-accordion-panel ul:not(.pdp-details-list),
.pdp-accordion-panel ol {
  padding: 0 0 16px 32px;
  margin: 15px 0;
  list-style-position: outside;
}

.pdp-accordion-panel ul:not(.pdp-details-list) {
  list-style-type: disc;
}

.pdp-accordion-panel ol {
  list-style-type: decimal;
}

.pdp-accordion-panel ul:not(.pdp-details-list) li,
.pdp-accordion-panel ol li {
  margin-bottom: 4px;
}

/* Product Details List */
.pdp-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 16px !important;
}

.pdp-details-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
}

.pdp-details-list li span:first-child {
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  font-family: var(--font-cta);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ── You May Also Like Carousel ── */
.pdp-also-like {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 32px !important;
}

.pdp-also-like .section-title {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  padding-left: 40px;
  padding-right: 40px;
}

.pdp-also-like .section-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 0;
}

.pdp-also-carousel-wrapper {
  margin: 20px 0 6px;
  padding: 0 1rem;
}

/* Cards inside also-like */
.pdp-also-carousel .pdp-also-card {
  flex: 0 0 calc(20% - 16px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.pdp-also-carousel .product-card .product-img-box {
  aspect-ratio: 1 / 1;
  background: #f0eeea;
  overflow: hidden;
  position: relative;
}

.pdp-also-carousel .product-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pdp-also-carousel .product-card:hover .main-img {
  transform: scale(1.04);
}

.pdp-also-carousel .product-card .product-hover-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.3s;
}

.pdp-also-carousel .product-card:hover .product-hover-actions {
  opacity: 1;
}

.pdp-also-carousel .product-card .hover-btn {
  flex: 1;
  padding: 12px 6px;
  font-family: var(--font-cta);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  color: var(--heading-color);
  transition: background 0.2s;
}

.pdp-also-carousel .product-card .hover-btn:first-child {
  border-right: 1px solid rgba(0,0,0,0.08);
}

.pdp-also-carousel .product-card .hover-btn:hover {
  background: #fff;
}

.pdp-also-carousel .product-card .product-info {
  padding: 10px 4px 0;
  text-align: center;
}

.pdp-also-carousel .product-card .product-vendor,
.pdp-also-carousel .product-card .product-rating {
  display: none;
}

.pdp-also-carousel .product-card .product-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-also-carousel .product-card .product-name a {
  color: var(--text-color);
  text-decoration: none;
}

.pdp-also-carousel .product-card .product-name a:hover {
  color: var(--text-light);
}

.pdp-also-carousel .product-card .product-price {
  font-family: var(--font-cta);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-color);
}

/* Owl Carousel nav overrides for also-like */
.pdp-also-carousel-wrapper {
  position: relative;
}

.pdp-also-carousel-wrapper .owl-nav button {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(255, 255, 255, 0.72) !important;
  border: none;
  width: 44px;
  height: 52px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--text-color) !important;
  font-size: 1rem;
  opacity: 1;
  transition: background 0.25s ease;
}

.pdp-also-carousel-wrapper .owl-nav button:hover {
  background: rgba(255, 255, 255, 0.95) !important;
}

.pdp-also-carousel-wrapper .owl-nav button.disabled {
  opacity: 0.25;
  cursor: default;
}

.pdp-also-carousel-wrapper .owl-nav .owl-prev {
  left: 0;
  border-radius: 0 30px 30px 0;
}

.pdp-also-carousel-wrapper .owl-nav .owl-next {
  right: 0;
  border-radius: 30px 0 0 30px;
}

/* ── Recently Viewed Section ── */
#pdp-recently-viewed-section {
  width: 100%;
  padding: 40px 0 32px !important;
  border-top: 1px solid var(--border-color);
}

#pdp-recently-viewed-section .recently-viewed-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0 40px;
}

#pdp-recently-viewed-section .section-title {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  padding-left: 40px;
  padding-right: 40px;
}

#pdp-recently-viewed-section .section-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 0;
}

#pdp-recently-viewed-section .product-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

#pdp-recently-viewed-section .product-card .product-img-box {
  aspect-ratio: 1/1;
  background: #f0eeea;
  overflow: hidden;
  position: relative;
}

#pdp-recently-viewed-section .product-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#pdp-recently-viewed-section .product-card:hover .main-img {
  transform: scale(1.04);
}

#pdp-recently-viewed-section .product-card .product-hover-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.3s;
}

#pdp-recently-viewed-section .product-card:hover .product-hover-actions {
  opacity: 1;
}

#pdp-recently-viewed-section .product-card .hover-btn {
  flex: 1;
  padding: 12px;
  font-family: var(--font-cta);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  color: var(--heading-color);
  transition: background 0.2s;
}

#pdp-recently-viewed-section .product-card .hover-btn:first-child {
  border-right: 1px solid rgba(0,0,0,0.08);
}

#pdp-recently-viewed-section .product-card .hover-btn:hover {
  background: #fff;
}

#pdp-recently-viewed-section .product-card .product-info {
  padding: 10px 4px 0;
  text-align: center;
}

#pdp-recently-viewed-section .product-card .product-vendor,
#pdp-recently-viewed-section .product-card .product-rating {
  display: none;
}

#pdp-recently-viewed-section .product-card .product-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 5px;
}

#pdp-recently-viewed-section .product-card .product-name a {
  color: var(--text-color);
  text-decoration: none;
}

#pdp-recently-viewed-section .product-card .product-price {
  font-family: var(--font-cta);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-color);
}

/* ── Responsive ── */

@media (max-width: 992px) {
  .pdp-layout {
    display: flex;
    flex-direction: column;
  }

  .pdp-breadcrumbs-outer {
    width: 100%;
  }

  .pdp-gallery {
    width: 100%;
  }

  .pdp-info {
    position: static;
    width: 100%;
    height: auto;
    border-left: none;
  }

  .pdp-info-inner {
    position: static;
    max-height: none;
    padding: 24px 1rem 0;
  }

  .pdp-details-wide {
    width: 100%;
    padding: 8px 1rem 28px;
  }

  .pdp-breadcrumbs {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .pdp-also-like .section-title,
  .pdp-also-like .section-subtitle {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #pdp-recently-viewed-section .section-title,
  #pdp-recently-viewed-section .section-subtitle {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .pdp-gallery {
    flex-direction: column;
  }

  .pdp-thumbnails {
    flex-direction: row;
    width: 100%;
    height: auto;
    position: static;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 1rem;
  }

  .pdp-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .pdp-images-stack {
    gap: 2px;
  }

  #pdp-recently-viewed-section .recently-viewed-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdp-also-carousel-wrapper .owl-nav button {
    width: 36px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .pdp-breadcrumbs { padding: 12px 1rem; }
  .product-page { padding-top: 56px; }

  #pdp-recently-viewed-section .recently-viewed-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .pdp-also-carousel-wrapper { margin: 16px 0 6px; }
}
