/* =========================================================================
   VĀMIKARA LUXURY ATELIER — E-COMMERCE STYLING & COMPONENT SYSTEM
   ========================================================================= */

:root {
  --ink: #26382f;
  --paper: #f7f7ef;
  --cream: #e5e9df;
  --muted: #718077;
  --line: #cbd4c9;
  --wine: #3f5f50;
  --rose: #b9c6b9;
  --gold: #bda16a;
  --gold-rich: #c5a059;
  --gold-glow: rgba(197, 160, 89, 0.18);
  --emerald: #1c3629;
}

.announcement {
  background: #2f4d40;
  color: #f4f1e4;
  font-weight: 500;
}

.hero-image {
  background-image: linear-gradient(90deg, rgba(24,42,34,.35), rgba(24,42,34,0) 65%), url('hero-v3.webp');
  background-size: cover;
  background-position: center center;
}

@media (max-width: 800px) {
  .hero-image {
    background-image: linear-gradient(90deg, rgba(24,42,34,.35), rgba(24,42,34,0) 65%), url('hero-v3-mobile.webp');
  }
}

.hero-image:before {
  background: linear-gradient(90deg, rgba(20,35,28,.65), rgba(20,35,28,0) 70%);
}

.hero-image:after {
  background: linear-gradient(135deg, rgba(222,211,164,.2), rgba(54,79,65,.12));
}

.hero-glow {
  background: rgba(188,184,135,.2);
}

.button-light {
  background: #f5f2e7;
  color: #314b3f;
}

.button-gold {
  background: linear-gradient(135deg, #d4b16a, #b59247);
  color: #17241d;
  font-weight: 700;
}

.button-gold:hover {
  filter: brightness(1.08);
}

.edit-crimson { background: #496556; color: #edf1e7; }
.edit-rose { background: #a9b9aa; color: #253d32; }
.edit-gold { background: #c9b786; color: #334537; }

.promise { background: #2f4d40; }
.promise-image { background: linear-gradient(130deg, #647d68, #273d33); }
.contact { background: #d9e1d5; }
.shade span { background: #486a57; border-color: #c1aa72; }

.art-one { background: linear-gradient(145deg, #c9d0b6 10%, #617d69 50%, #294337); }
.art-two { background: radial-gradient(circle at 70% 29%, #cdb578 0 9%, transparent 10%), linear-gradient(120deg, #91a891, #e7e4cf); }
.art-three { background: linear-gradient(140deg, #d8dbc7, #668173); }

/* Header Actions & Navigation */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-trigger {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  color: var(--ink);
  transition: all 0.2s;
}

.track-trigger:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Shop Controls (Search, Sort, Filters) */
.shop-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap input {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font: 12px Manrope, sans-serif;
  color: var(--ink);
  border-radius: 4px;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 2px rgba(47, 77, 64, 0.12);
}

.sort-wrap select {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: 11px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 35px;
}

.filter-bar .filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 14px;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-bar .filter.active,
.filter-bar .filter:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Product Grid (Multi-Item Layout) */
.product-grid,
.product-grid.is-multi {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(35, 56, 47, 0.1);
}

.product-image {
  position: relative !important;
  width: 100% !important;
  height: 400px !important;
  background: #e8ede6 !important;
  overflow: hidden;
}

.product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  background: #2f4d40;
  color: #f7f7ef;
  font: 9px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 20px;
}

.wishlist {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #2f4d40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.wishlist:hover {
  transform: scale(1.1);
}

.quick-view {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  background: rgba(247, 247, 239, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.product-card:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 20px 20px 16px !important;
  background: #ffffff !important;
  border: none !important;
}

.product-type {
  font: 10px 'DM Mono', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--muted) !important;
  margin: 0 0 6px !important;
}

.product-info h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stock-badge {
  font: 10px 'DM Mono', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #276344 !important;
  margin: 0 0 14px !important;
}

.price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--line) !important;
}

.price strong {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.price del {
  font: 11px 'DM Mono', monospace !important;
  color: var(--muted) !important;
}

.price small {
  font: 10px 'DM Mono', monospace !important;
  text-transform: uppercase !important;
  color: #8c2631 !important;
  margin-left: auto;
  font-weight: 600;
}

.add-button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 0 !important;
  padding: 15px 20px !important;
  font: 11px Manrope, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: background 0.2s !important;
}

.add-button:hover {
  background: #14211a !important;
}

.add-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.stock-badge {
  font: 9px 'DM Mono', monospace;
  text-transform: uppercase;
  color: #276344;
  letter-spacing: 0.05em;
  margin: 6px 0 12px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font: 13px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Bag Drawer & Coupon Engine */
.bag-items {
  overflow-y: auto;
  padding-right: 4px;
}

.coupon-box {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.coupon-form {
  display: flex;
  gap: 8px;
}

.coupon-form input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: 11px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
}

.coupon-apply-btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0 14px;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.coupon-applied-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e8f4ed;
  border: 1px solid #7cb398;
  color: #234e38;
  padding: 6px 10px;
  font: 10px 'DM Mono', monospace;
  margin-top: 8px;
  border-radius: 2px;
}

.coupon-applied-tag button {
  background: none;
  border: 0;
  font-size: 14px;
  color: #234e38;
  cursor: pointer;
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font: 11px 'DM Mono', monospace;
  text-transform: uppercase;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.discount-row {
  color: #1f6b43;
  font-weight: 600;
}

.free-badge {
  color: #276344;
  font-weight: 700;
}

.total-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}

.bag-perks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font: 9px 'DM Mono', monospace;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Quick Modal Actions */
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .button {
  width: 100%;
  margin-top: 0;
}

/* Checkout Trust Pillars */
.checkout-trust {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid rgba(255, 229, 210, 0.25);
  padding-top: 18px;
}

.trust-item {
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e8d1c5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item span {
  color: var(--gold);
}

.razorpay-note {
  text-align: center;
  margin-top: 10px;
  font: 9px 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.payment-details-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e5f2eb;
  border: 1px solid #7cb398;
  color: #234e38;
  padding: 8px 14px;
  border-radius: 24px;
  font: 11px 'DM Mono', monospace;
  margin: 16px 0;
  letter-spacing: 0.05em;
}

.payment-details-pill span {
  background: #2f4d40;
  color: #f7f7ef;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  text-transform: uppercase;
}

/* Order Success Invoice Box */
.order-invoice-box {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin: 14px 0 20px;
  text-align: left;
  font: 11px 'DM Mono', monospace;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.invoice-row:last-child {
  border-bottom: 0;
  font-weight: 700;
  font-size: 13px;
  padding-top: 8px;
  color: var(--ink);
}

.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Tracking Modal */
.tracking-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 42, 34, 0.65);
  z-index: 80;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.tracking-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.tracking-card {
  background: var(--paper);
  width: min(640px, 100%);
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.tracking-close {
  position: absolute;
  right: 18px;
  top: 14px;
}

.tracking-head h2 {
  font: 36px 'Playfair Display', serif;
  margin: 8px 0 14px;
}

.tracking-head p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.tracking-form {
  display: flex;
  gap: 10px;
}

.tracking-form input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: 13px 'DM Mono', monospace;
  text-transform: uppercase;
}

.tracking-result {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.tracking-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tracking-meta small {
  display: block;
  font: 9px 'DM Mono', monospace;
  text-transform: uppercase;
  color: var(--muted);
}

.tracking-meta strong {
  font: 14px 'DM Mono', monospace;
}

.status-tag {
  background: #2f4d40;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 28px;
}

.tracking-timeline:before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-step {
  position: relative;
}

.timeline-step:before {
  content: '';
  position: absolute;
  left: -28px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--line);
}

.timeline-step.completed:before {
  background: #2f4d40;
  border-color: #2f4d40;
}

.timeline-step.active:before {
  background: var(--gold);
  border-color: #2f4d40;
  box-shadow: 0 0 0 4px rgba(189, 161, 106, 0.25);
}

.timeline-step h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.timeline-step p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
  .product-grid,
  .product-grid.is-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
  .product-image {
    height: 340px !important;
  }
}

@media (max-width: 640px) {
  .product-grid,
  .product-grid.is-multi {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .product-image {
    height: 420px !important;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap input {
    min-width: 0;
    width: 100%;
  }
}

