/* ============================================
   CHROCHELY CREATIONS — Inner Page Styles
   Shop, Product, Cart, Checkout, Policies
   ============================================ */

/* ── Page Header (shared) ── */
.page-header {
  padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-10);
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-3);
}

.page-header p { color: var(--brown-light); max-width: 480px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--brown-light);
  margin-bottom: var(--space-4);
}

.breadcrumb a { color: var(--brown-light); }
.breadcrumb a:hover { color: var(--brown-dark); }
.breadcrumb .sep { color: var(--warm-beige); }

/* ══════════════════════════════════════
   SHOP PAGE
   ══════════════════════════════════════ */
/* Pinterest-Style Shop Layout */
.shop-layout {
  padding: var(--space-6) 0 var(--space-16);
}

/* Category Pills — Horizontal Scroll */
.shop-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shop-pills::-webkit-scrollbar { display: none; }

.shop-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--white);
  border: 1.5px solid var(--warm-beige);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brown);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.shop-pill:hover {
  border-color: var(--brown-light);
  background: var(--cream);
}

.shop-pill.active {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

.shop-pill svg { width: 16px; height: 16px; }

/* Filter Bar — Compact Row */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--warm-beige);
}

.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.shop-result-count {
  font-size: var(--fs-sm);
  color: var(--brown-light);
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.shop-sort select {
  padding: var(--space-2) var(--space-4);
  padding-right: var(--space-8);
  border: 1.5px solid var(--warm-beige);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--brown);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.shop-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--warm-beige);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--brown);
  background: var(--white);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.shop-filter-toggle:hover { border-color: var(--brown-light); }
.shop-filter-toggle svg { width: 16px; height: 16px; }

/* Dropdown Filter Panel */
.shop-filter-panel {
  background: var(--white);
  border: 1px solid var(--warm-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  display: none;
  box-shadow: var(--shadow-md);
}

.shop-filter-panel.open { display: block; }

.shop-filter-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.shop-filter-group-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-bottom: var(--space-3);
}

.shop-filter-options { display: flex; flex-direction: column; gap: var(--space-2); }

.shop-filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--brown);
  cursor: pointer;
  padding: var(--space-1) 0;
}

.shop-filter-option input[type="checkbox"] { accent-color: var(--rose); width: 16px; height: 16px; }

.shop-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--warm-beige);
}

/* Products Grid — Pinterest Masonry on Desktop */
.shop-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.shop-mobile-filter-btn {
  display: none;
  width: 100%;
  margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════
   PRODUCT PAGE
   ══════════════════════════════════════ */
.product-page {
  padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-16);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.product-gallery { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }

.product-gallery-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cream);
  margin-bottom: var(--space-4);
  cursor: zoom-in;
  position: relative;
}

.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-smooth); }
.product-gallery-main:hover img { transform: scale(1.05); }

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.product-gallery-thumb:hover { opacity: 0.9; }
.product-gallery-thumb.active { border-color: var(--brown); opacity: 1; }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-section { padding-top: var(--space-2); }

.product-category-label {
  font-size: var(--fs-xs);
  color: var(--brown-light);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.product-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--brown-dark);
}

.product-price-original {
  font-size: var(--fs-lg);
  color: var(--warm-tan);
  text-decoration: line-through;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--warm-beige);
}

.product-description {
  margin-bottom: var(--space-6);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--brown-light);
}

.product-option-group {
  margin-bottom: var(--space-6);
}

.product-option-label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brown-dark);
  margin-bottom: var(--space-3);
  display: block;
}

.product-custom-input {
  margin-bottom: var(--space-6);
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.product-actions .btn-cart { flex: 1; }

.product-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}

.product-meta-item svg { width: 18px; height: 18px; color: var(--brown-light); flex-shrink: 0; }
.product-meta-item strong { font-weight: var(--fw-semibold); color: var(--brown-dark); margin-right: var(--space-1); }

.product-related {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--warm-beige);
  margin-top: var(--space-8);
}

/* ══════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════ */
.cart-page { padding: var(--space-10) 0 var(--space-16); }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: var(--space-4); }

.cart-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--brown-dark);
  margin-bottom: var(--space-1);
}

.cart-item-variant { font-size: var(--fs-xs); color: var(--brown-light); margin-bottom: var(--space-3); }

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cart-item-price {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--brown-dark);
}

.cart-item-remove {
  color: var(--brown-light);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  background: none;
  border: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.cart-item-remove:hover { color: var(--error); background: var(--cream); }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.cart-summary h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--warm-beige);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--brown-light);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 2px solid var(--warm-beige);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--brown-dark);
}

.cart-coupon {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.cart-coupon input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--warm-beige);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}

.cart-gift-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--cream-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  cursor: pointer;
}

.cart-gift-wrap input { width: auto; accent-color: var(--brown); }
.cart-gift-wrap-label { font-size: var(--fs-sm); color: var(--brown); }
.cart-gift-wrap-price { margin-left: auto; font-size: var(--fs-sm); color: var(--brown-light); }

/* ══════════════════════════════════════
   CHECKOUT PAGE
   ══════════════════════════════════════ */
.checkout-page { padding: var(--space-10) 0 var(--space-16); }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-8);
  align-items: start;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-6);
}

.checkout-section h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--warm-beige);
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.checkout-form-full { grid-column: 1 / -1; }

.payment-options { display: flex; flex-direction: column; gap: var(--space-3); }

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--warm-beige);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.payment-option:hover { border-color: var(--warm-tan); }
.payment-option.selected { border-color: var(--brown); background: var(--cream-light); }
.payment-option input[type="radio"] { accent-color: var(--brown); }

.payment-option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
}

.payment-option-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--brown-dark);
  font-size: var(--fs-base);
}

.payment-option-desc {
  font-size: var(--fs-xs);
  color: var(--brown-light);
}

/* ── UPI Modal ── */
.upi-modal-content { text-align: center; }
.upi-qr { max-width: 240px; margin: var(--space-6) auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.upi-id { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--brown-dark); margin-bottom: var(--space-4); font-weight: var(--fw-semibold); }

.upi-upload {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 2px dashed var(--warm-beige);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.upi-upload:hover { border-color: var(--brown-light); background: var(--cream-light); }
.upi-upload svg { width: 32px; height: 32px; color: var(--brown-light); margin-bottom: var(--space-2); }
.upi-upload p { font-size: var(--fs-sm); color: var(--brown-light); margin: 0; }

/* ── Order Success ── */
.order-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10);
}

.order-success-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
}

.order-success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--soft-pink), var(--soft-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: success-pop 0.6s var(--ease-bounce);
}

.order-success-icon svg { width: 40px; height: 40px; color: var(--brown-dark); }

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.order-success h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}

.order-success-message {
  font-size: var(--fs-md);
  color: var(--brown-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}

/* ══════════════════════════════════════
   WISHLIST / POLICIES / CONTACT / FAQ
   ══════════════════════════════════════ */
.content-page {
  padding: var(--space-10) 0 var(--space-16);
  max-width: var(--container-md);
  margin: 0 auto;
}

.content-page h2 { margin-bottom: var(--space-6); }
.content-page p { margin-bottom: var(--space-4); }

.policy-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--warm-beige);
}

.policy-section:last-child { border-bottom: none; }

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0;
}

.contact-info-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--soft-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 22px; height: 22px; color: var(--rose); }

/* ══════════════════════════════════════
   RESPONSIVE — Inner Pages
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .shop-products { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .page-header { padding: calc(var(--mobile-nav-height) + var(--space-8)) 0 var(--space-8); }
  .page-header h1 { font-size: var(--fs-2xl); }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-sidebar.open { display: block; position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--white); padding: var(--space-6); overflow-y: auto; }
  .shop-mobile-filter-btn { display: flex; }
  .shop-products { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  .product-page { padding-top: calc(var(--mobile-nav-height) + var(--space-6)); }
  .product-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-gallery { position: static; }
  .product-title { font-size: var(--fs-2xl); }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item-image { width: 90px; height: 90px; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-form-grid { grid-template-columns: 1fr; }

  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .shop-products { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
}
