/* =====================================================
   PRODUCT PAGE REDESIGN - Mobile First
   ===================================================== */

/* 1. HERO IMAGE SECTION (Full-width, homepage-style) */
.product-hero-fullscreen {
  position: relative;
  width: 100vw;
  height: 85vh;
  min-height: 450px;
  overflow: hidden;
  display: block;
  z-index: 800;
  margin: 0;
}
.product-hero__image {
  position: absolute;
  inset: 0;
}
.product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.product-hero__name {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(24px);
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 8vw, 48px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: textRiseProduct 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.3s;
}
@keyframes textRiseProduct {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

/* 2. WHITE CONTENT BLOCK */
.product-page-content {
  background-image: linear-gradient(rgb(255, 255, 255), rgb(165, 135, 90));
  /* padding-bottom: 120px; Space for sticky popup */
}
.product-intro {
  background: #f2efe9;
  padding: 32px 40px 28px;
}
.product-intro__name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}
.product-intro__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* 3. IMAGE CAROUSEL - Infinite loop, sharp corners, minimalist */
.product-carousel {
  position: relative;
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
  /* background: #fff; */
}
.product-carousel__track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 calc(50% - 115px);
  /* overflow-x: hidden; JS handles scrolling for infinite loop */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-carousel__track::-webkit-scrollbar {
  display: none;
}
.product-carousel__slide {
  flex: 0 0 230px;
  width: 230px;
  height: 280px;
  overflow: hidden;
  opacity: 0.5;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  /* Sharp corners - NO border-radius */
}
.product-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.product-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Product name under carousel image */
.product-carousel__caption {
  padding: 12px 0 0;
  text-align: center;
}
.product-carousel__caption-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 2px;
}
.product-carousel__caption-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: #666;
}
.product-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-carousel__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.product-carousel__arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}
.product-carousel__arrow--prev {
  left: 16px;
}
.product-carousel__arrow--next {
  right: 16px;
}

/* 4. DESCRIPTION & ATTRIBUTES BLOCK */
.product-details {
  background: #f0ebe0; /* Warm/yellowish background */
  padding: 32px 40px 40px;
  margin-top: 24px;
}
.product-details__name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}
.product-details__description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: #444;
  line-height: 1.8;
  margin: 0 0 24px 0;
}
.product-details__attributes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-details__attributes li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.product-details__attributes .attr-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-details__attributes .attr-value {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

/* === MATERIALS SECTION (unified - replaces fabric/material) === */
.product-materials {
  margin-top: 28px;
  /* padding-top: 24px; */
  /* border-top: 1px solid rgba(0,0,0,0.08); */
}
.product-materials__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

#last-li{
  border-bottom: none;
}

/* Case A: Grid layout with images */
.product-materials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 480px) {
  .product-materials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-materials__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.product-materials__image {
  width: 100px;
  height: 100px;
  box-shadow: 1px 1px 15px #d9d1c69c, -1px -1px 15px #d9d1c69c, -1px 1px 15px #d9d1c69c, 1px -1px 15px #d9d1c69c;
  overflow: hidden;
}
@media (min-width: 480px) {
  .product-materials__image {
    width: 120px;
    height: 120px;
  }
}
.product-materials__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-materials__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}
.product-materials__image--placeholder span {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
}
.product-materials__name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: #444;
  text-align: center;
  line-height: 1.3;
}

/* Case B: Vertical list (no images) */
.product-materials__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-materials__list li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: #444;
  padding-left: 16px;
  position: relative;
}
.product-materials__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Armenian font support for materials */
html[lang="am"] .product-materials__title {
  font-family: 'Noto Serif Armenian', var(--font-serif);
}
html[lang="am"] .product-materials__name,
html[lang="am"] .product-materials__list li {
  font-family: 'Noto Sans Armenian', var(--font-sans);
}

/* Product drawings section */
.product-drawings {
  margin-top: 10px;
  margin-bottom: 10px;
}
.product-drawings__title {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.product-drawings__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-drawings__item {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.product-drawings__item img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  /* background: #fff; */
}

/* Recommendations section on product page */
.product-page-content .product-recommendations {
  padding: 20px 15px;
  background: #fff;
}
.product-page-content .product-recommendations h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 20px 0;
 text-align: center;
}

/* === FULLSCREEN IMAGE MODE === */
.product-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product-fullscreen-overlay.show {
  opacity: 1;
  visibility: visible;
}
body.product-fullscreen-active {
  overflow: hidden;
}
.product-fullscreen-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-fullscreen-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
.product-fullscreen-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.product-fullscreen-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}
.product-fullscreen-close:hover {
  background: rgba(255,255,255,0.2);
}
.product-fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.product-fullscreen-arrow:hover {
  background: rgba(255,255,255,0.25);
}
.product-fullscreen-arrow--prev {
  left: 16px;
}
.product-fullscreen-arrow--next {
  right: 16px;
}
.product-fullscreen-arrow svg {
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* 5. STICKY BOTTOM ACTION BAR - Two-level vertical layout */
.product-order-popup {
  position: fixed;
  bottom: 0; /* Flush with bottom edge */
  left: 3px;
  right: 3px;
  background: #fff;
  border-radius: 5px 5px 0 0; /* Rounded only on top corners */
  /* box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08), 0 -1px 6px rgba(0, 0, 0, 0.04); */
  padding: 16px 18px 18px; /* Increased vertical padding for two rows */
  display: flex;
  flex-direction: column;
  gap: 14px; /* Space between top and bottom rows */
  z-index: 900;
  /* Entrance animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
              transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.product-order-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Docked state: popup becomes part of document flow, scrolls with page */
.product-order-popup.is-docked {
  position: relative;
  bottom: auto;
  left: 0;
  right: 0;
  margin: 0 3px;
  border-radius: 5px 5px 0 0;
  /* Keep visible state intact */
  opacity: 1;
  transform: translateY(0);
}

/* Return animation: starting state when undocking back to fixed */
.product-order-popup.is-returning {
  opacity: 0;
  transform: translateY(30px);
  transition: none; /* Instant jump to starting position */
}

/* TOP ROW: Text block - aligned left */
.product-order-popup__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.product-order-popup__brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.product-order-popup__tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}
.product-order-popup__tagline--price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #1a1a1a;
}
.product-order-popup__tagline--price s {
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
}
.product-order-popup__tagline--price span {
  color: var(--accent, #1a1a1a);
}

/* BOTTOM ROW: Action buttons container */
.product-order-popup__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Circular buttons (left home, right share) */
.product-order-popup__circle-btn {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #F5F5F5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.product-order-popup__circle-btn:hover,
.product-order-popup__circle-btn:active {
  background: #ECECEC;
  transform: scale(0.95);
}
.product-order-popup__circle-btn svg {
  width: 21px;
  height: 21px;
  stroke: #333;
}

/* Center primary CTA - visually dominant pill button */
.product-order-popup__cta {
  flex: 1; /* Takes remaining space between buttons */
  height: 46px;
  padding: 0 24px;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  border-radius: 23px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.product-order-popup__cta:hover,
.product-order-popup__cta:active {
  background: #1a1a1a;
  transform: scale(0.98);
}

/* Order contact options overlay */
.order-contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 980;
}

.order-contact-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-contact-panel {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px 18px 12px 12px;
  padding: 22px 20px 18px;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  position: relative;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.45s ease;
}

.order-contact-overlay.is-open .order-contact-panel {
  transform: translateY(0);
  opacity: 1;
}

.order-contact-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.order-contact-close:hover,
.order-contact-close:active {
  background: rgba(0,0,0,0.1);
  transform: scale(0.96);
}

.order-contact-close svg {
  width: 16px;
  height: 16px;
  stroke: #333;
}

.order-contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.order-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f6f3ef;
  color: #1a1a1a;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.order-contact-btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-contact-btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.order-contact-btn:hover,
.order-contact-btn:active {
  background: #efe9e1;
  transform: translateY(-1px);
}

.order-contact-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.order-contact-open {
  overflow: hidden;
}

/* Desktop: hide mobile popup, show different layout later */
@media (min-width: 1024px) {
  .product-order-popup {
    display: none;
  }
}

/* =====================================================
   COLLECTION PAGE - Additional Styles
   ===================================================== */

/* Collection products flow container */
.collection-products-flow {
  width: 100%;
}

/* Individual product showcase within collection (uses collections-showcase base) */
.collection-product-showcase {
  margin-top: 0;
}

/* Product details within collection - slightly darker, premium feel */
.collection-product-details {
  background: #F5F0E8;
  margin: 0;
  padding: 32px 20px 40px;
  border-bottom: none;
}

.collection-product-details .product-details__name {
  margin-bottom: 16px;
}

.collection-product-details .product-details__description {
  margin-bottom: 20px;
}

/* Remove borders between product sections in collection flow */
.collection-products-flow .collection-product-showcase {
  margin-bottom: 0;
}

.collection-products-flow .collection-product-details {
  margin-bottom: 0;
}

/* Empty state for products without images */
.collections-showcase__empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

/* Other Collections CTA Section - uses see-more-container design */
.collection-other-cta {
  display: flex;
  justify-content: center;
  padding: 40px 20px 100px; /* Extra bottom padding for popup */
  background: #fff;
}

.collection-other-cta__btn {
  display: inline-block;
  padding: 14px 48px;
  background: transparent;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid #333;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.collection-other-cta__btn:hover,
.collection-other-cta__btn:active {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .collection-product-details {
    padding: 48px 40px 56px;
  }
  
  .collection-other-cta {
    padding: 60px 40px 120px;
  }
}

/* =====================================================
   SEE MORE BUTTON - Pagination
   ===================================================== */
.see-more-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}

.see-more-btn {
  display: inline-block;
  padding: 14px 48px;
  background: transparent;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid #333;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.see-more-btn:hover,
.see-more-btn:active {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Inside recommendations section */
.product-recommendations .see-more-container {
  padding: 24px 0 0;
}

/* =====================================================
   PAGINATION CONTROLS - For paginated pages
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 20px 60px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1.5px solid #333;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.pagination__btn:hover,
.pagination__btn:active {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

.pagination__btn--active {
  background: #333;
  color: #fff;
  pointer-events: none;
}

.pagination__ellipsis {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #888;
  padding: 0 4px;
}

.pagination__info {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.02em;
}

/* Mobile: Stack pagination buttons */
@media (max-width: 480px) {
  .pagination {
    flex-direction: column;
    gap: 12px;
  }
  
  .pagination__btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}

/* Category header back link */
.category-header__back {
  margin-top: 80px;
}

.category-header__back a {
  color: #666;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-header__back a:hover {
  color: #000;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:active {
  color: #666;
}

.breadcrumbs__sep {
  color: rgba(102,102,102,0.6);
}

.breadcrumbs__current {
  color: var(--muted);
}
