/*
Theme Name: GhorerBazar
Theme URI: https://ghorerbazar.com
Author: GhorerBazar
Author URI: https://ghorerbazar.com
Description: A WooCommerce theme inspired by GhorerBazar - Organic Food E-commerce for Bangladesh
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghorerbazar
Tags: woocommerce, e-commerce, organic, food, responsive
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* ========================================
   CSS VARIABLES / DESIGN TOKENS
======================================== */
:root {
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-primary-light: #4caf50;
  --color-accent: #ff6f00;
  --color-accent-light: #ffa726;
  --color-danger: #d32f2f;
  --color-text: #212121;
  --color-text-muted: #757575;
  --color-border: #e0e0e0;
  --color-bg: #f9f9f9;
  --color-white: #ffffff;
  --color-badge-sale: #e53935;
  --color-badge-new: #1976d2;
  --color-badge-best: #f57c00;

  --font-primary: 'Hind Siliguri', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: 0.2s ease;
  --container-max: 1300px;
  --gap: 16px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========================================
   LAYOUT
======================================== */
.gb-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
.gb-section {
  padding: 40px 0;
}

/* ========================================
   HEADER
======================================== */
.gb-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-primary);
}
.gb-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
}
.gb-header__logo {
  flex-shrink: 0;
}
.gb-header__logo img {
  height: 48px;
  width: auto;
}
.gb-header__logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.gb-header__logo-text span {
  color: var(--color-accent);
}
.gb-header__search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.gb-header__search form {
  display: flex;
}
.gb-header__search input {
  width: 100%;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.gb-header__search input:focus {
  border-color: var(--color-primary);
}
.gb-header__search button {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 16px;
  transition: background var(--transition);
}
.gb-header__search button:hover {
  background: var(--color-primary-dark);
}
.gb-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.gb-header__action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 11px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.gb-header__action-btn:hover {
  background: rgba(46,125,50,0.08);
  color: var(--color-primary);
}
.gb-header__action-btn svg, .gb-header__action-btn .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}
.gb-cart-btn {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  flex-direction: row;
  gap: 8px;
}
.gb-cart-btn:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}
.gb-cart-count {
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  right: 2px;
}
.gb-cart-btn .gb-cart-count {
  position: relative;
  top: auto;
  right: auto;
}

/* ========================================
   NAVIGATION
======================================== */
.gb-nav {
  background: var(--color-primary);
}
.gb-nav__inner {
  display: flex;
  align-items: stretch;
}
.gb-nav__menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
}
.gb-nav__menu > li {
  position: relative;
}
.gb-nav__menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition);
}
.gb-nav__menu > li > a:hover,
.gb-nav__menu > li.current-menu-item > a {
  background: rgba(0,0,0,0.15);
}
.gb-nav__menu > li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
}

/* Dropdown */
.gb-nav__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--color-primary);
  z-index: 999;
  list-style: none;
}
.gb-nav__menu > li:hover > .sub-menu {
  display: block;
}
.gb-nav__menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}
.gb-nav__menu .sub-menu li:last-child a { border-bottom: none; }
.gb-nav__menu .sub-menu li a:hover {
  background: rgba(46,125,50,0.06);
  color: var(--color-primary);
}

/* ========================================
   HERO SLIDER / BANNER
======================================== */
.gb-hero {
  background: #fff;
  padding: 16px 0;
}
.gb-hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
}
.gb-hero__slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gb-hero__slide {
  display: none;
  position: relative;
  animation: gbFadeIn 0.5s ease;
}
.gb-hero__slide.active { display: block; }
@keyframes gbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.gb-hero__slide a { display: block; position: relative; }
.gb-hero__slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.gb-hero__slide-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 70%;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.gb-hero__slide-caption-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.gb-hero__slide-caption-subtitle {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 12px;
}
.gb-hero__slide-caption-btn {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.gb-hero__slide-placeholder {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 20px;
}
.gb-hero__slide-placeholder.s1 { background: linear-gradient(135deg, #1b5e20, #4caf50); }
.gb-hero__slide-placeholder.s2 { background: linear-gradient(135deg, #bf360c, #ff6f00); }
.gb-hero__slide-placeholder.s3 { background: linear-gradient(135deg, #1a237e, #3f51b5); }
.gb-hero__slide-placeholder.s4 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }

.gb-hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gb-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.gb-hero__dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
.gb-hero__prev, .gb-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
  z-index: 2;
}
.gb-hero__prev { left: 12px; }
.gb-hero__next { right: 12px; }
.gb-hero__prev:hover, .gb-hero__next:hover { background: #fff; }

.gb-hero__banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gb-hero__banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 1;
  position: relative;
  display: block;
}
.gb-hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gb-hero__banner:hover img { transform: scale(1.03); }
.gb-hero__banner-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.gb-hero__banner-placeholder {
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.gb-hero__banner-placeholder.b1 { background: linear-gradient(135deg, #e65100, #ff8f00); }
.gb-hero__banner-placeholder.b2 { background: linear-gradient(135deg, #880e4f, #e91e63); }

/* ========================================
   FEATURED CATEGORIES
======================================== */
.gb-categories {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.gb-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gb-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.gb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.gb-view-all {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  border: 1px solid var(--color-primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}
.gb-view-all:hover {
  background: var(--color-primary);
  color: #fff;
}

.gb-categories__grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.gb-categories__grid::-webkit-scrollbar { display: none; }

.gb-category-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-width: 90px;
  text-align: center;
}
.gb-category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.gb-category-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(46,125,50,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.gb-category-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gb-category-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ========================================
   PRODUCT CARDS
======================================== */
.gb-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) { .gb-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .gb-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gb-products-grid { grid-template-columns: repeat(2, 1fr); } }

.gb-product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.gb-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.gb-product-card__image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1;
}
.gb-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gb-product-card:hover .gb-product-card__image img {
  transform: scale(1.06);
}
.gb-product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.gb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: #fff;
  line-height: 1.6;
  white-space: nowrap;
}
.gb-badge--sale { background: var(--color-badge-sale); }
.gb-badge--new { background: var(--color-badge-new); }
.gb-badge--best { background: var(--color-badge-best); }
.gb-badge--preorder { background: #6a1b9a; }
.gb-badge--offered { background: var(--color-primary); }

.gb-product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 1;
  opacity: 0;
}
.gb-product-card:hover .gb-product-card__wishlist {
  opacity: 1;
}
.gb-product-card__wishlist:hover {
  background: #ffebee;
  color: var(--color-badge-sale);
  border-color: var(--color-badge-sale);
}

.gb-product-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gb-product-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gb-product-card__title a:hover { color: var(--color-primary); }

.gb-product-card__price {
  margin-top: auto;
}
.gb-price-current {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.gb-price-original {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.gb-price-save {
  font-size: 11px;
  color: var(--color-badge-sale);
  font-weight: 600;
}

.gb-product-card__actions {
  padding: 0 12px 12px;
  display: flex;
  gap: 6px;
}
.gb-btn-cart {
  flex: 1;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.gb-btn-cart:hover { background: var(--color-primary-dark); }
.gb-btn-cart.stock-out {
  background: #bdbdbd;
  cursor: not-allowed;
}
.gb-btn-buynow {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
  white-space: nowrap;
}
.gb-btn-buynow:hover { background: #e65100; color: #fff; }

/* ========================================
   TOP SELLING (HORIZONTAL SCROLLABLE)
======================================== */
.gb-top-selling {
  background: #fff;
  padding: 28px 0;
}
.gb-top-selling__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gb-top-selling__grid::-webkit-scrollbar { display: none; }
.gb-top-selling__card {
  flex-shrink: 0;
  width: 200px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.gb-top-selling__card:hover { box-shadow: var(--shadow-md); }

/* ========================================
   BRANDS
======================================== */
.gb-brands {
  background: #fff;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.gb-brands__grid {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.gb-brands__item {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.gb-brands__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.gb-brands__item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter var(--transition);
}
.gb-brands__item:hover img { filter: none; }

/* ========================================
   FULL WIDTH BANNER
======================================== */
.gb-banner-full {
  background: #fff;
  padding: 12px 0;
}
.gb-banner-full a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gb-banner-full img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  transition: opacity var(--transition);
}
.gb-banner-full a:hover img { opacity: 0.95; }

/* ========================================
   COMBO SECTION
======================================== */
.gb-combos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .gb-combos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gb-combos__grid { grid-template-columns: 1fr; } }

.gb-combo-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.gb-combo-card:hover { box-shadow: var(--shadow-md); }
.gb-combo-card__header {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  padding: 16px;
  position: relative;
}
.gb-combo-save {
  background: var(--color-badge-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  position: absolute;
  top: 12px;
  right: 12px;
}
.gb-combo-label {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(46,125,50,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}
.gb-combo-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.gb-combo-card__body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.gb-combo-price-new {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}
.gb-combo-price-old {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.gb-btn-view {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}
.gb-btn-view:hover { background: var(--color-primary-dark); color: #fff; }

/* ========================================
   TESTIMONIALS
======================================== */
.gb-testimonials {
  background: #f1f8e9;
  padding: 40px 0;
}
.gb-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .gb-testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gb-testimonials__grid { grid-template-columns: 1fr; } }

.gb-testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gb-testimonial-card::before {
  content: '"';
  font-size: 60px;
  color: var(--color-primary);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}
.gb-testimonial-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-top: 16px;
}
.gb-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gb-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border);
}
.gb-testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gb-testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.gb-testimonial-card__role {
  font-size: 12px;
  color: var(--color-text-muted);
}
.gb-stars {
  color: #ffa726;
  font-size: 13px;
  margin-bottom: 2px;
}

/* ========================================
   TRUST BADGES
======================================== */
.gb-trust {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.gb-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .gb-trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gb-trust__grid { grid-template-columns: repeat(2, 1fr); } }

.gb-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}
.gb-trust-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(46,125,50,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.gb-trust-item__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}
.gb-trust-item__desc {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ========================================
   FOOTER
======================================== */
.gb-footer {
  background: #1a2e1a;
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.gb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .gb-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .gb-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.gb-footer__logo { margin-bottom: 12px; }
.gb-footer__logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.gb-footer__logo-text span { color: var(--color-accent-light); }
.gb-footer__about {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.gb-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.gb-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.gb-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.gb-footer__social-link svg { display: block; flex-shrink: 0; }
.gb-footer__social-link:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }

.gb-footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.gb-footer__links li {
  margin-bottom: 8px;
}
.gb-footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.gb-footer__links a:hover {
  color: #fff;
  padding-left: 6px;
}

.gb-footer__bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gb-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.gb-footer__payment img {
  height: 28px;
  filter: brightness(0.7);
}

/* ========================================
   MOBILE BOTTOM NAV
======================================== */
.gb-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 1001;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}
.gb-mobile-nav__inner {
  display: flex;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.gb-mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 10px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.gb-mobile-nav__item svg, .gb-mobile-nav__item .nav-icon {
  font-size: 20px;
  width: 22px;
  height: 22px;
}
.gb-mobile-nav__item.active, .gb-mobile-nav__item:hover {
  color: var(--color-primary);
}
.gb-mobile-nav__cart-btn {
  background: var(--color-primary);
  color: #fff !important;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin: 2px 0;
}

/* ========================================
   MOBILE SEARCH BAR
======================================== */
.gb-mobile-search {
  display: none;
  padding: 10px 16px;
  background: var(--color-primary);
}
.gb-mobile-search form {
  display: flex;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gb-mobile-search input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.gb-mobile-search button {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 16px;
}

/* ========================================
   WOOCOMMERCE OVERRIDES
======================================== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px 4px;
  color: var(--color-text);
}
.woocommerce ul.products li.product .price {
  padding: 0 12px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.woocommerce ul.products li.product .price del {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}
.woocommerce ul.products li.product .button {
  display: block;
  margin: 0 12px 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.woocommerce .onsale {
  background: var(--color-badge-sale);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  min-height: auto;
  line-height: 1.6;
}

/* WooCommerce Single Product */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin: 20px 0;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: var(--radius-md);
}
.woocommerce div.product .product_title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
}
.woocommerce div.product .single_add_to_cart_button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--color-primary-dark);
}

/* Cart & Checkout */
.woocommerce-cart .cart-collaterals,
.woocommerce table.shop_table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
}
.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.woocommerce a.button, .woocommerce button.button {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
  font-size: 13px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--color-accent);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: #e65100;
  color: #fff;
}

/* ========================================
   STICKY CART SIDEBAR (AJAX)
======================================== */
.gb-cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.gb-cart-sidebar.open { right: 0; }
.gb-cart-sidebar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
}
.gb-cart-sidebar__overlay.open { display: block; }
.gb-cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.gb-cart-sidebar__title { font-size: 16px; font-weight: 700; }
.gb-cart-sidebar__close {
  font-size: 22px;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.gb-cart-sidebar__close:hover { background: #f5f5f5; }
.gb-cart-sidebar__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.gb-cart-sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}
.gb-cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.gb-cart-sidebar__total-amount { color: var(--color-primary); }
.gb-cart-sidebar__btns { display: flex; gap: 10px; }
.gb-cart-sidebar__btns a {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
}
.gb-cart-sidebar__btns .gb-btn-viewcart {
  background: #f5f5f5;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.gb-cart-sidebar__btns .gb-btn-checkout {
  background: var(--color-accent);
  color: #fff;
}

/* ========================================
   MOBILE HAMBURGER BUTTON
======================================== */
.gb-hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(46,125,50,0.08);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.gb-hamburger:hover { background: rgba(46,125,50,0.16); }
.gb-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Active (open) state — X icon */
.gb-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gb-hamburger.active span:nth-child(2) { opacity: 0; }
.gb-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .gb-hero__inner { grid-template-columns: 1fr; }
  .gb-hero__banners {
    flex-direction: row;
    height: 160px;
  }
  .gb-hero__slide img, .gb-hero__slide-placeholder { height: 240px; }
}

@media (max-width: 768px) {
  .gb-header__search { display: none; }
  .gb-mobile-search { display: block; }
  .gb-mobile-nav { display: block; }
  .gb-nav { display: none; }
  body { padding-bottom: 60px; }

  /* Show hamburger button */
  .gb-hamburger { display: flex; }

  /* Hide "Account / Sign In" text label on small screens to save space */
  .gb-header__account-btn span:last-child { display: none; }

  .gb-header__inner { padding: 10px 16px; }
  .gb-hero__banners { height: 120px; }
  .gb-hero__slide img, .gb-hero__slide-placeholder { height: 200px; }
  .gb-products-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .gb-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .gb-section { padding: 24px 0; }
  .gb-cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
  .gb-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gb-product-card__body { padding: 8px; }
  .gb-product-card__actions { padding: 0 8px 8px; }
  .gb-product-card__title { font-size: 12px; }
  .gb-price-current { font-size: 14px; }
  .gb-btn-buynow { display: none; }
  .gb-hero__banners { display: none; }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.gb-text-center { text-align: center; }
.gb-mt-20 { margin-top: 20px; }
.gb-mb-20 { margin-bottom: 20px; }
.gb-section-bg { background: #fff; }
.gb-section-alt { background: var(--color-bg); }
.gb-load-more {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 10px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.gb-load-more:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ========================================
   CATEGORY PRODUCT SLIDER
======================================== */

/* Section header: title left, view-all + arrows right */
.gb-slider-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gb-slider-arrows {
  display: flex;
  gap: 4px;
}
.gb-slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}
.gb-slider-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}
.gb-slider-arrow:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: default;
  opacity: 0.5;
}

/* Outer wrapper clips overflow */
.gb-product-slider-outer {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Inner track: flex row, slides in via transform */
.gb-product-slider {
  display: flex;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each card in the slider: fixed width = (100% - 3 gaps) / 4 */
.gb-slider-item {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
}

/* Responsive: 3 cards on tablet, 2 on mobile */
@media (max-width: 1100px) {
  .gb-slider-item {
    flex: 0 0 calc((100% - 24px) / 3);
  }
}
@media (max-width: 700px) {
  .gb-slider-item {
    flex: 0 0 calc((100% - 12px) / 2);
  }
  .gb-slider-arrows {
    gap: 4px;
  }
  .gb-slider-arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .gb-slider-item {
    flex: 0 0 calc(100% - 30px);
  }
}


/* ========================================
   QUANTITY STEPPER (+/-)  — single product & cart
======================================== */
.quantity.gb-qty {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  max-width: 100%;
}
.gb-qty .gb-qty-btn {
  width: 44px;
  flex: 0 0 44px;
  border: none;
  background: #f3f4f6;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.gb-qty .gb-qty-btn:hover { background: var(--color-accent-light); color: #fff; }
.gb-qty .gb-qty-btn:active { background: var(--color-accent); }
.gb-qty input.qty {
  flex: 1;
  min-width: 40px;
  width: auto !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
  padding: 0;
}
.gb-qty input.qty::-webkit-outer-spin-button,
.gb-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* On the cart page keep the stepper a sensible compact width */
.woocommerce-cart table.cart td.product-quantity .quantity.gb-qty { width: 130px; }

/* ========================================
   MINI-CART ITEMS (slide-out sidebar) + Remove button
======================================== */
.gb-mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.gb-mini-cart-item__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.gb-mini-cart-item__info { flex: 1; min-width: 0; }
.gb-mini-cart-item__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-mini-cart-item__meta { font-size: 12px; color: var(--color-text-muted); }
.gb-mini-cart-item__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gb-mini-cart-item__remove:hover {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.gb-mini-cart-item__remove:disabled { opacity: 0.6; cursor: default; }

/* ========================================
   RESPONSIVE REFINEMENTS (mobile / tablet)
   Covers header, footer, product, cart, checkout & my-account pages
======================================== */
@media (max-width: 1024px) {
  .gb-footer__grid { gap: 28px; }
}

@media (max-width: 900px) {
  /* Footer: stack into 2 columns; social/follow column full-width row */
  .gb-footer__grid { grid-template-columns: 1fr 1fr; }

  /* Cart & checkout: let WooCommerce tables breathe and stack the 2-column layout */
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout #customer_details.col2-set,
  .woocommerce .col2-set { width: 100%; float: none; }
  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2 { width: 100%; float: none; }
  .woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading { width: 100%; float: none; }
}

@media (max-width: 768px) {
  /* Header */
  .gb-header__inner { gap: 12px; }
  .gb-header__logo img { height: 40px; }
  .gb-header__logo-text { font-size: 19px; }

  /* Generic container padding */
  .gb-container { padding: 0 14px; }

  /* My Account: stack the navigation above content */
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 0 18px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }

  /* Forms: full-width inputs so nothing overflows on small screens */
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-first,
  .woocommerce-page form .form-row-last { width: 100%; float: none; margin-right: 0; }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select { width: 100%; }

  /* Cart table → card-style rows on mobile (WooCommerce default markup) */
  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr { display: block; }
  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    gap: 12px;
  }
  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
  }
  .woocommerce table.shop_table_responsive tr td.product-remove { justify-content: flex-end; }
}

@media (max-width: 600px) {
  /* Footer: single column */
  .gb-footer__grid { grid-template-columns: 1fr; }
  .gb-footer { padding-top: 36px; }
  .gb-footer__bottom { flex-direction: column; text-align: center; }

  /* Quantity + Add to Cart stay on one row, Buy Now full width below
     (already handled by flex on the product page; this just tightens spacing) */
  .gb-prod-cart-wrap form.cart,
  .gb-prod-cart-wrap .woocommerce-variation-add-to-cart { gap: 8px; }
}

@media (max-width: 480px) {
  .gb-header__action-btn span:last-child { font-size: 10px; }
  .gb-footer__social-link { padding: 8px 14px; }
}