/* ========================================================
   GreenStore — Instacart-inspired design system
======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ic-green:        #3da829;
  --ic-green-dark:   #1c5e27;
  --ic-green-hover:  #339120;
  --ic-green-pale:   #edf8e7;
  --ic-bg:           #f8f7f4;
  --ic-card:         #ffffff;
  --ic-text:         #2d2c2a;
  --ic-text-sm:      #6d6a65;
  --ic-border:       #e5e0d8;
  --ic-shadow:       0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --ic-shadow-md:    0 4px 24px rgba(0,0,0,.08);
  --ic-shadow-lg:    0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --ic-radius:       10px;
  --ic-radius-lg:    14px;
  --ic-radius-xl:    22px;
  --ic-nav-h:        68px;
  /* Easing curves */
  --ease-standard:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:          0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:          0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:          0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--ic-bg);
  color: var(--ic-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* =====================================================
   NAVBAR
===================================================== */
.ic-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ic-border);
  height: var(--ic-nav-h);
  position: sticky;
  top: 0;
  z-index: 1031;
  box-shadow: 0 1px 0 var(--ic-border), 0 2px 12px rgba(0,0,0,.04);
}
.ic-navbar .container-fluid { height: 100%; }

/* Logo */
.ic-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.ic-logo-icon {
  width: 36px; height: 36px;
  background: var(--ic-green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.ic-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ic-text);
  letter-spacing: -.3px;
}

/* Search bar */
.ic-search-wrap {
  flex: 1;
  max-width: 620px;
  position: relative;
}
.ic-search-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--ic-border);
  border-radius: 22px;
  padding: 0 48px 0 44px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ic-text);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  background: #fefefe;
}
.ic-search-input:focus {
  border-color: var(--ic-green);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(61,168,41,.13);
}
.ic-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ic-text-sm);
  font-size: 1rem;
  pointer-events: none;
}
.ic-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ic-text-sm);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  display: none;
}
.ic-search-input:not(:placeholder-shown) ~ .ic-search-clear { display: block; }

/* Instant-search dropdown */
.ic-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  z-index: 1050;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: gs-dropdown-in 0.18s var(--ease-out) both;
}
@keyframes gs-dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.ic-sd-cat {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ic-text-sm);
  background: var(--ic-bg);
  border-bottom: 1px solid var(--ic-border);
  position: sticky; top: 0;
}
.ic-sd-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f3f1ee;
  transition: background var(--t-fast);
  padding-right: 12px;
}
.ic-sd-item:hover { background: var(--ic-green-pale); }
.ic-sd-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 10px 8px 10px 16px;
  text-decoration: none;
  color: var(--ic-text);
}
.ic-sd-item-info { min-width: 0; }
.ic-sd-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--ic-bg);
  flex-shrink: 0;
}
.ic-sd-ph {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--ic-green-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--ic-green); font-size: 1.1rem; flex-shrink: 0;
}
.ic-sd-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-sd-price { font-size: 12px; color: var(--ic-green); font-weight: 600; }
.ic-sd-card-action { flex-shrink: 0; }
.ic-sd-add-btn {
  font-size: 12px !important;
  padding: 4px 12px !important;
  height: auto !important;
}
.ic-sd-empty { padding: 20px; text-align: center; color: var(--ic-text-sm); font-size: 13px; }
.ic-sd-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid var(--ic-border);
}

/* Currency toggle */
.ic-currency-btn {
  background: transparent;
  border: 1.5px solid var(--ic-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ic-text-sm);
  cursor: pointer;
  letter-spacing: .04em;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
  white-space: nowrap;
}
.ic-currency-btn:hover,
.ic-currency-btn[aria-pressed="true"] {
  border-color: var(--ic-green);
  color: var(--ic-green);
  background: var(--ic-green-pale);
}

/* Cart button */
.ic-cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--ic-green);
  color: #fff;
  border: none;
  border-radius: var(--ic-radius-xl);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(61,168,41,.25);
}
.ic-cart-btn:hover {
  background: var(--ic-green-hover);
  color: #fff;
  box-shadow: 0 3px 12px rgba(61,168,41,.35);
  transform: translateY(-1px);
}
.ic-cart-btn:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(61,168,41,.25); }
.ic-cart-count {
  background: #fff;
  color: var(--ic-green);
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* =====================================================
   HERO (home page)
===================================================== */
.ic-hero {
  background: linear-gradient(120deg, #1E672E 0%, #43B02A 60%, #7bc67e 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.ic-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ic-hero-content { position: relative; z-index: 1; }
.ic-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.5px; }
.ic-hero p  { font-size: 1.1rem; opacity: .9; }

/* Hero search bar */
.ic-hero-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.ic-hero-search-wrap > .ic-hero-search-input,
.ic-hero-search-wrap > .ic-hero-search-btn {
  border-radius: 0;
}
.ic-hero-search-wrap > .ic-hero-search-btn {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.ic-hero-search-icon {
  position: absolute;
  left: 18px;
  color: #888;
  font-size: 16px;
  pointer-events: none;
}
.ic-hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ic-text);
  background: transparent;
  min-width: 0;
  width: 100%;
}
.ic-hero-search-btn {
  flex-shrink: 0;
  border: none;
  background: var(--ic-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 0 22px;
  height: 100%;
  cursor: pointer;
  transition: background .15s;
}
.ic-hero-search-btn:hover { background: var(--ic-green-dark); }
.ic-hero-search-wrap .ic-search-dropdown {
  top: calc(100% + 6px);
  border-radius: 14px;
}

/* =====================================================
   CATEGORY SECTION
===================================================== */
.ic-section-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ic-text);
  margin-bottom: 16px;
}

/* Category pills (horizontal scroll) */
.ic-cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 6px;
}
.ic-cat-scroll::-webkit-scrollbar { display: none; }

.ic-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  width: 90px;
}
.ic-cat-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid var(--ic-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-slow);
  will-change: transform;
}
.ic-cat-chip:hover .ic-cat-icon-wrap,
.ic-cat-chip.active .ic-cat-icon-wrap {
  border-color: var(--ic-green);
  box-shadow: 0 4px 16px rgba(61,168,41,.18), 0 0 0 3px rgba(61,168,41,.12);
  transform: translateY(-3px);
}
.ic-cat-chip.active .ic-cat-icon-wrap { background: var(--ic-green-pale); }
.ic-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ic-text);
  text-align: center;
  line-height: 1.2;
}

/* Category filter bar (shop page) */
.ic-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--ic-border);
  position: sticky;
  top: var(--ic-nav-h);
  z-index: 100;
}
.ic-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.ic-filter-scroll::-webkit-scrollbar { display: none; }
.ic-filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--ic-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ic-text);
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
}
.ic-filter-pill:hover {
  border-color: var(--ic-green);
  color: var(--ic-green);
  background: var(--ic-green-pale);
}
.ic-filter-pill.active {
  background: var(--ic-green);
  border-color: var(--ic-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(61,168,41,.25);
}

/* =====================================================
   PRODUCT CARDS
===================================================== */
.ic-card {
  background: var(--ic-card);
  border-radius: var(--ic-radius-lg);
  border: 1px solid var(--ic-border);
  overflow: hidden;
  transition: box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}
.ic-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: #d8d2c8;
}
.ic-card-img-wrap {
  width: 100%;
  height: 175px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa;
  padding: 16px;
  position: relative;
}
.ic-card-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.ic-card-img-ph {
  width: 80px; height: 80px;
  background: var(--ic-green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--ic-green);
}
.ic-card-body {
  padding: 10px 12px 6px;
  flex: 1; display: flex; flex-direction: column;
}
.ic-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ic-text);
  line-height: 1;
  margin-bottom: 4px;
}
.ic-card-unit { font-size: 11px; color: var(--ic-text-sm); margin-left: 2px; }
.ic-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ic-text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ic-card-variety {
  font-size: 12px;
  color: var(--ic-green);
  font-weight: 600;
  margin-bottom: 1px;
}
.ic-card-cat {
  font-size: 12px;
  color: var(--ic-text-sm);
  margin-bottom: auto;
}
.ic-card-footer {
  padding: 8px 12px 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── Add / Qty controls (Instacart pattern) ── */
.ic-add-btn {
  background: #fff;
  color: var(--ic-green);
  border: 1.5px solid var(--ic-green);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  line-height: 1.4;
}
.ic-add-btn:hover {
  background: var(--ic-green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(61,168,41,.3);
  transform: translateY(-1px);
}
.ic-add-btn:active { transform: translateY(0); }
.ic-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}
.ic-q-btn {
  background: var(--ic-green);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
  line-height: 1;
}
.ic-q-btn:hover { background: var(--ic-green-hover); }
.ic-q-btn:active { transform: scale(0.9); }
.ic-q-num {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--ic-text);
  user-select: none;
}

/* =====================================================
   SHOP PAGE SEARCH
===================================================== */
.ic-page-search-wrap { position: relative; }
.ic-page-search {
  width: 100%;
  height: 48px;
  border: 2px solid var(--ic-border);
  border-radius: 24px;
  padding: 0 50px 0 48px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: #fff;
}
.ic-page-search:focus { border-color: var(--ic-green); }
.ic-page-search-icon {
  position: absolute; left: 17px; top: 50%;
  transform: translateY(-50%);
  color: var(--ic-text-sm); font-size: 1rem; pointer-events: none;
}

/* =====================================================
   PRODUCT DETAIL
===================================================== */
.ic-detail-img-wrap {
  background: #fff;
  border-radius: var(--ic-radius-lg);
  border: 1px solid var(--ic-border);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.ic-detail-img { max-width: 100%; max-height: 320px; object-fit: contain; }
.ic-detail-ph {
  width: 140px; height: 140px;
  background: var(--ic-green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--ic-green);
}
.ic-detail-card {
  background: #fff;
  border-radius: var(--ic-radius-lg);
  border: 1px solid var(--ic-border);
  padding: 28px 32px;
}
.ic-detail-price { font-size: 1.7rem; font-weight: 800; color: var(--ic-text); }
.ic-detail-unit  { font-size: .9rem; color: var(--ic-text-sm); font-weight: 400; }
.ic-detail-add-btn {
  background: var(--ic-green);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ic-detail-add-btn:hover { background: var(--ic-green-hover); }
.ic-detail-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ic-detail-qty-ctrl .ic-q-btn { width: 44px; height: 44px; font-size: 20px; }
.ic-detail-qty-ctrl .ic-q-num { min-width: 44px; font-size: 16px; }

/* =====================================================
   PROMO CODE
===================================================== */
.gs-promo-wrap {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  padding: 2px 4px 2px 8px;
}
.gs-promo-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: .8rem;
  color: var(--ic-text);
  min-width: 0;
  padding: 4px 0;
}
.gs-promo-input::placeholder { color: #bbb; }
.gs-promo-check {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  padding: 2px 4px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.gs-promo-check:hover { color: var(--ic-green); background: #f0faf4; }
.gs-promo-remove { color: #bbb; }
.gs-promo-remove:hover { color: #dc3545; background: #fff5f5; }

/* =====================================================
   CART PAGE
===================================================== */
.ic-cart-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ic-text-sm);
  background: #fafafa;
  border-bottom: 1px solid var(--ic-border);
}
.ic-cart-table td { vertical-align: middle; border-color: #f2f2f2; }
.ic-cart-img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fafafa; padding: 4px; }
.ic-cart-img-ph {
  width: 56px; height: 56px; background: var(--ic-green-pale);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--ic-green); font-size: 1.4rem;
}
/* Cart qty controls */
.ic-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ic-border);
  border-radius: 20px;
  overflow: hidden;
}
.ic-cart-qty .ic-q-btn { background: #f5f5f5; color: var(--ic-text); width: 28px; height: 28px; font-size: 14px; }
.ic-cart-qty .ic-q-btn:hover { background: var(--ic-green); color: #fff; }
.ic-cart-qty .ic-q-num { min-width: 28px; font-size: 13px; }

/* Budget widget */
.gs-price-qty-widget .input-group { max-width: 190px; }
.gs-qty-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ic-border);
  background: #fff;
  color: var(--ic-text);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, background .15s, color .15s;
  padding: 0;
}
.gs-qty-circle:hover {
  border-color: var(--ic-green);
  color: var(--ic-green);
  background: var(--ic-green-pale);
}
.gs-qty-input {
  width: 36px;
  border: none;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}
.gs-qty-input::-webkit-inner-spin-button,
.gs-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; }

/* ── Order Sidebar ── */
.gs-order-sidebar {
  position: sticky;
  top: calc(var(--ic-nav-h) + 16px);
  border-radius: var(--ic-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ic-border) !important;
  background: #fff;
}
.gs-sidebar-header {
  background: var(--ic-green);
  padding: 14px 16px;
}
.gs-sidebar-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a8d5a2 #f0f7f0;
}
.gs-sidebar-list::-webkit-scrollbar { width: 4px; }
.gs-sidebar-list::-webkit-scrollbar-track { background: #f8f8f8; }
.gs-sidebar-list::-webkit-scrollbar-thumb { background: #cde8ce; border-radius: 2px; }
.gs-sidebar-item {
  border-bottom: 1px solid #f3f1ee;
  transition: background var(--t-fast);
}
.gs-sidebar-item:last-child { border-bottom: none; }
.gs-sidebar-item:hover { background: var(--ic-green-pale); }
.gs-sidebar-item.gs-removing {
  opacity: 0;
  transform: translateX(16px);
  max-height: 0;
  padding: 0;
  transition: opacity 0.28s var(--ease-standard), transform 0.28s var(--ease-standard), max-height 0.32s var(--ease-standard);
}
.gs-sidebar-totals { background: #fafafa; border-top: 1px solid var(--ic-border); }

/* ── Checkout modal ── */
.gs-modal-header { background: var(--ic-green); }
.gs-checkout-section-title {
  color: var(--ic-text);
  display: flex; align-items: center; gap: 8px;
}
.gs-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ic-green);
  color: #fff; font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.gs-pay-btn {
  padding: 12px 8px;
  border-radius: var(--ic-radius) !important;
  transition: all .15s;
}
.gs-pay-btn:hover, .btn-check:checked + .gs-pay-btn {
  background: var(--ic-green-pale);
  border-color: var(--ic-green) !important;
  color: var(--ic-green) !important;
}
.gs-pay-btn small { display: block; line-height: 1.2; }

/* Payment method tabs */
.gs-pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-pay-tab {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border: 1.5px solid var(--ic-border);
  border-radius: 50px;
  background: #fff;
  font-size: 13px; font-weight: 600;
  color: var(--ic-text-sm);
  cursor: pointer;
  transition: all .15s;
}
.gs-pay-tab:hover { border-color: var(--ic-green); color: var(--ic-green); }
.gs-pay-tab.active {
  background: var(--ic-green-pale);
  border-color: var(--ic-green);
  color: var(--ic-green);
}

/* Bank details box */
.gs-bank-details {
  background: #f0faf0;
  border: 1px solid #c8e6c9;
  border-radius: var(--ic-radius);
  padding: 16px;
}

/* Stripe card input container */
.gs-stripe-input {
  border: 1.5px solid var(--ic-border);
  border-radius: var(--ic-radius);
  padding: 12px 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.gs-stripe-input.StripeElement--focus {
  border-color: var(--ic-green);
  box-shadow: 0 0 0 3px rgba(67,176,42,.15);
}

/* =====================================================
   VALUE PROPS STRIP
===================================================== */
.ic-value-strip {
  background: #fff;
  border-top: 1px solid var(--ic-border);
  border-bottom: 1px solid var(--ic-border);
}
.ic-value-item { padding: 20px 0; text-align: center; }
.ic-value-icon {
  width: 48px; height: 48px;
  background: var(--ic-green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--ic-green);
  margin: 0 auto 10px;
}

/* =====================================================
   FOOTER
===================================================== */
.ic-footer {
  background: var(--ic-text);
  color: #a0a4aa;
}
.ic-footer a { color: #a0a4aa; text-decoration: none; }
.ic-footer a:hover { color: #fff; }
.ic-footer-brand { color: #fff; font-weight: 700; font-size: 1rem; }
.ic-newsletter-wrap {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  background: #2a2f36;
  border: 1px solid #3a3f46;
}
.ic-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 13px;
  color: #fff;
  min-width: 0;
}
.ic-newsletter-input::placeholder { color: #6c7178; }
.ic-newsletter-btn {
  flex-shrink: 0;
  background: var(--ic-green);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
}
.ic-newsletter-btn:hover { background: var(--ic-green-dark); }
.ic-newsletter-msg {
  margin-top: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
}
.ic-newsletter-msg.success { background: rgba(67,176,42,.15); color: #7bc67e; }
.ic-newsletter-msg.error   { background: rgba(220,53,69,.12);  color: #f87171; }

/* =====================================================
   SECTION SPACING + MISC
===================================================== */
.ic-section { padding: 32px 0; }
.ic-card-link { text-decoration: none; color: inherit; }

/* Stock badge */
.ic-badge-stock {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.ic-badge-stock.in  { background: var(--ic-green-pale); color: var(--ic-green); }
.ic-badge-stock.out { background: #fdecea; color: #c62828; }

/* Toast */
#cart-toast { border-radius: var(--ic-radius); }

/* Breadcrumb */
.breadcrumb-item a { color: var(--ic-green); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ── Cart back button ── */
.gs-back-btn {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ic-green);
  border: 1.5px solid var(--ic-green);
  border-radius: 50px;
  padding: 5px 15px;
  text-decoration: none;
  background: transparent;
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.gs-back-btn:hover {
  background: var(--ic-green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(61,168,41,.28);
  transform: translateX(-2px);
}

/* Responsive */
@media (max-width: 576px) {
  .ic-logo-text { display: none; }
  .ic-cart-btn .ic-cart-label { display: none; }
  .ic-hero { padding: 40px 0 48px; }
}

/* ── Page loader ── */
#gs-page-loader {
  position: fixed;
  inset: 0;
  background: var(--ic-bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
#gs-page-loader.gs-loader-done {
  opacity: 0;
  visibility: hidden;
}
.gs-loader-leaf {
  font-size: 2.4rem;
  color: var(--ic-green);
  animation: gs-leaf-pulse 1s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes gs-leaf-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.18); opacity: .7; }
}
.gs-loader-track {
  width: 160px;
  height: 4px;
  background: var(--ic-green-pale);
  border-radius: 4px;
  overflow: hidden;
}
.gs-loader-bar {
  height: 100%;
  background: var(--ic-green);
  border-radius: 4px;
  animation: gs-bar-slide 1.1s ease-in-out infinite;
}
@keyframes gs-bar-slide {
  0%   { width: 0%;   margin-left: 0%;   }
  50%  { width: 60%;  margin-left: 20%;  }
  100% { width: 0%;   margin-left: 100%; }
}

/* =====================================================
   REFINED INTERACTIONS (Claude-inspired polish)
===================================================== */

/* Page content fade-in after loader */
.gs-page-content {
  animation: gs-page-enter 0.35s var(--ease-out) both;
  animation-delay: 0.05s;
}
@keyframes gs-page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Better focus rings sitewide */
:focus-visible {
  outline: 2.5px solid var(--ic-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth link color transitions in nav */
header a {
  transition: color var(--t-base), opacity var(--t-base);
}
header a:hover { opacity: 0.75; }

/* Detail page add button */
.ic-detail-add-btn {
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base) !important;
}
.ic-detail-add-btn:hover {
  background: var(--ic-green-hover) !important;
  box-shadow: 0 4px 16px rgba(61,168,41,.3) !important;
  transform: translateY(-1px) !important;
}
.ic-detail-add-btn:active { transform: translateY(0) !important; }

/* Cart qty buttons */
.ic-cart-qty .ic-q-btn {
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) !important;
}
.ic-cart-qty .ic-q-btn:active { transform: scale(0.88); }

/* Toast refined */
#cart-toast {
  border-radius: var(--ic-radius-lg) !important;
  border: 1px solid var(--ic-border) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.10) !important;
  animation: gs-toast-in 0.28s var(--ease-spring) both;
}
@keyframes gs-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Sidebar smooth entry */
.gs-order-sidebar {
  box-shadow: 0 4px 24px rgba(0,0,0,.07) !important;
}

/* Modal transitions */
.modal.fade .modal-dialog {
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out) !important;
}

/* Section label refinement */
.ic-section-label {
  letter-spacing: -0.01em;
}

/* Smooth table row hovers */
.ic-cart-table tbody tr {
  transition: background var(--t-fast);
}
.ic-cart-table tbody tr:hover { background: #faf9f6; }

/* Promo code section */
.gs-promo-wrap {
  border-radius: var(--ic-radius) !important;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.gs-promo-wrap:focus-within {
  border-color: var(--ic-green) !important;
  box-shadow: 0 0 0 3px rgba(61,168,41,.1);
}

/* Value strip icons */
.ic-value-icon {
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.ic-value-item:hover .ic-value-icon {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(61,168,41,.2);
}
