/* ============================================================
   SRI MANIKANTA POOJA STORES — SHOP, PRODUCT, CART CSS
   ============================================================ */

/* ── Shop Layout ────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-8);
  padding: var(--sp-10) 0;
}

/* ── Shop Sidebar ───────────────────────────────────────────── */
.shop-sidebar { }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.sidebar-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--maroon);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  line-height: 1;
}
.sidebar-title i {
  color: var(--saffron);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.filter-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  border: 1.5px solid transparent;
}
.filter-item:hover { background: var(--sand); }
.filter-item.active {
  background: var(--maroon-pale);
  border-color: var(--maroon-light);
}
.filter-item-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--charcoal);
  line-height: 1.4;
}
.filter-item.active .filter-item-left { color: var(--maroon); font-weight: 600; }
.filter-emoji {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  width: 22px;
  flex-shrink: 0;
}
.filter-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--sand);
  padding: 1px 7px;
  border-radius: var(--r-full);
}
.filter-item.active .filter-count {
  background: var(--saffron);
  color: white;
}
.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.price-input {
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
}
.price-input:focus { border-color: var(--saffron); }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--sand-dark);
  outline: none;
  margin: var(--sp-4) 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--saffron);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,119,34,0.4);
}

/* ── Shop Content ───────────────────────────────────────────── */
.shop-content { }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.shop-result-count { font-size: var(--text-sm); color: var(--text-muted); }
.shop-result-count strong { color: var(--maroon); }
.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.sort-select {
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.sort-select:focus { border-color: var(--saffron); }
.view-toggle { display: flex; gap: var(--sp-1); }
.view-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t-fast);
  font-size: 14px;         /* explicit size so icon centres cleanly */
  line-height: 1;
}
.view-btn.active { background: var(--maroon); border-color: var(--maroon); color: white; }
.shop-search-bar {
  position: relative;
  margin-bottom: var(--sp-6);
}
.shop-search-bar input {
  width: 100%;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 3rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--white);
  outline: none;
  transition: all var(--t-fast);
}
.shop-search-bar input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,119,34,0.12);
}
.shop-search-bar i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  background: var(--maroon-pale);
  border: 1px solid var(--maroon-light);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  color: var(--maroon);
  font-weight: 500;
}
.filter-tag button {
  font-size: 14px;
  color: var(--maroon);
  cursor: pointer;
  line-height: 1;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.shop-grid.list-view {
  grid-template-columns: 1fr;
}
.shop-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
}
.shop-grid.list-view .product-card .card-img-wrap {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 200px;
}
.shop-grid.list-view .product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── Product Detail Page ────────────────────────────────────── */
.product-detail {
  padding: var(--sp-6) 0 var(--sp-4);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.product-gallery { position: static; }
.main-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--sand);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--border-light);
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--t-slow);
}
.main-image:hover img { transform: scale(1.04); }
.thumb-row {
  display: flex;
  gap: var(--sp-3);
}
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--sand);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb.active { border-color: var(--saffron); }
.thumb:hover  { border-color: var(--gold); }
.product-info { }
.product-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--saffron);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.product-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--maroon);
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.product-price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--maroon);
  font-family: var(--font-heading);
}
.product-price-original {
  font-size: var(--text-xl);
  text-decoration: line-through;
  color: var(--text-muted);
}
.product-price-save {
  font-size: var(--text-sm);
  color: var(--color-success);
  font-weight: 600;
  background: rgba(46,125,50,0.1);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.product-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.product-option-group { margin-bottom: var(--sp-5); }
.product-option-label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--charcoal);
  margin-bottom: var(--sp-3);
}
.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.product-option-btn {
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-body);
}
.product-option-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.product-option-btn.active { background: var(--saffron); border-color: var(--saffron); color: white; }
.product-action-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.product-features {
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-6);
}
.product-feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}
.product-feature-item i {
  color: var(--saffron);
  width: 18px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.related-section {
  padding: var(--sp-5) 0 var(--sp-10);
  background: var(--sand);
  /* Subtle top border so section edge is visible in viewport */
  border-top: 3px solid var(--saffron);
  position: relative;
}



.related-section .section-header {
  margin-bottom: var(--sp-5);
}
.related-section .section-title { font-size: var(--text-2xl); }
.related-section .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.related-section .product-card .card-img-wrap { aspect-ratio: 1/1; }
.related-section .product-card .card-body { padding: var(--sp-3); }
.related-section .product-card .card-title { font-size: var(--text-sm); }
.related-section .product-card .price-current { font-size: var(--text-base); }
.related-section .product-card .card-add-btn { font-size: var(--text-xs); padding: var(--sp-2); }

/* ── Cart Page ──────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-8);
  padding: var(--sp-10) 0;
}
.cart-table { }
.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 2px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}
.cart-item:hover { background: var(--gold-pale); border-radius: var(--r-md); }
.cart-item-info {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--charcoal);
  margin-bottom: 2px;
}
.cart-item-variant {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.cart-item-price { font-weight: 600; color: var(--maroon); }
.cart-item-subtotal { font-weight: 700; color: var(--maroon); }
.cart-remove-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t-fast);
  font-size: 14px;
  background: var(--white);
}
.cart-remove-btn:hover { background: #FEE; border-color: #F44; color: #F44; }
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  position: sticky;
  top: 90px;
  height: fit-content;
}
.cart-summary h3 {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--sp-2) 0;
}
.summary-row.total {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--maroon);
  border-top: 2px solid var(--border);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
}
.coupon-field {
  display: flex;
  gap: var(--sp-2);
  margin: var(--sp-5) 0;
}
.coupon-field input { flex: 1; }
.note-box {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  color: var(--gold-dark);
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.note-box i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ── Checkout Page ──────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  padding: var(--sp-10) 0;
}
.checkout-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  margin-bottom: var(--sp-5);
}
.checkout-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--maroon);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.checkout-section h3 span {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--saffron);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 700;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
}
.delivery-option:hover { border-color: var(--saffron); }
.delivery-option.selected { border-color: var(--saffron); background: rgba(255,119,34,0.04); }
.delivery-option input[type="radio"] { display: none; }
.delivery-option-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.delivery-option-text strong { display: block; font-size: var(--text-sm); color: var(--charcoal); }
.delivery-option-text span   { font-size: var(--text-xs); color: var(--text-muted); }
.order-success {
  text-align: center;
  padding: var(--sp-12);
}
.order-success .success-icon {
  font-size: 80px;
  color: var(--color-success);
  margin-bottom: var(--sp-5);
}

/* ── About Page ─────────────────────────────────────────────── */
.about-story { padding: var(--sp-16) 0; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.about-story-img {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.stat-box {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  border: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--maroon);
  font-weight: 700;
}
.stat-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.values-section { padding: var(--sp-16) 0; background: var(--sand); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.value-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--t-normal);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-icon {
  font-size: 44px;
  margin-bottom: var(--sp-4);
}
.value-title { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--maroon); margin-bottom: var(--sp-3); }
.value-desc  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-layout { padding: var(--sp-12) 0; }
.contact-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
.contact-info-card {
  background: var(--maroon);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  color: var(--white);
  height: fit-content;
}
.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--gold-light);
  margin-bottom: var(--sp-6);
}
.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.contact-info-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-lg);
  background: rgba(255,119,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: var(--text-sm); color: var(--gold-light); margin-bottom: 4px; }
.contact-info-text span, .contact-info-text a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.contact-info-text a:hover { color: var(--white); }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
}
.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--maroon);
  margin-bottom: var(--sp-6);
}
.map-section { padding: var(--sp-10) 0; }
.map-wrapper {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}
.map-wrapper iframe { display: block; width: 100%; }
.store-hours {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  border: 1px solid var(--border-light);
  margin-top: var(--sp-6);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}
.hours-row:last-child { border-bottom: none; }
.hours-day   { font-weight: 600; color: var(--charcoal); }
.hours-time  { color: var(--text-muted); }
.hours-time.open { color: var(--color-success); font-weight: 500; }
.hours-time.closed { color: var(--color-error); }

/* ── Responsive Shop/Product/Cart ───────────────────────────── */
@media (max-width: 1024px) {
  .shop-layout    { grid-template-columns: 220px 1fr; }
  .shop-grid      { grid-template-columns: repeat(2, 1fr); }
  .cart-layout    { grid-template-columns: 1fr; }
  .cart-summary   { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .related-section .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .shop-layout    { grid-template-columns: 1fr; }
  .shop-sidebar   { display: none; }
  .shop-sidebar.mobile-open { display: block; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-table-header { display: none; }
  .cart-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .cart-item-info { grid-column: 1/-1; }
  .form-row { grid-template-columns: 1fr; }
  .related-section .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-grid      { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .values-grid    { grid-template-columns: 1fr; }
  .related-section .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
}
