/* Appily Fifteen — Grocerymart-inspired theme (demo-grocerymart.myshopify.com) */
:root {
  --teal: #1abc9c;
  --teal-dark: #17a589;
  --teal-light: #e8f8f5;
  --mint: #d4f0eb;
  --ink: #222222;
  --ink-soft: #555555;
  --muted: #888888;
  --line: #e8e8e8;
  --white: #ffffff;
  --sale: #e74c3c;
  --hot: #e91e63;
  --sale-badge: #ff4d4d;
  --radius: 6px;
  --radius-lg: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.gm-theme {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; }

/* Utility bar */
.gm-utility {
  background: #1a1a1a;
  color: rgba(255,255,255,.85);
  font-size: .78rem;
}
.gm-utility-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.gm-utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.gm-utility-links a:hover { color: var(--teal); }
.gm-utility-promo { margin: 0; text-align: center; opacity: .9; }
.gm-utility-meta { display: flex; gap: 16px; justify-content: flex-end; opacity: .75; }

/* Header */
.gm-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.gm-header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.gm-brand { display: flex; align-items: center; gap: 10px; }
.gm-brand img { border-radius: 8px; }
.gm-brand strong { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

.gm-search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gm-search input {
  flex: 1; border: 0; padding: 12px 16px; font: inherit; outline: none;
}
.gm-search button {
  border: 0; background: var(--teal); color: var(--white);
  padding: 12px 28px; font-weight: 600; cursor: pointer;
}
.gm-search button:hover { background: var(--teal-dark); }

.gm-header-actions { display: flex; align-items: center; gap: 20px; }
.gm-header-action { display: flex; align-items: center; gap: 10px; }
.gm-action-icon { font-size: 1.2rem; position: relative; }
.gm-action-text { display: flex; flex-direction: column; line-height: 1.25; }
.gm-action-text small { font-size: .72rem; color: var(--muted); }
.gm-action-text strong { font-size: .82rem; font-weight: 600; }
.gm-cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--teal); color: var(--white);
  min-width: 16px; height: 16px; border-radius: 50%;
  font-size: .65rem; font-weight: 700;
  display: grid; place-items: center;
}
.gm-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.gm-menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* Navbar */
.gm-navbar { border-top: 1px solid var(--line); background: var(--white); position: relative; }
.gm-navbar-inner { display: flex; align-items: center; gap: 8px; padding: 0; flex-wrap: wrap; position: relative; }
.gm-browse-wrap { position: relative; }
.gm-browse-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--white);
  border: 0; padding: 14px 22px; font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.gm-browse-btn:hover { background: var(--teal-dark); color: var(--white); }

/* Categories mega menu */
.gm-nav-dropdown { position: static; }
.gm-nav-mega-trigger { position: relative; }
.gm-nav-caret { font-size: .65rem; margin-left: 2px; opacity: .7; }
.gm-nav-dropdown.is-open .gm-nav-mega-trigger,
.gm-nav-dropdown:hover .gm-nav-mega-trigger { color: var(--teal); }

.gm-mega-menu {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  z-index: 120;
  padding: 28px 0 32px;
}
.gm-mega-panel[hidden] { display: none; }
.gm-mega-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.gm-mega-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}
.gm-mega-section + .gm-mega-section { margin-top: 22px; }
.gm-mega-title {
  font-size: .92rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  text-transform: capitalize;
}
.gm-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gm-mega-list li { margin: 0; }
.gm-mega-list a {
  display: block;
  padding: 5px 0;
  font-size: .86rem;
  color: var(--ink-soft);
}
.gm-mega-list a:hover { color: var(--teal); }
.gm-mega-list a.gm-mega-aisle {
  font-weight: 600;
  color: var(--ink);
}

.gm-mega-featured {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.gm-mega-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gm-mega-product {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s;
}
.gm-mega-product:hover { box-shadow: var(--shadow); }
.gm-mega-product img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.gm-mega-product-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gm-mega-product-name {
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gm-mega-product-price {
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.gm-mega-product-price .gm-price-was {
  font-size: .72rem;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}
.gm-mega-product-price .gm-price.is-sale { color: var(--sale); }
.gm-stars-sm .gm-reviews { font-size: .68rem; color: #999; margin-left: 2px; }

/* Collections page */
.gm-breadcrumb-bar {
  background: #f8f8f8;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.gm-breadcrumb a {
  font-size: .88rem;
  color: var(--ink-soft);
}
.gm-breadcrumb a:hover { color: var(--teal); }
.gm-collections-page { padding: 32px 0 56px; background: #f8f8f8; }
.gm-collections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.gm-collection-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 200px;
  padding: 20px 18px 90px;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.gm-collection-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.gm-collection-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.gm-collection-view {
  font-size: .82rem;
  color: var(--teal);
  text-decoration: underline;
}
.gm-collection-img {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.gm-browse-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 50;
}
.gm-browse-menu a {
  display: block; padding: 12px 18px; font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.gm-browse-menu a:hover { background: var(--teal-light); color: var(--teal-dark); }
.gm-browse-menu a:last-child { border-bottom: 0; }

.gm-nav { display: flex; align-items: center; flex: 1; overflow-x: auto; }
.gm-nav-link {
  padding: 14px 18px; font-size: .88rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.gm-nav-link:hover, .gm-nav-link.is-active { color: var(--teal); }
.gm-nav-badge {
  font-size: .62rem; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; text-transform: uppercase;
}
.gm-nav-badge-sale { background: #b3e5fc; color: #0277bd; }
.gm-nav-badge-hot { background: #fce4ec; color: var(--hot); }
.gm-nav-offers { margin-left: auto; font-weight: 600; }

.gm-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
}

/* Hero slider */
.gm-hero-slider {
  position: relative;
  background: var(--mint);
  overflow: hidden;
}
.gm-hero-track { position: relative; }
.gm-hero-slide {
  display: none;
  padding: 48px 0;
}
.gm-hero-slide.is-active { display: block; }
.gm-hero-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.gm-hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}
.gm-hero-sub { color: var(--ink-soft); margin: 0 0 20px; font-size: .95rem; }
.gm-hero-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.gm-hero-price .gm-price { font-size: 2rem; font-weight: 700; }
.gm-hero-price .gm-price-was {
  font-size: 1.1rem; color: var(--muted); text-decoration: line-through;
}
.gm-btn-shop {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: .95rem;
}
.gm-btn-shop:hover { background: #000; }
.gm-hero-visual img {
  max-height: 340px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}
.gm-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white); border: 0;
  font-size: 1.5rem; cursor: pointer; z-index: 2;
  display: grid; place-items: center;
}
.gm-hero-prev { left: 16px; }
.gm-hero-next { right: 16px; }
.gm-hero-arrow:hover { background: var(--teal-dark); }

/* Features bar */
.gm-features { border-bottom: 1px solid var(--line); padding: 28px 0; }
.gm-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gm-feature {
  display: flex; align-items: flex-start; gap: 14px;
}
.gm-feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.gm-feature strong { display: block; font-size: .88rem; color: var(--teal); margin-bottom: 2px; }
.gm-feature span { font-size: .78rem; color: var(--muted); }

/* Category cards */
.gm-categories { padding: 40px 0; }
.gm-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.gm-cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px 16px 70px;
  min-height: 160px;
  overflow: hidden;
  transition: transform .2s;
}
.gm-cat-card:hover { transform: translateY(-3px); }
.gm-cat-name { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.gm-cat-link { font-size: .78rem; color: var(--ink-soft); text-decoration: underline; }
.gm-cat-img {
  position: absolute; bottom: 8px; right: 8px;
  width: 72px; height: 72px; object-fit: contain;
}
.gm-cat-peach { background: #ffe8d9; }
.gm-cat-lavender { background: #ebe4f5; }
.gm-cat-mint { background: #dff5ee; }
.gm-cat-sky { background: #dceef8; }
.gm-cat-lemon { background: #fff4d6; }
.gm-cat-rose { background: #fde8ef; }
.gm-cat-sage { background: #e8f0e4; }

/* Sections */
.gm-section { padding: 48px 0; }
.gm-section-muted { background: #f8f8f8; }
.gm-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 32px;
}

/* Product grid — Grocerymart cards */
.gm-product-grid {
  display: grid;
  gap: 20px;
}
.gm-product-grid:not([class*="gm-grid-"]) {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.gm-product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.gm-product-card:hover { box-shadow: var(--shadow); }
.gm-sale-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--sale-badge); color: var(--white);
  font-size: .68rem; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; text-transform: uppercase;
}
.gm-sale-badge-sm { top: 4px; left: 4px; font-size: .6rem; padding: 2px 6px; }
.gm-product-img {
  display: block; padding: 20px;
  background: var(--white);
}
.gm-product-img img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
}
.gm-product-body { padding: 0 14px 14px; }
.gm-product-title {
  font-size: .88rem; font-weight: 500; margin: 0 0 8px;
  line-height: 1.35; min-height: 2.7em;
}
.gm-product-title a:hover { color: var(--teal); }
.gm-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.gm-stars-sm { margin-bottom: 4px; }
.gm-star { color: #ddd; font-size: .85rem; }
.gm-star.is-filled { color: #f5a623; }
.gm-reviews { font-size: .75rem; color: var(--muted); margin-left: 4px; }
.gm-price-row { margin-bottom: 12px; }
.gm-price-was { font-size: .82rem; color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.gm-price { font-size: 1rem; font-weight: 700; color: var(--ink); }
.gm-price.is-sale { color: var(--sale); }
.gm-product-btn {
  display: block; text-align: center;
  background: #f0f0f0; color: var(--ink);
  padding: 10px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.gm-product-card:hover .gm-product-btn,
.gm-product-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* Promo banners */
.gm-promos { padding: 0 0 48px; }
.gm-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gm-promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 160px;
  display: block;
  overflow: hidden;
}
.gm-promo-card h3 { font-size: 1.05rem; margin: 8px 0 6px; max-width: 16ch; }
.gm-promo-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.gm-promo-tag {
  display: inline-block; background: #ffc107; color: var(--ink);
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}
.gm-promo-tag-sale { background: #ffc107; }
.gm-promo-discount { font-size: 2rem; font-weight: 700; color: var(--sale); display: block; margin-top: 12px; }
.gm-promo-price { font-size: 1.8rem; font-weight: 700; color: var(--sale); display: block; margin-top: 12px; }
.gm-promo-mint { background: #dff5ee; }
.gm-promo-lavender { background: #ebe4f5; }
.gm-promo-sage { background: #e8f0e4; }

/* Category columns */
.gm-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gm-col-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.gm-col-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.gm-col-head a { font-size: .82rem; color: var(--teal); font-weight: 500; }
.gm-col-products { display: flex; flex-direction: column; gap: 12px; }
.gm-product-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.gm-product-row:hover { box-shadow: var(--shadow); }
.gm-row-img {
  position: relative; flex-shrink: 0;
  width: 64px; height: 64px;
}
.gm-row-img img { width: 100%; height: 100%; object-fit: contain; }
.gm-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gm-row-title { font-size: .82rem; font-weight: 500; line-height: 1.3; }
.gm-row-price { font-size: .88rem; font-weight: 700; }

/* Carousel */
.gm-carousel-wrap { position: relative; }
.gm-carousel { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.gm-carousel::-webkit-scrollbar { display: none; }
.gm-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer; z-index: 2;
  font-size: 1.2rem; color: var(--ink);
}
.gm-carousel-prev { left: -12px; }
.gm-carousel-next { right: -12px; }
.gm-carousel-btn:hover { background: var(--teal-light); color: var(--teal); }

/* Testimonials */
.gm-testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gm-testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.gm-testimonial p { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 16px; }
.gm-testimonial footer strong { display: block; font-size: .88rem; }
.gm-testimonial footer span { font-size: .78rem; color: var(--muted); }

/* Duo banners */
.gm-banner-duo { padding: 0 0 48px; }
.gm-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gm-banner-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: block;
}
.gm-banner-card h3 { font-size: 1.2rem; margin: 10px 0 6px; max-width: 20ch; }
.gm-banner-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.gm-banner-cream { background: #faf6ef; }
.gm-banner-pink { background: #fdeef3; }

/* Shop collection page — Grocerymart Our Store */
.gm-collection { padding: 32px 0 56px; background: var(--white); }
.gm-collection-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Filter sidebar */
.gm-filter-panel { position: sticky; top: 180px; }
.gm-filter-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gm-filter-group {
  border-bottom: 1px solid var(--line);
  padding: 0 0 4px;
  margin-bottom: 4px;
}
.gm-filter-group[open] .gm-filter-title::after { transform: rotate(180deg); }
.gm-filter-title {
  list-style: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gm-filter-title::-webkit-details-marker { display: none; }
.gm-filter-title::after {
  content: '⌃';
  font-size: .75rem;
  color: var(--muted);
  transition: transform .2s;
}
.gm-filter-body { padding: 0 0 14px; }
.gm-filter-scroll { max-height: 220px; overflow-y: auto; }
.gm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .86rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.gm-check input { margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.gm-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gm-price-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .86rem;
}
.gm-price-sep { font-size: .82rem; color: var(--muted); flex-shrink: 0; }
.gm-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.gm-filter-apply {
  background: var(--teal);
  color: var(--white);
  border: 0;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.gm-filter-apply:hover { background: var(--teal-dark); }
.gm-filter-clear {
  text-align: center;
  font-size: .86rem;
  color: var(--teal);
  text-decoration: underline;
}

/* Collection toolbar */
.gm-collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.gm-collection-count { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.gm-collection-count strong { color: var(--ink); font-weight: 700; }
.gm-toolbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.gm-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.gm-sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .86rem;
  background: var(--white);
  cursor: pointer;
}
.gm-view-switcher { display: flex; gap: 4px; }
.gm-view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.gm-view-btn:hover { border-color: var(--teal); color: var(--teal); }
.gm-view-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Grid column variants */
.gm-product-grid.gm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gm-product-grid.gm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gm-product-grid.gm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gm-product-grid.gm-grid-list {
  grid-template-columns: 1fr;
  gap: 12px;
}
.gm-product-grid.gm-grid-list .gm-product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
}
.gm-product-grid.gm-grid-list .gm-product-img { padding: 12px; }
.gm-product-grid.gm-grid-list .gm-product-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 16px 12px 0;
}
.gm-product-grid.gm-grid-list .gm-product-title { grid-column: 1; margin: 0; min-height: 0; }
.gm-product-grid.gm-grid-list .gm-product-variant { grid-column: 1; margin: 0; }
.gm-product-grid.gm-grid-list .gm-stars { grid-column: 1; margin: 0; }
.gm-product-grid.gm-grid-list .gm-price-row { grid-column: 2; grid-row: 1 / 3; margin: 0; text-align: right; }
.gm-product-grid.gm-grid-list .gm-product-btn { grid-column: 2; grid-row: 3; max-width: 160px; margin-left: auto; }

.gm-product-variant {
  font-size: .78rem;
  color: var(--muted);
  margin: -4px 0 8px;
}
.gm-sold-badge { background: #999 !important; }
.gm-product-card.is-sold-out { opacity: .85; }
.gm-product-card.is-sold-out .gm-product-img img { filter: grayscale(.3); }
.gm-product-btn-disabled {
  display: block;
  text-align: center;
  background: #f0f0f0;
  color: #aaa;
  padding: 10px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: not-allowed;
}
.gm-product-btn-options:hover { background: var(--teal-light); color: var(--teal-dark); }

/* Pagination — Grocerymart squares */
.gm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.gm-page-num,
.gm-page-next,
.gm-page-ellipsis {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
}
.gm-page-num:hover { border-color: var(--teal); color: var(--teal); }
.gm-page-num.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.gm-page-next:hover { border-color: var(--teal); color: var(--teal); }
.gm-page-next.is-disabled { opacity: .4; cursor: not-allowed; }
.gm-page-ellipsis { border: 0; background: transparent; }

/* Remove old shop hero/styles */
.gm-shop-hero { display: none; }
.gm-shop-layout { display: none; }
.gm-shop-sidebar { display: none; }
.gm-shop-filters { display: none; }
.gm-result-meta { display: none; }

/* Newsletter */
.gm-newsletter {
  background: var(--teal);
  color: var(--white);
  padding: 36px 0;
}
.gm-newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.gm-newsletter-copy { display: flex; align-items: center; gap: 16px; }
.gm-newsletter-icon { font-size: 2rem; opacity: .9; }
.gm-newsletter-copy h3 { margin: 0 0 4px; font-size: 1.15rem; }
.gm-newsletter-copy p { margin: 0; font-size: .88rem; opacity: .9; }
.gm-newsletter-form {
  display: flex; gap: 0; flex: 1; max-width: 420px;
}
.gm-newsletter-form input {
  flex: 1; border: 0; padding: 14px 18px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font: inherit; outline: none;
}
.gm-newsletter-form button {
  border: 0; background: var(--ink); color: var(--white);
  padding: 14px 24px; font-weight: 600; cursor: pointer;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.gm-newsletter-form button:hover { background: #000; }

/* Footer */
.gm-footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 0; }
.gm-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.gm-footer-brand p { font-size: .86rem; color: var(--muted); margin: 12px 0; max-width: 28ch; }
.gm-brand-footer { margin-bottom: 8px; }
.gm-footer-col h4 {
  font-size: .88rem; font-weight: 700; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .04em;
}
.gm-footer-col a {
  display: block; padding: 4px 0; font-size: .86rem; color: var(--ink-soft);
}
.gm-footer-col a:hover { color: var(--teal); }
.gm-footer-contact { font-size: .86rem; color: var(--ink-soft); margin: 0 0 8px; }
.gm-footer-hours { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.gm-footer-base {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  font-size: .82rem; color: var(--muted);
}

/* Scroll to top */
.gm-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  border: 0; font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); z-index: 80;
}
.gm-scroll-top:hover { background: var(--teal-dark); }

/* Product detail, cart, auth — shared */
.product-hero { padding: 40px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 14px; }
.product-lede { color: var(--muted); margin-bottom: 20px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.spec-list div { padding: 10px 12px; background: #f8f8f8; border-radius: var(--radius); }
.spec-list dt { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 4px 0 0; font-weight: 600; }
.buy-panel { padding: 22px; background: var(--ink); color: var(--white); border-radius: var(--radius-lg); }
.buy-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.price-lg { font-size: 1.6rem; font-weight: 700; color: var(--teal-light); }
.buy-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.buy-form label { display: block; font-size: .82rem; margin-bottom: 4px; }
.buy-form select { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.btn, .gm-btn-shop { cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--white); border: 0; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; }
.btn-primary:hover { background: var(--teal-dark); }

.dual { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.summary-box { position: sticky; top: 180px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.price-row { display: flex; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit;
}
.notice { padding: 14px 16px; border-radius: var(--radius); background: #f8f8f8; border: 1px solid var(--line); }
.notice.error { border-color: #e8b4b4; background: #fdf2f2; color: #922b21; }
.notice.success { border-color: #b8e0c8; background: #f0fdf4; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state p { margin: 0; font-weight: 600; }
.empty-state .sub { margin-top: 8px; font-weight: 400; color: var(--muted); }
.section { padding: 48px 0; }

/* Policy pages */
.policy-page { padding: 40px 0 56px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.policy-nav a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .86rem;
}
.policy-nav a.active, .policy-nav a:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }
.policy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.policy-content h1 { margin-top: 0; }
.highlight-box { background: var(--teal-light); padding: 16px; border-radius: var(--radius); margin: 16px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.contact-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card dt { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 4px 0 0; font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .gm-features-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-col-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-testimonials { grid-template-columns: repeat(2, 1fr); }
  .gm-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-promo-grid { grid-template-columns: 1fr; }
  .gm-collections-grid { grid-template-columns: repeat(3, 1fr); }
  .gm-mega-inner { grid-template-columns: 1fr; }
  .gm-mega-featured { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .gm-mega-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gm-utility-inner { grid-template-columns: 1fr; text-align: center; }
  .gm-utility-meta { justify-content: center; }
  .gm-header-main { grid-template-columns: 1fr auto; }
  .gm-search { grid-column: 1 / -1; order: 3; max-width: none; }
  .gm-header-action .gm-action-text { display: none; }
  .gm-menu-btn { display: flex; }
  .gm-nav {
    display: none; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 85vw); background: var(--white);
    z-index: 95; padding: 24px 0; box-shadow: var(--shadow);
    overflow-y: auto;
  }
  .gm-nav.is-open { display: flex; }
  .gm-nav-link { padding: 14px 24px; }
  .gm-hero-slide-inner { grid-template-columns: 1fr; text-align: center; }
  .gm-hero-visual { order: -1; }
  .gm-collection-layout { grid-template-columns: 1fr; }
  .gm-filter-panel { position: static; }
  .gm-product-grid.gm-grid-4,
  .gm-product-grid.gm-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gm-collections-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-mega-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin: 8px 16px 16px;
    padding: 16px;
    border-radius: var(--radius);
  }
  .gm-mega-links { grid-template-columns: 1fr; }
  .gm-mega-products { grid-template-columns: 1fr; }
  .gm-nav-dropdown { width: 100%; }
  .gm-mega-menu[hidden] { display: none; }
  .gm-banner-grid { grid-template-columns: 1fr; }
  .gm-testimonials { grid-template-columns: 1fr; }
  .gm-newsletter-inner { flex-direction: column; text-align: center; }
  .gm-newsletter-form { max-width: 100%; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}
