/* ============================================================
   SHANIEL BESPOKE TAILOR — SHOP / PRODUCT / CART CSS
   ============================================================ */

/* ── SHOP LIST PAGE ─────────────────────────────────────────── */
.shop-page { padding: 32px 0 80px; background: var(--bg-light); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }

.shop-sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar-widget { margin-bottom: 20px; background: #fff; border: 1px solid #dde8f0; padding: 18px; border-radius: 8px; }
.sidebar-title { font-family: var(--font-sans); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #1a2d3d; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e8f4ff; }
.filter-list li { margin-bottom: 8px; }
.filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.82rem; color: #4a5a6a; transition: color 0.2s; }
.filter-list label:hover { color: #2563a8; }
.filter-list input[type="radio"] { accent-color: #2563a8; width: 13px; height: 13px; flex-shrink: 0; cursor: pointer; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 10px 16px; background: #fff; border: 1px solid #dde8f0; border-radius: 8px; flex-wrap: wrap; gap: 8px; }
.results-count { font-size: 0.8rem; color: #6b7a8d; }

/* ── PRODUCTS GRID ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── PRODUCT CARD ───────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1px solid #dde8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(37,99,168,0.13);
}

/* Product image container — show suit side, hide branded card right */
.product-img {
  overflow: hidden;
  height: 320px;
  background: #f8f9fa;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.04);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: #2563a8;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  pointer-events: none;
}

/* Card info area */
.product-info { padding: 8px 10px 10px; }
.product-info h3 {
  font-size: 0.76rem;
  margin-bottom: 4px;
  line-height: 1.25;
  font-weight: 600;
  color: #1a2d3d;
}
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a:hover { color: #2563a8; }
.product-info > p { display: none; }

.product-price { margin-bottom: 7px; display: flex; align-items: baseline; gap: 3px; }
.price-from { font-size: 0.54rem; color: #8a9aaa; text-transform: uppercase; letter-spacing: 0.05em; }
.price-current { font-family: 'Cormorant Garamond', serif; font-size: 0.92rem; color: #1a3a5c; font-weight: 600; }

.product-actions { display: flex; gap: 5px; }
.product-actions .btn-primary,
.product-actions .btn-outline {
  flex: 1;
  text-align: center;
  padding: 6px 5px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Category section headings */
.cat-section-heading {
  grid-column: 1 / -1;
  padding: 6px 0 4px;
  margin-top: 20px;
  border-bottom: 2px solid #2563a8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-section-heading span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563a8;
  background: #e8f4ff;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ── PRODUCT DETAIL PAGE ────────────────────────────────────── */
.product-detail { padding: 0 0 80px; background: #fff; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-top: 40px; }

/* Gallery */
.product-gallery { position: sticky; top: 88px; }
.gallery-main {
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
  border-radius: 8px;
  height: 520px;
  border: 1px solid #dde8f0;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.4s ease;
  cursor: zoom-in;
  display: block;
}
.gallery-main:hover img { transform: scale(1.02); }

.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  border-radius: 6px;
}
.gallery-thumb.active { border-color: #2563a8; }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}
.gallery-zoom {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #dde8f0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.gallery-zoom:hover { background: #2563a8; color: #fff; }

/* Product Info */
.product-info-panel { }
.product-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; font-weight: 400; }
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-rating .stars { font-size: 0.9rem; }
.product-rating span { font-size: 0.8rem; color: #6b7a8d; }
.product-price-detail { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; color: #1a3a5c; margin-bottom: 5px; font-weight: 400; }
.product-price-note { font-size: 0.76rem; color: #6b7a8d; margin-bottom: 20px; }
.product-divider { border: none; border-top: 1px solid #e8f0f8; margin: 16px 0; }

/* Option Groups */
.option-group { margin-bottom: 18px; }
.option-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #1a2d3d; margin-bottom: 9px; }
.option-label span { color: #2563a8; font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.82rem; }

/* Fabric Swatches */
.fabric-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fabric-swatch { width: 42px; height: 42px; cursor: pointer; border: 2px solid transparent; background-size: cover; background-position: center; transition: all 0.2s; position: relative; border-radius: 6px; }
.fabric-swatch:hover, .fabric-swatch.active { border-color: #2563a8; transform: scale(1.08); }
.fabric-swatch-name { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); background: #1a2d3d; color: #fff; font-size: 0.6rem; padding: 3px 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; border-radius: 2px; z-index: 10; }
.fabric-swatch:hover .fabric-swatch-name { opacity: 1; }

/* Style Buttons */
.style-options { display: flex; flex-wrap: wrap; gap: 6px; }
.style-btn { padding: 7px 14px; border: 1.5px solid #dde8f0; background: #fff; font-size: 0.76rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #4a5a6a; border-radius: 6px; font-family: var(--font-sans); }
.style-btn:hover { border-color: #2563a8; color: #2563a8; background: #e8f4ff; }
.style-btn.active { border-color: #2563a8; color: #2563a8; background: #e8f4ff; font-weight: 600; }

/* Measurement Toggle */
.measurement-toggle { display: flex; margin-bottom: 14px; border: 1.5px solid #dde8f0; border-radius: 6px; overflow: hidden; }
.measurement-toggle button { padding: 9px 18px; border: none; background: none; cursor: pointer; font-size: 0.76rem; font-weight: 600; transition: all 0.2s; font-family: var(--font-sans); color: #6b7a8d; flex: 1; }
.measurement-toggle button.active { background: #2563a8; color: #fff; }
.measurements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.measurement-field label { font-size: 0.63rem; }
.measurement-field input { padding: 8px 10px; font-size: 0.84rem; }

/* Add to Cart Row */
.add-to-cart-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid #dde8f0; border-radius: 6px; overflow: hidden; }
.qty-btn { width: 40px; height: 46px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #1a2d3d; transition: all 0.2s; font-family: var(--font-sans); line-height: 1; }
.qty-btn:hover { color: #2563a8; background: #e8f4ff; }
.qty-input { width: 50px; height: 46px; text-align: center; border: none; border-left: 1.5px solid #dde8f0; border-right: 1.5px solid #dde8f0; font-size: 1rem; outline: none; font-family: var(--font-sans); }
.add-to-cart-row .btn-primary { flex: 1; text-align: center; padding: 14px; font-size: 0.74rem; }
.wishlist-btn { width: 46px; height: 46px; border: 1.5px solid #dde8f0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #6b7a8d; transition: all 0.2s; border-radius: 6px; font-size: 1.1rem; }
.wishlist-btn:hover { border-color: #2563a8; color: #2563a8; }
.buy-now-btn { width: 100%; margin-top: 10px; text-align: center; padding: 14px; display: block; font-size: 0.74rem; }

/* Trust Badges */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.trust-badge { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #f0f7ff; border: 1px solid #dde8f0; font-size: 0.73rem; color: #4a5a6a; border-radius: 6px; }
.trust-badge-icon { font-size: 1rem; flex-shrink: 0; }

/* Product Meta */
.product-meta { margin-top: 18px; font-size: 0.8rem; color: #6b7a8d; padding-top: 14px; border-top: 1px solid #e8f0f8; }
.product-meta span { color: #1a2d3d; font-weight: 600; }
.product-meta p { margin-bottom: 4px; }
.product-share { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 0.75rem; color: #6b7a8d; flex-wrap: wrap; }
.share-btn { padding: 4px 11px; border: 1px solid #dde8f0; font-size: 0.68rem; color: #4a5a6a; transition: all 0.2s; border-radius: 4px; cursor: pointer; background: none; font-family: var(--font-sans); }
.share-btn:hover { border-color: #2563a8; color: #2563a8; }

/* Product Tabs */
.product-tabs { margin-top: 52px; border-top: 1px solid #e8f0f8; }
.product-tabs .tab-content { padding: 28px 0; max-width: 860px; }

/* Related Products */
.related-products { padding: 56px 0; background: var(--bg-light); }
.related-products .products-grid { grid-template-columns: repeat(4, 1fr); }

/* ── CART PAGE ──────────────────────────────────────────────── */
.cart-page { padding: 48px 0 80px; background: var(--bg-light); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-table-wrap { background: #fff; border: 1px solid #dde8f0; border-radius: 8px; overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-family: var(--font-sans); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7a8d; padding: 13px 16px; border-bottom: 1.5px solid #dde8f0; text-align: left; background: #f8fafc; }
.cart-table td { padding: 16px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; }
.cart-item-img { width: 70px; height: 88px; object-fit: cover; border-radius: 6px; }
.cart-item-name { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.75rem; color: #6b7a8d; }
.cart-item-remove { font-size: 0.71rem; color: #9aabb8; cursor: pointer; margin-top: 7px; display: inline-block; transition: color 0.2s; }
.cart-item-remove:hover { color: #c00; }
.cart-summary-box { background: #fff; border: 1px solid #dde8f0; border-radius: 8px; padding: 22px; position: sticky; top: 88px; }
.cart-summary-title { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 18px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 11px; font-size: 0.88rem; align-items: center; }
.cart-summary-row.total { border-top: 2px solid #dde8f0; padding-top: 12px; font-weight: 600; font-size: 1.05rem; margin-top: 7px; }
.cart-summary-row.total span:last-child { color: #1a3a5c; font-family: var(--font-serif); font-size: 1.25rem; }
.coupon-row { display: flex; margin: 12px 0; }
.coupon-row input { flex: 1; padding: 9px 11px; border: 1.5px solid #dde8f0; border-right: none; font-size: 0.84rem; font-family: var(--font-sans); border-radius: 6px 0 0 6px; outline: none; }
.coupon-row input:focus { border-color: #2563a8; }
.coupon-row button { padding: 9px 15px; background: #1a2d3d; color: #fff; border: none; font-size: 0.7rem; font-weight: 700; cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.07em; border-radius: 0 6px 6px 0; transition: background 0.2s; }
.coupon-row button:hover { background: #2563a8; }
.checkout-btn { width: 100%; margin-top: 12px; padding: 15px; font-size: 0.76rem; display: block; text-align: center; }
.trust-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e8f0f8; }
.trust-list li { font-size: 0.76rem; color: #6b7a8d; padding: 3px 0; display: flex; align-items: center; gap: 5px; }
.trust-list li::before { content: '✓'; color: #2563a8; font-weight: 700; flex-shrink: 0; }
.empty-cart { text-align: center; padding: 56px 24px; background: #fff; border: 1px solid #dde8f0; border-radius: 8px; }

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
.checkout-page { padding: 48px 0 80px; background: var(--bg-light); }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-box { background: #fff; border: 1px solid #dde8f0; border-radius: 8px; padding: 26px; margin-bottom: 18px; }
.checkout-box-title { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #e8f0f8; display: flex; align-items: center; gap: 9px; }
.payment-methods { display: flex; flex-direction: column; gap: 9px; }
.payment-method { border: 1.5px solid #dde8f0; padding: 13px 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 12px; border-radius: 6px; background: #fff; }
.payment-method:hover { border-color: #a8c4e0; }
.payment-method.selected { border-color: #2563a8; background: #e8f4ff; }
.payment-method input[type="radio"] { accent-color: #2563a8; margin-top: 2px; flex-shrink: 0; }
.payment-method-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.payment-method-desc { font-size: 0.74rem; color: #6b7a8d; }
.order-summary-sidebar { background: #fff; border: 1px solid #dde8f0; border-radius: 8px; padding: 22px; position: sticky; top: 88px; }
.order-item-row { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f0f4f8; align-items: center; }
.order-item-img { width: 55px; height: 68px; object-fit: cover; border-radius: 5px; background: #f0f4f8; flex-shrink: 0; }
.order-item-name { font-size: 0.85rem; font-weight: 500; }
.order-item-meta { font-size: 0.71rem; color: #6b7a8d; margin-top: 2px; }
.order-item-price { font-family: var(--font-serif); color: #1a3a5c; margin-left: auto; flex-shrink: 0; font-size: 1rem; }
.secure-badge { background: #f0f4f8; border: 1px solid #dde8f0; padding: 11px; margin-top: 12px; font-size: 0.75rem; color: #6b7a8d; border-radius: 6px; text-align: center; }

/* ── PAY ONLINE PAGE ────────────────────────────────────────── */
.pay-online-page { padding: 56px 0 80px; background: var(--bg-peach); }
.pay-option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.pay-option-card { border: 1.5px solid #dde8f0; padding: 22px 16px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fff; border-radius: 8px; }
.pay-option-card:hover { border-color: #2563a8; background: #e8f4ff; }
.pay-option-card.selected { border-color: #2563a8; border-width: 2px; background: #e8f4ff; }
.pay-option-icon { font-size: 1.8rem; margin-bottom: 8px; }
.pay-option-card h4 { margin-bottom: 5px; font-size: 0.95rem; }
.pay-option-card p { font-size: 0.76rem; color: #6b7a8d; margin: 0; }
.payment-form-box { background: #fff; border: 1px solid #dde8f0; border-radius: 8px; padding: 32px; box-shadow: 0 4px 20px rgba(37,99,168,0.08); max-width: 680px; margin: 0 auto; }

/* Success Box */
.success-box { text-align: center; padding: 44px 24px; background: #fff; border: 1px solid #dde8f0; border-radius: 8px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: #2563a8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 18px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .product-img { height: 280px; }
}

@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .product-img { height: 260px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .related-products .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
  .pay-option-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-img { height: 240px; }
  .related-products .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 200px; }
  .product-info { padding: 10px 12px 12px; }
  .product-info h3 { font-size: 0.82rem; }
  .product-actions { gap: 6px; }
  .product-actions .btn-primary,
  .product-actions .btn-outline { padding: 8px 6px; font-size: 0.66rem; }
  .gallery-main { aspect-ratio: 1/1; }
  .measurements-grid { grid-template-columns: repeat(2, 1fr); }
  .add-to-cart-row { flex-wrap: wrap; }
  .add-to-cart-row .btn-primary { flex: 1; min-width: 100px; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-page { padding: 18px 0 50px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-img { height: 300px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
