/* catalogue.css — pagination component only. No existing classes touched. */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 52px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: .85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn[aria-current="true"] {
  background: var(--accent);
  color: var(--background);
  border-color: var(--accent);
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  color: var(--text-secondary);
  font-size: .85rem;
  pointer-events: none;
  user-select: none;
}

/* Shop category browser and lightweight filters. */
.shop-categories,
.basic-filters {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.shop-filter-label {
  flex: 0 0 72px;
  padding-top: 11px;
  color: var(--text-secondary);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-category-list a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.2;
  transition: border-color .2s, color .2s, background .2s;
}

.shop-category-list a:hover,
.shop-category-list a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--background);
}

.basic-filters {
  flex-wrap: wrap;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
}

.basic-filters label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: .84rem;
}

.basic-filters select {
  min-width: 166px;
  padding: 10px 34px 10px 12px;
}

.basic-filters .filter-toggle {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.filter-toggle input { accent-color: var(--accent); }

@media (max-width: 700px) {
  .shop-categories,
  .basic-filters { display: block; }
  .shop-filter-label { display: block; padding: 0 0 10px; }
  .basic-filters label { margin: 0 8px 8px 0; }
  .basic-filters select { min-width: 150px; }
}

/* discount badge on product cards */
.discount-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--accent);
  color: var(--background);
  padding: 5px 9px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 2px;
}

/* struck MRP on product card */
.price-mrp {
  font-size: .8rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: 6px;
}

/* product page: MRP + discount inline */
.price-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-group .price {
  margin: 0;
}

.price-group .price-mrp {
  font-size: .95rem;
  margin-left: 0;
}

.price-group .discount-inline {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}

/* WhatsApp direct-buy button row */
.whatsapp-buy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.whatsapp-buy-row .button {
  flex: 1;
  min-width: 160px;
}

/* features list on product page */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.product-features li {
  display: flex;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.product-features li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-size: .8rem;
  margin-top: 1px;
}

/* breadcrumb Home link */
.breadcrumb a {
  color: var(--text-secondary);
}

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

@media (max-width: 480px) {
  .pagination { gap: 4px; }
  .pagination-btn { min-width: 38px; height: 38px; font-size: .8rem; }
  .whatsapp-buy-row { flex-direction: column; }
}

/* ── Product-image crop fix ────────────────────────────────────────────────
   Root cause: the global   img { object-fit: cover }   in style.css causes
   every product photo to fill its container and crop the top/sides.
   These overrides apply ONLY to product image containers. No other images
   (hero, banners, editorial, icons, logo) are affected.
   ──────────────────────────────────────────────────────────────────────── */

/* 1. Product card thumbnail (home page, shop grid, suggested products)
      .product-photo has  aspect-ratio:1.24  and  overflow:hidden.
      We keep that so grid cards stay equal height.
      We change object-fit to contain so the full product is always visible.  */
.product-photo[data-image-type="studio"] {
  background: #fff;                   /* clean white tile — matches product bg */
}

.product-photo[data-image-type="studio"] img {
  object-fit: contain;                /* ← was: cover (via global)   */
  object-position: center;
  padding: 6%;                        /* breathing room on all 4 sides */
  background: #fff;
  /* keep the existing transition: transform .45s for hover scale */
}

/* hover scale is kept as-is (scale(1.035) inside overflow:hidden = fine)  */

/* 2. Product page main gallery — currently aspect-ratio:1 (square) which
      crops the top of tall wardrobe shots. Switch to portrait-friendly 4/5. */
.gallery[data-image-type="studio"] {
  background: #fff;
}

.gallery[data-image-type="studio"] img {
  object-fit: contain;                /* ← was: cover (via global)   */
  object-position: center top;
  aspect-ratio: 4 / 5;               /* portrait — shows full wardrobe */
  height: auto;
  padding: 4%;
  background: #fff;
}

/* 3. Thumbnail strip on product page (the small selectors below the gallery) */
.thumbnails[data-image-type="studio"] button {
  background: #fff;
  overflow: hidden;
}

.thumbnails[data-image-type="studio"] button img {
  object-fit: contain;                /* ← was: cover (via global)   */
  object-position: center;
  background: #fff;
}

/* 4. Mobile adjustments */
@media (max-width: 600px) {
  .gallery[data-image-type="studio"] img {
    aspect-ratio: 1 / 1;             /* square on mobile — saves vertical space */
    padding: 3%;
  }
  .product-photo[data-image-type="studio"] img {
    padding: 4%;
  }
}

/* 5. Home page compact grid variant */
.product-grid.compact {
  gap: 20px;
}
@media (min-width: 1024px) {
  .product-grid.compact {
    grid-template-columns: repeat(4, 1fr);
  }
}
.product-grid.compact .product-photo[data-image-type="studio"] img {
  aspect-ratio: 4 / 5;
}
.product-grid.compact .product-meta {
  gap: 4px;
  padding: 6px 4px; /* tighter padding inside card */
}
.product-grid.compact .product-meta h3 {
  font-size: 15px;
}
.product-grid.compact .product-meta p {
  font-size: 15px;
}
.product-grid.compact .tag {
  font-size: 10px;
  padding: 4px 6px;
}
.product-grid.compact .discount-badge {
  font-size: 11px;
  padding: 4px 6px;
}

/* Shop catalogue: compact four-column cards with uncropped product views. */
#results.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

@media (max-width: 900px) {
  #results.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

