/* ============================================================
   PACHMARHI — Shop / Cart / Checkout Styles
   Luxury organic palette: forest green, stone, teal, gold
   ============================================================ */

/* ── Brand Palette Overrides for Shop ── */
:root {
  --gold:    #C9A84C;
  --forest:  #2C4A3E;
  --stone:   #8C7B6B;
  --teal:    #2A7B74;
  --mist:    #F5F2EE;
  --ink:     #1A1A1A;
  --orange:  #FF9000;
}

/* ── Shop Hero ── */
.shop-hero {
  background: var(--forest);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://www.pachmarhi.com/wp-content/uploads/2016/11/waterfall-141771_1280.jpg') center/cover;
  opacity: .18;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.shop-hero-content .eyebrow {
  display: inline-block;
  font-family: 'Signika', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.shop-hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.1;
}

.shop-hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}

.shop-hero-content p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Conservation Banner ── */
.conservation-bar {
  background: var(--forest);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 12px 20px;
  font-size: .82rem;
  letter-spacing: .5px;
}

.conservation-bar span { color: var(--gold); font-weight: 600; }

/* ── Category Tabs ── */
.category-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 36px 20px 12px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 10px 28px;
  border: 1.5px solid #ddd;
  border-radius: 40px;
  font-family: 'Signika', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all .25s;
}

.cat-tab:hover { border-color: var(--forest); color: var(--forest); }
.cat-tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── Product Grid ── */
.products-section {
  padding: 40px 0 80px;
}

.category-group { margin-bottom: 64px; }

.category-group-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.category-group-header h2 {
  font-size: 1.5rem;
  color: var(--ink);
}

.category-group-header .cat-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #ddd, transparent);
}

.category-group-header .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cat-water  .cat-icon { background: #e0f4f3; color: var(--teal); }
.cat-apparel .cat-icon { background: #f5ede3; color: var(--stone); }
.cat-gear   .cat-icon { background: #e8f0eb; color: var(--forest); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ── Product Card ── */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.11);
}

.product-img-wrap {
  position: relative;
  background: var(--mist);
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap .product-emoji {
  font-size: 5rem;
  transition: transform .4s;
}

.product-card:hover .product-emoji { transform: scale(1.12); }

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--forest);
  color: #fff;
  font-family: 'Signika', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-tag.limited { background: var(--gold); color: #fff; }
.product-tag.new     { background: var(--teal); }

.product-info {
  padding: 20px 22px 22px;
}

.product-info .brand-line {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.product-info h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-info .product-desc {
  font-size: .83rem;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Signika', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.product-price .currency {
  font-size: .75rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 1px;
  color: var(--stone);
}

.add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .2s;
  flex-shrink: 0;
}

.add-to-cart-btn:hover { background: var(--teal); transform: scale(1.1); }
.add-to-cart-btn.added { background: var(--gold); }

/* ── Floating Cart Button ── */
#cart-fab {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 900;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Signika', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(44,74,62,.4);
  transition: background .25s, transform .2s;
}

#cart-fab:hover { background: var(--teal); transform: translateY(-2px); }

#cart-fab .cart-count {
  background: var(--gold);
  color: #fff;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .8rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

#cart-fab.hidden { display: none; }

/* ── Cart Drawer ── */
#cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 95vw;
  height: 100%;
  background: #fff;
  z-index: 1100;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .4s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
}

#cart-drawer.open { right: 0; }

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1099;
  display: none;
  backdrop-filter: blur(2px);
}

#cart-overlay.open { display: block; }

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.cart-header .cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color .2s;
}

.cart-header .cart-close:hover { color: var(--ink); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.cart-empty .empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.cart-empty p { font-size: .95rem; }

.cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-icon {
  width: 64px;
  height: 64px;
  background: var(--mist);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info .brand { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cart-item-info h4 { font-size: .95rem; color: var(--ink); margin: 3px 0 6px; }
.cart-item-info .item-price { font-family: 'Signika', sans-serif; font-weight: 700; color: var(--forest); font-size: 1rem; }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--forest);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.qty-btn:hover { background: var(--mist); }
.qty-display { min-width: 28px; text-align: center; font-size: .88rem; font-weight: 600; }

.remove-item-btn {
  background: none;
  border: none;
  font-size: .75rem;
  color: #bbb;
  cursor: pointer;
  transition: color .2s;
}

.remove-item-btn:hover { color: #e74c3c; }

.cart-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px 24px;
  background: #fafafa;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cart-subtotal .label { font-size: .85rem; color: #888; }
.cart-subtotal .value { font-family: 'Signika', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }

.cart-note {
  font-size: .75rem;
  color: #aaa;
  margin-bottom: 18px;
  text-align: right;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Signika', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover { background: var(--teal); }

/* ── Checkout Page ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 80px;
}

.checkout-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 40px;
}

.checkout-form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.checkout-form-card .subtitle {
  color: #999;
  font-size: .88rem;
  margin-bottom: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkout-form-card .form-group { margin-bottom: 18px; }

.checkout-form-card label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.checkout-form-card input,
.checkout-form-card select,
.checkout-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: .93rem;
  color: var(--ink);
  background: #fafafa;
  transition: border-color .2s, background .2s;
}

.checkout-form-card input:focus,
.checkout-form-card select:focus,
.checkout-form-card textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}

.checkout-form-card textarea { min-height: 90px; resize: vertical; }

.section-label {
  font-family: 'Signika', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.submit-order-btn {
  width: 100%;
  padding: 16px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Signika', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: .5px;
  transition: background .25s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-order-btn:hover { background: var(--teal); transform: translateY(-1px); }
.submit-order-btn:disabled { background: #aaa; cursor: not-allowed; transform: none; }

.trust-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: #aaa;
}

/* ── Order Summary (checkout sidebar) ── */
.order-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 28px;
  position: sticky;
  top: 92px;
}

.order-summary h3 {
  font-size: 1.15rem;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--gold);
  color: var(--ink);
}

.order-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.order-line:last-of-type { border-bottom: none; }

.order-line .line-icon {
  width: 44px;
  height: 44px;
  background: var(--mist);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.order-line .line-info { flex: 1; min-width: 0; }
.order-line .line-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
.order-line .line-qty  { font-size: .76rem; color: #aaa; margin-top: 2px; }
.order-line .line-price { font-family: 'Signika', sans-serif; font-weight: 700; color: var(--forest); font-size: .95rem; white-space: nowrap; }

.order-totals { margin-top: 20px; padding-top: 16px; border-top: 1.5px solid #f0f0f0; }
.order-total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .88rem; color: #888; }
.order-total-row.grand { font-family: 'Signika', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-top: 10px; }
.order-total-row.grand span:last-child { color: var(--forest); }

.order-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f0f5f4;
  border-radius: 6px;
  font-size: .78rem;
  color: var(--forest);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
}

/* ── Thank You Page ── */
.thankyou-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  padding: 60px 20px;
}

.thankyou-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.1);
  padding: 60px 56px;
  text-align: center;
  max-width: 580px;
  width: 100%;
}

.thankyou-card .ty-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
}

.thankyou-card h1 {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.thankyou-card .order-ref {
  display: inline-block;
  background: var(--mist);
  border: 1px solid #e0d8cc;
  border-radius: 6px;
  padding: 8px 20px;
  font-family: 'Signika', sans-serif;
  font-weight: 600;
  color: var(--forest);
  font-size: .95rem;
  margin: 16px 0 24px;
  letter-spacing: 1px;
}

.thankyou-card p {
  color: #777;
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.thankyou-card .divider {
  height: 1px;
  background: #f0ebe5;
  margin: 28px 0;
}

.thankyou-card .what-next h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--ink);
}

.what-next-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.what-next-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .87rem;
  color: #666;
  line-height: 1.5;
}

.what-next-item .step-num {
  width: 24px;
  height: 24px;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.thankyou-card .ty-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Toast notification ── */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-family: 'Signika', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */

/* Tablet — 768px to 1024px */
@media (max-width: 1024px) {
  /* Product grid: 2 columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-img-wrap {
    height: 280px;
  }

  /* Ethos strip: stack to 1 col */
  .ethos-strip-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Checkout */
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
}

/* Mobile — up to 767px */
@media (max-width: 767px) {
  /* Shop hero */
  .shop-hero {
    min-height: 320px;
    padding: 60px 20px;
  }

  .shop-hero-content h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .shop-hero-content p {
    font-size: .92rem;
  }

  /* Category tabs: scroll horizontally */
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 24px 16px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar { display: none; }

  .cat-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: .82rem;
  }

  /* Products section */
  .products-section { padding: 28px 0 56px; }

  .category-group { margin-bottom: 44px; }

  .category-group-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .category-group-header h2 {
    font-size: 1.15rem;
  }

  /* 1-column product grid on mobile */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Taller image on single-col for drama */
  .product-img-wrap {
    height: 300px;
  }

  .product-info {
    padding: 16px 18px 18px;
  }

  .product-price {
    font-size: 1.3rem;
  }

  /* Cart FAB */
  #cart-fab {
    bottom: 20px;
    left: 16px;
    right: 16px;
    border-radius: 50px;
    justify-content: center;
  }

  /* Cart drawer: full screen on mobile */
  #cart-drawer {
    width: 100%;
    right: -100%;
  }

  #cart-drawer.open { right: 0; }

  .cart-items { padding: 16px 18px; }
  .cart-footer { padding: 16px 18px; }

  /* Ethos strip */
  .ethos-strip-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Checkout */
  .checkout-layout { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-form-card { padding: 24px 18px; }
  .section-label { margin: 20px 0 12px; }

  /* Thank you page */
  .thankyou-card { padding: 36px 20px; }
  .thankyou-card h1 { font-size: 1.6rem; }
  .ty-actions { flex-direction: column; }
  .ty-actions .btn { width: 100%; text-align: center; }

  /* Order summary sidebar */
  .order-summary { position: static; order: -1; padding: 20px 18px; }
}

/* Small phones — 375px and below */
@media (max-width: 375px) {
  .shop-hero-content h1 { font-size: 1.7rem; }

  .product-img-wrap { height: 240px; }

  .product-price { font-size: 1.1rem; }

  .cart-item-icon { width: 52px; height: 52px; font-size: 1.4rem; }
}
