/*
Theme Name: Gadget Bazar
Theme URI: https://example.com
Author: Your Company
Author URI: https://example.com
Description: Custom WooCommerce-ready e-commerce theme for a gadget & electronics store. Minimalist Red & Brown design with Hind Siliguri (Bangla) and Inter (English) fonts, a clean SVG icon system, and a fully fluid responsive layout. Includes homepage sections (hero slider, featured products, new arrivals, best selling, flash sale, categories, brands, testimonials, why-choose-us, newsletter) and WooCommerce product loop customization.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gadgetbazar
Tags: e-commerce, woocommerce, custom-menu, featured-images, theme-options

This theme requires the WooCommerce plugin: https://wordpress.org/plugins/woocommerce/
*/

/* =========================================================
   1. DESIGN TOKENS
   A small, consistent scale (color / spacing / radius / shadow /
   type) drives the whole theme so spacing and sizing stay
   predictable at every screen size instead of one-off pixel values.
   ========================================================= */
:root {
  /* Brand: Red & Brown — slightly muted for a more professional feel */
  --color-primary: #A8321F;
  --color-primary-dark: #7E1B15;
  --color-primary-light: #F6DCD7;

  --color-secondary: #5B4030;
  --color-secondary-dark: #3D2A1E;
  --color-secondary-light: #F1E9DF;

  --color-accent: #C9791E;

  --color-bg: #FBFAF8;
  --color-surface: #FFFFFF;
  --color-text: #262019;
  --color-text-muted: #7C7268;
  --color-border: #E7E0D6;
  --color-success: #2E7D32;
  --color-danger: #C0392B;

  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-english: 'Inter', sans-serif;

  /* Fluid spacing scale — same variable, different size per viewport,
     so nothing needs a breakpoint-specific override for basic gaps */
  --space-1: clamp(4px, 0.6vw, 6px);
  --space-2: clamp(8px, 1.2vw, 10px);
  --space-3: clamp(10px, 1.6vw, 14px);
  --space-4: clamp(14px, 2.2vw, 20px);
  --space-5: clamp(18px, 3vw, 28px);
  --space-6: clamp(24px, 4vw, 40px);
  --space-7: clamp(32px, 5.5vw, 56px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-card: 0 1px 3px rgba(38, 32, 25, 0.06), 0 1px 2px rgba(38, 32, 25, 0.04);
  --shadow-hover: 0 12px 24px -8px rgba(38, 32, 25, 0.16);
  --shadow-popover: 0 16px 40px rgba(38, 32, 25, 0.18);

  --container-width: 1240px;
  --container-pad: clamp(16px, 4vw, 20px);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-english), var(--font-bangla), sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden; /* guards against any single wide element forcing horizontal scroll */
}
:lang(bn), .bn-text { font-family: var(--font-bangla), var(--font-english), sans-serif; }

img, svg { max-width: 100%; height: auto; display: block; }
table { max-width: 100%; }
iframe, video, embed { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { color: var(--color-secondary-dark); font-weight: 700; margin: 0 0 0.5em; line-height: 1.3; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  width: 100%;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--color-primary); color: #fff; border: 1px solid transparent; cursor: pointer;
  padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14.5px; line-height: 1.2; transition: background .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary-dark); }
.btn-icon { gap: var(--space-1); }
.btn-icon .gb-icon { flex-shrink: 0; }

/* =========================================================
   3. ICON SYSTEM
   ========================================================= */
.gb-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: -4px; }
.gb-icon-xs { width: 13px; height: 13px; vertical-align: -2px; }
.gb-icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.gb-icon-lg { width: 30px; height: 30px; }

.gb-star-rating { display: inline-flex; align-items: center; gap: 2px; }
.gb-star svg { width: 13px; height: 13px; color: var(--color-border); }
.gb-star.is-filled svg { color: var(--color-accent); fill: currentColor; }
.rating { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-2); }
.rating-count { font-size: 11.5px; color: var(--color-text-muted); }

/* =========================================================
   3b. ACCESSIBILITY
   ========================================================= */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 10px; z-index: 999999; background: var(--color-primary);
  color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 10px; position: fixed !important; width: auto; height: auto; clip: auto; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* =========================================================
   4. SECTION LAYOUT
   ========================================================= */
.section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-5); flex-wrap: wrap; gap: var(--space-2); }
.section-title { font-size: clamp(19px, 2.4vw, 25px); position: relative; padding-left: var(--space-3); border-left: 4px solid var(--color-primary); }
.section-subtitle { color: var(--color-text-muted); font-size: 13.5px; margin-top: 4px; }
.section-link { display: inline-flex; align-items: center; gap: 4px; color: var(--color-primary); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.section-alt { background: var(--color-secondary-light); }

/* =========================================================
   5. HEADER
   ========================================================= */
.site-topbar { background: var(--color-secondary-dark); color: #EFE6DA; font-size: 12.5px; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: var(--space-3); flex-wrap: wrap; }
.site-topbar a { color: #EFE6DA; display: inline-flex; align-items: center; gap: 5px; opacity: .92; }
.site-topbar a:hover { opacity: 1; color: var(--color-accent); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header .header-row { display: flex; align-items: center; gap: var(--space-4); padding-top: 14px; padding-bottom: 14px; }

.site-logo { font-size: 22px; font-weight: 800; color: var(--color-primary); flex-shrink: 0; display: flex; align-items: center; letter-spacing: -0.01em; }
.site-logo span { color: var(--color-secondary); }
.site-logo-img { max-height: 40px; width: auto; }

.mobile-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; flex-shrink: 0; padding: 0;
}
.mobile-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-secondary-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-search { flex: 1; display: flex; max-width: 520px; position: relative; min-width: 0; }
.header-search input[type="search"] {
  flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--color-border); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 14px; outline: none; background: var(--color-bg);
  color: var(--color-text);
}
.header-search input:focus { border-color: var(--color-primary); background: #fff; }
.header-search button {
  background: var(--color-primary); color: #fff; border: none; padding: 0 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-search button:hover { background: var(--color-primary-dark); }
.header-search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-popover); z-index: 50; display: none; overflow: hidden; max-height: 70vh; overflow-y: auto;
}

.header-actions { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.header-action-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--color-text-muted); }
.icon-circle {
  width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-secondary-light);
  display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--color-secondary-dark); transition: background .18s ease, color .18s ease, transform .15s ease;
}
.header-action-item:hover .icon-circle { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.header-action-item .label { font-weight: 600; }
.icon-circle .count {
  position: absolute; top: -3px; right: -3px; background: var(--color-primary); color: #fff;
  font-size: 10px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-surface);
}
.header-action-item:hover .icon-circle .count { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }

.main-nav { background: var(--color-secondary); }
.main-nav ul { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 12px 14px; color: #fff; font-weight: 600; font-size: 14px; }
.main-nav li:hover > a, .main-nav .current-menu-item > a { background: var(--color-secondary-dark); color: var(--color-accent); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: var(--shadow-popover); z-index: 60; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu a { color: var(--color-text); padding: 10px 16px; }
.main-nav .sub-menu a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* =========================================================
   6. HERO SLIDER
   ========================================================= */
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: var(--space-5) 0; box-shadow: var(--shadow-card); }
.hero-slide { position: relative; display: none; min-height: clamp(220px, 38vw, 380px); background-size: cover; background-position: center; }
.hero-slide.active { display: block; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(61,42,30,.82) 0%, rgba(61,42,30,.35) 55%, rgba(61,42,30,0) 100%); }
.hero-slide-content { position: relative; z-index: 2; max-width: 460px; padding: clamp(22px, 5vw, 56px); padding-bottom: calc(clamp(22px, 5vw, 56px) + 22px); color: #fff; }
.hero-slide-content .eyebrow { color: var(--color-accent); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.hero-slide-content h2 { color: #fff; font-size: clamp(21px, 4vw, 36px); margin-bottom: 12px; }
.hero-slide-content p { margin-bottom: 20px; opacity: .92; font-size: clamp(13px, 1.6vw, 15px); }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; position: relative; }
.hero-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); }
.hero-dots button.active { background: var(--color-accent); width: 20px; border-radius: 5px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.9);
  border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary-dark);
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }

/* =========================================================
   7. CATEGORY / BRAND GRID
   ========================================================= */
.grid { display: grid; gap: var(--space-4); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.category-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); text-align: center; padding: var(--space-4) var(--space-2); transition: box-shadow .18s, transform .18s, border-color .18s; }
.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--color-primary); }
.category-card .icon-wrap { width: 56px; height: 56px; margin: 0 auto var(--space-2); border-radius: 50%; background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.category-card .icon-wrap img { width: 30px; height: 30px; object-fit: contain; }
.category-card h3 { font-size: 13.5px; margin: 0; }
.category-card .count { font-size: 11.5px; color: var(--color-text-muted); }

.brand-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); display: flex; align-items: center; justify-content: center; height: 84px; filter: grayscale(100%); opacity: .7; transition: all .18s; }
.brand-card:hover { filter: none; opacity: 1; box-shadow: var(--shadow-hover); border-color: var(--color-primary); }

/* =========================================================
   8. PRODUCT CARD
   ========================================================= */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.product-card { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--color-border); }
.product-card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); color: #fff; letter-spacing: .2px; }
.badge-sale { background: var(--color-primary); }
.badge-new { background: var(--color-accent); }
.badge-out { background: #9B9086; }
.product-card .wishlist-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-muted); transition: color .15s, border-color .15s;
}
.product-card .wishlist-btn:hover, .product-card .wishlist-btn.active { color: var(--color-primary); border-color: var(--color-primary); }
.product-card .wishlist-btn.active svg { fill: currentColor; }
.product-card .thumb { display: block; aspect-ratio: 1/1; background: var(--color-secondary-light); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: var(--space-3) var(--space-3) var(--space-4); display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 10.5px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .4px; }
.product-card .name { font-size: 14px; font-weight: 600; margin: 4px 0 8px; min-height: 38px; line-height: 1.35; }
.product-card .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.product-card .price .now { color: var(--color-primary); font-weight: 700; font-size: 15.5px; }
.product-card .price .old { color: var(--color-text-muted); text-decoration: line-through; font-size: 12.5px; }
.product-card .add-cart-btn { width: 100%; padding: 9px; margin-top: auto; font-size: 13.5px; }

/* Flash Sale */
.flash-sale-bar { display: flex; align-items: center; justify-content: space-between; background: var(--color-secondary-dark); color: #fff; border-radius: var(--radius-md) var(--radius-md) 0 0; padding: var(--space-3) var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
.flash-sale-bar h3 { color: #fff; margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.flash-sale-bar h3 .gb-icon { color: var(--color-accent); }
.countdown { display: flex; gap: 6px; }
.countdown .unit { background: rgba(255,255,255,.14); padding: 6px 9px; border-radius: 6px; min-width: 42px; text-align: center; font-weight: 700; font-size: 14px; }
.countdown .unit small { display: block; font-weight: 400; font-size: 9.5px; opacity: .8; }
.flash-sale-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-2); }
.flash-sale-wrap .products-grid { padding: var(--space-4); }

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.testimonial-card .stars { margin-bottom: var(--space-2); }
.testimonial-card .customer { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); }
.testimonial-card .customer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-source { color: var(--color-text-muted); }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.why-item .icon { width: 52px; height: 52px; margin: 0 auto var(--space-2); background: var(--color-primary-light); color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.why-item-text { color: var(--color-text-muted); font-size: 13.5px; margin: 0; }

/* Newsletter */
.newsletter-band { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.newsletter-band h3 { color: #fff; margin-bottom: 4px; font-size: clamp(17px, 2.4vw, 23px); }
.newsletter-band p { margin: 0; opacity: .92; font-size: 14px; }
.newsletter-form { display: flex; width: 100%; max-width: 420px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 12px 16px; border: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 14px; }
.newsletter-form button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-secondary-dark); color: #fff; border: none; padding: 0 20px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.social-links { display: flex; gap: 8px; margin-top: var(--space-3); flex-wrap: wrap; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.social-links a:hover { background: var(--color-accent); }
.social-links .gb-icon { width: 16px; height: 16px; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer { background: var(--color-secondary-dark); color: #D9CCBE; margin-top: var(--space-6); }
.site-footer .footer-top { padding-top: var(--space-6); padding-bottom: var(--space-4); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: var(--space-3); }
.site-footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.site-footer a:hover { color: var(--color-accent); }
.footer-contact-line { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; }
.footer-contact-line .gb-icon { color: var(--color-accent); flex-shrink: 0; }
.footer-payment-icons { display: flex; gap: 8px; margin-top: var(--space-2); flex-wrap: wrap; }
.footer-payment-icons span { background: #fff; color: var(--color-secondary-dark); font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 4px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-3); padding-bottom: var(--space-3); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.footer-secure { display: flex; align-items: center; gap: 6px; }

.gb-whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; background: #25D366;
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover); z-index: 999;
}
.gb-whatsapp-float .gb-icon { width: 24px; height: 24px; }
.gb-extra-meta { margin: var(--space-4) 0; font-size: 14px; }
.gb-meta-row { margin: 4px 0; }

/* =========================================================
   10. WOOCOMMERCE GENERIC OVERRIDES
   ========================================================= */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; }
.woocommerce span.onsale { background: var(--color-primary) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
  background: var(--color-primary) !important; color: #fff !important; border-radius: var(--radius-sm) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--color-primary-dark) !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--color-primary); }
.woocommerce-page .woocommerce-breadcrumb { background: var(--color-secondary-light); padding: var(--space-3) 0; margin-bottom: var(--space-5); font-size: 13px; }

@media (max-width: 700px) {
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 2px solid var(--color-border); padding: var(--space-2) 0; }
  .woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; border: none !important; padding: 6px 0 !important; }
  .woocommerce table.shop_table_responsive td::before { content: attr(data-title) ": "; font-weight: 600; color: var(--color-secondary-dark); }
  .woocommerce-checkout .col2-set, .woocommerce-cart .cart-collaterals { display: block !important; }
  .woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; }
}

/* Shop layout: sidebar filters */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-5); align-items: start; }
.shop-filters { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); position: sticky; top: 90px; }
.shop-filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-2); }
.filter-group { margin-bottom: var(--space-5); }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 7px; cursor: pointer; }
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--color-border); border-radius: 4px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); flex-wrap: wrap; gap: var(--space-2); }
.shop-toolbar select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); max-width: 100%; }
.color-swatch { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--color-border); cursor: pointer; }
.color-swatch.selected { box-shadow: 0 0 0 2px var(--color-primary); }

/* =========================================================
   11. FLUID TYPOGRAPHY
   ========================================================= */
h1 { font-size: clamp(22px, 4vw, 32px); }

/* =========================================================
   12. TOUCH TARGETS
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  /* Elements that should genuinely grow to a 40px+ touch target */
  .btn, .header-action-item, .main-nav a, .category-card, .mobile-nav-toggle,
  .woocommerce a.button, .woocommerce button.button {
    min-height: 40px;
  }
  /* Circular icon buttons: set width AND height together, never just
     min-height alone — a lone min-height stretches a fixed-width
     circle into an oval. .icon-circle is already 40x40 by default. */
  .wishlist-btn, .hero-arrow { width: 40px; height: 40px; }
  .color-swatch { width: 28px; height: 28px; }
  /* Slide-indicator dots stay visually small; see the invisible
     enlarged hit-area added on .hero-dots button below instead of
     growing the dot itself. */
}

/* =========================================================
   13. RESPONSIVE — every value below is re-checked against
   "nothing touches the edge, nothing overflows" at each step.
   ========================================================= */

/* Large desktop cap */
@media (min-width: 1440px) {
  :root { --container-width: 1320px; }
}

/* Tablets landscape */
@media (max-width: 1100px) {
  :root { --container-width: 100%; }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 220px 1fr; }
}

/* Tablets portrait */
@media (max-width: 900px) {
  .grid-4, .products-grid, .why-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
}

/* Large phone / small tablet — hamburger menu kicks in */
@media (max-width: 782px) {
  .mobile-nav-toggle { display: flex; order: -1; }
  .site-header .header-row { flex-wrap: wrap; row-gap: var(--space-2); }
  .site-logo { font-size: 19px; }
  .site-logo-img { max-height: 32px; }

  .main-nav { display: none; }
  .main-nav.nav-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .sub-menu { position: static; box-shadow: none; border-radius: 0; background: rgba(0,0,0,.15); }
  .main-nav .sub-menu a { color: #f2e9df; padding-left: 22px; }
  .main-nav .menu-item-has-children:hover .sub-menu { display: none; }
  .main-nav .menu-item-has-children.submenu-open .sub-menu { display: block; }

  .header-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .header-action-item .label { display: none; }
  .header-actions { gap: var(--space-3); }
  .icon-circle { width: 36px; height: 36px; }

  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .topbar-right { display: none; } /* least essential on small screens, prevents crowding */
}

/* Phones */
@media (max-width: 640px) {
  .grid-6, .grid-4, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .hero-slide-content { max-width: 100%; }
  .site-footer .footer-top { grid-template-columns: 1fr; gap: var(--space-5); padding-top: var(--space-5); padding-bottom: var(--space-3); }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-band { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { max-width: 100%; }
  .flash-sale-bar { flex-direction: column; align-items: flex-start; }
  .section-title-row { flex-direction: column; align-items: flex-start; }
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Small phones */
@media (max-width: 420px) {
  :root { --space-7: 28px; }
  .grid-6, .grid-4, .products-grid, .why-grid { gap: var(--space-3); }
  .product-card .name { font-size: 13px; min-height: 34px; }
  .btn { padding: 10px 16px; font-size: 13.5px; }
  .gb-whatsapp-float { width: 46px; height: 46px; bottom: 14px; right: 14px; }
  .gb-whatsapp-float .gb-icon { width: 20px; height: 20px; }
  .hero-slider { border-radius: var(--radius-md); margin: var(--space-3) 0; }
  .countdown .unit { min-width: 36px; padding: 5px 6px; font-size: 12.5px; }
}

/* Very small / older devices */
@media (max-width: 340px) {
  .grid-6, .grid-4, .products-grid { grid-template-columns: 1fr 1fr; }
  .header-search input[type="search"] { font-size: 13px; padding: 9px 10px; }
  .site-logo { font-size: 17px; }
}

/* Landscape phones (short viewport height) */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .hero-slide { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-topbar, .main-nav, .site-footer, .gb-whatsapp-float,
  .hero-slider, .newsletter-band, .flash-sale-bar .countdown { display: none !important; }
}
