:root {
  --commerce-green: #00583f;
  --commerce-dark: #003f2d;
  --commerce-leaf: #629c2a;
  --commerce-lime: #b5d36d;
  --commerce-cream: #fbf8ee;
  --commerce-ink: #25352f;
  --commerce-muted: #6d7a75;
  --commerce-line: #dfe7d6;
}

.commerce-shell { color: var(--commerce-ink); }
.commerce-hero {
  position: relative; overflow: hidden; padding: clamp(30px, 6vw, 64px);
  border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(181,211,109,.25), transparent 32%), linear-gradient(135deg, var(--commerce-green), var(--commerce-dark));
  box-shadow: 0 24px 55px rgba(0, 63, 45, .2);
}
.commerce-hero::after { content:""; position:absolute; width:240px; height:240px; right:-100px; bottom:-150px; border:1px solid rgba(255,255,255,.15); border-radius:50%; }
.commerce-kicker { display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; color:var(--commerce-lime); font-size:.76rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.commerce-hero h1 { max-width:750px; margin:0 0 12px; color:#fff; font-size:clamp(2rem,5vw,4rem); line-height:1.03; letter-spacing:-.045em; }
.commerce-hero p { max-width:680px; margin:0; color:rgba(255,255,255,.78); font-size:1rem; line-height:1.75; }
.commerce-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.commerce-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 20px; border:0; border-radius:12px; background:var(--commerce-leaf); color:#fff !important; font-weight:750; text-decoration:none; transition:.2s ease; }
.commerce-btn:hover { background:#77ad3e; transform:translateY(-2px); }
.commerce-btn-light { background:#fff; color:var(--commerce-green) !important; }
.commerce-btn-outline { border:1px solid var(--commerce-line); background:#fff; color:var(--commerce-green) !important; }
.commerce-btn-sm { min-height:38px; padding:7px 14px; font-size:.84rem; border-radius:9px; }
.commerce-section { margin-top:42px; }
.commerce-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.commerce-section-heading h2 { margin:0; color:var(--commerce-dark); font-size:clamp(1.5rem,3vw,2.35rem); letter-spacing:-.03em; }
.commerce-section-heading p { margin:7px 0 0; color:var(--commerce-muted); }
.commerce-category-strip { display:flex; gap:10px; padding:3px 0 10px; overflow-x:auto; }
.commerce-category { flex:0 0 auto; padding:9px 15px; border:1px solid var(--commerce-line); border-radius:999px; background:#fff; color:var(--commerce-green); font-size:.84rem; font-weight:700; text-decoration:none; }
.commerce-category.active,.commerce-category:hover { border-color:var(--commerce-leaf); background:#edf5e5; color:var(--commerce-dark); }
.commerce-search { display:grid; grid-template-columns:1fr auto; gap:10px; margin-top:24px; padding:10px; border-radius:15px; background:#fff; box-shadow:0 10px 28px rgba(0,63,45,.12); }
.commerce-search input { min-height:45px; padding:0 14px; border:0; outline:0; color:var(--commerce-ink); }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.product-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; border:1px solid var(--commerce-line); border-radius:18px; background:#fff; box-shadow:0 10px 26px rgba(0,63,45,.06); transition:.2s ease; }
.product-card:hover { transform:translateY(-4px); box-shadow:0 18px 34px rgba(0,63,45,.12); }
.product-visual { position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio:4/3; overflow:hidden; background:linear-gradient(145deg,#f1f6e9,#e2edd4); color:var(--commerce-leaf); }
.product-visual img { width:100%; height:100%; object-fit:cover; }
.product-visual i { font-size:3.2rem; }
.product-badge { position:absolute; top:12px; left:12px; padding:5px 9px; border-radius:999px; background:var(--commerce-green); color:#fff; font-size:.66rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.product-content { display:flex; flex:1; flex-direction:column; padding:16px; }
.product-category { color:var(--commerce-leaf); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.product-content h3 { margin:6px 0 5px; color:var(--commerce-dark); font-size:1rem; line-height:1.35; }
.product-content h3 a { color:inherit; text-decoration:none; }
.product-unit { color:var(--commerce-muted); font-size:.8rem; }
.product-price-row { display:flex; align-items:center; gap:8px; margin:14px 0; }
.product-price { color:var(--commerce-green); font-size:1.2rem; font-weight:800; }
.product-mrp { color:#9ba5a1; font-size:.8rem; text-decoration:line-through; }
.product-card form { margin-top:auto; }
.commerce-card { border:1px solid var(--commerce-line); border-radius:18px; background:#fff; box-shadow:0 12px 30px rgba(0,63,45,.07); }
.commerce-card-body { padding:24px; }
.commerce-form label { display:block; margin-bottom:6px; color:var(--commerce-dark); font-size:.75rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.commerce-form .form-control,.commerce-form .form-select { min-height:48px; border:1px solid #d6e1cf; border-radius:11px; background:#fff; color:var(--commerce-ink); }
.commerce-form textarea.form-control { min-height:110px; }
.commerce-form .form-control:focus,.commerce-form .form-select:focus { border-color:var(--commerce-leaf); box-shadow:0 0 0 4px rgba(98,156,42,.13); }
.commerce-alert { padding:14px 17px; margin-bottom:20px; border:1px solid #cfe0be; border-radius:12px; background:#edf6e6; color:#345b27; }
.commerce-alert-error { border-color:#efc5bf; background:#fff1ef; color:#8b3026; }
.basket-line { display:grid; grid-template-columns:72px 1fr auto auto; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--commerce-line); }
.basket-icon { display:flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:14px; background:#edf5e5; color:var(--commerce-leaf); font-size:1.6rem; }
.summary-row { display:flex; justify-content:space-between; gap:15px; padding:8px 0; color:var(--commerce-muted); }
.summary-total { margin-top:8px; padding-top:14px; border-top:1px solid var(--commerce-line); color:var(--commerce-dark); font-size:1.15rem; font-weight:800; }
.benefit-grid,.format-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.benefit-card,.format-card { padding:22px; border:1px solid var(--commerce-line); border-radius:17px; background:#fff; }
.benefit-icon { display:flex; align-items:center; justify-content:center; width:46px; height:46px; margin-bottom:14px; border-radius:13px; background:#eaf3df; color:var(--commerce-leaf); font-size:1.25rem; }
.benefit-card h3,.format-card h3 { margin:0 0 8px; color:var(--commerce-dark); font-size:1.05rem; }
.benefit-card p,.format-card p { margin:0; color:var(--commerce-muted); font-size:.86rem; line-height:1.65; }
.format-card.featured { border:2px solid var(--commerce-leaf); box-shadow:0 16px 34px rgba(98,156,42,.12); }
.format-price { margin:14px 0 3px; color:var(--commerce-green); font-size:1.8rem; font-weight:850; }
.format-list { padding:0; margin:18px 0; list-style:none; }
.format-list li { display:flex; gap:9px; padding:7px 0; color:#53645d; font-size:.85rem; }
.format-list i { color:var(--commerce-leaf); }
.commerce-disclaimer { padding:17px; border-left:4px solid var(--commerce-leaf); border-radius:0 12px 12px 0; background:#f2f6ec; color:#61705f; font-size:.79rem; line-height:1.65; }
.status-pill { display:inline-block; padding:5px 10px; border-radius:999px; background:#eaf3df; color:#416725; font-size:.73rem; font-weight:800; text-transform:capitalize; }

/* Compact shop masthead and desktop category sidebar. */
.shop-compact-hero {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(360px, .9fr);
  align-items:center;
  gap:24px;
  min-height:0;
  padding:16px 22px;
  border-radius:18px;
  box-shadow:0 12px 30px rgba(0,63,45,.16);
}
.shop-compact-hero .commerce-kicker { margin-bottom:3px; font-size:.66rem; }
.shop-compact-hero h1 { max-width:none; margin:0 0 3px; font-size:clamp(1.45rem,2.4vw,2rem); line-height:1.08; letter-spacing:-.03em; }
.shop-compact-hero p { max-width:none; overflow:hidden; font-size:.78rem; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.shop-hero-search { margin-top:0; padding:6px; border-radius:11px; }
.shop-hero-search input { min-height:36px; padding:0 10px; font-size:.88rem; }
.shop-hero-search .commerce-btn { min-height:36px; }

.shop-catalog-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:28px; align-items:start; }
.shop-category-panel {
  position:sticky;
  top:105px;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--commerce-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#f7faF2 100%);
  box-shadow:0 14px 34px rgba(0,63,45,.08);
}
.shop-category-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 13px; border-bottom:1px solid var(--commerce-line); }
.shop-category-panel-head .commerce-kicker { margin-bottom:2px; }
.shop-category-panel-head h2 { margin:0; color:var(--commerce-dark); font-size:1.35rem; }
.shop-basket-link { position:relative; display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; background:var(--commerce-green); color:#fff; text-decoration:none; }
.shop-basket-link:hover { color:#fff; background:#087452; }
.shop-basket-link span { position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; border:2px solid #fff; border-radius:999px; background:var(--commerce-leaf); color:#fff; font-size:.65rem; font-weight:800; line-height:16px; text-align:center; }
.shop-category-nav { display:flex; flex-direction:column; gap:6px; padding-top:12px; }
.shop-category-link { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px; border:1px solid transparent; border-radius:12px; color:var(--commerce-ink); text-decoration:none; transition:.18s ease; }
.shop-category-link:hover { border-color:#d9e6ce; background:#f0f6e8; color:var(--commerce-green); transform:translateX(2px); }
.shop-category-link.active { border-color:#c9dcb6; background:#eaf3df; color:var(--commerce-dark); box-shadow:inset 3px 0 0 var(--commerce-leaf); }
.shop-category-icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px; background:#edf5e5; color:var(--commerce-leaf); font-size:1rem; }
.shop-category-link.active .shop-category-icon { background:var(--commerce-green); color:#fff; }
.shop-category-name { min-width:0; font-size:.78rem; font-weight:750; line-height:1.2; }
.shop-category-name small { display:block; margin-top:3px; color:var(--commerce-muted); font-size:.65rem; font-weight:500; }
.shop-category-arrow { color:#a6b3ad; font-size:.7rem; }
.shop-product-area { min-width:0; }
.shop-product-heading { align-items:center; margin-bottom:18px; }
.shop-product-heading .commerce-kicker { margin-bottom:3px; }
.shop-product-heading h2 { font-size:clamp(1.45rem,2.3vw,2rem); }
.shop-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }

@media (max-width:991.98px) {
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .benefit-grid,.format-grid { grid-template-columns:1fr 1fr; }
  .shop-catalog-layout { grid-template-columns:1fr; gap:22px; }
  .shop-category-panel { position:static; padding:14px; }
  .shop-category-panel-head { border-bottom:0; padding-bottom:8px; }
  .shop-category-nav { flex-direction:row; overflow-x:auto; padding:3px 0 5px; }
  .shop-category-link { flex:0 0 190px; }
  .shop-category-arrow { display:none; }
  .shop-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
  .product-grid,.shop-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .commerce-hero { border-radius:21px; }
  .shop-compact-hero { grid-template-columns:1fr; gap:10px; padding:14px; border-radius:15px; }
  .shop-compact-hero p { display:none; }
  .commerce-section-heading { align-items:start; flex-direction:column; }
  .basket-line { grid-template-columns:56px 1fr; }
  .basket-line > :nth-child(3),.basket-line > :nth-child(4) { grid-column:2; }
  .benefit-grid,.format-grid { grid-template-columns:1fr; }
}
@media (max-width:430px) { .product-grid { grid-template-columns:1fr; } .commerce-card-body { padding:18px; } }
