/*
Theme Name: Max E-Shop Pro
Theme URI: https://example.com
Author: Max Web Solutions
Description: Max E-Shop Pro — সম্পূর্ণ WooCommerce থিম। স্টিকি হেডার, সাইড কার্ট, ক্যাটাগরি ও প্রোডাক্ট গ্রিড।
Version: 1.2.18
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghorer-style
Tags: e-commerce, woocommerce, food-and-drink, custom-menu, featured-images, translation-ready
*/

:root {
  --primary: #f48721;
  --primary-dark: #d9721a;
  --primary-light: #fff4e8;
  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-light: color-mix(in srgb, var(--primary) 14%, #fff);
  --text: #222;
  --text-light: #5c5c5c;
  --bg: #fff;
  --light: #f7f7f7;
  --border: #eee;
  --header-bg: #fff;
  --topbar-bg: #f48721;
  --footer-bg: #1a1a1a;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind Siliguri", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button, [role="button"], .button, .btn-primary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.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: absolute;
  left: 12px; top: -40px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 10000;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 30px)); margin: 0 auto; }
.btn-primary, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.btn-primary:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.ghorer-empty {
  text-align: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 16px;
  color: var(--text-light);
}

/* Header */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.admin-bar .site-header { top: 32px; }
.top-bar { background: var(--topbar-bg); color: var(--topbar-color, #fff); font-size: 14px; }
.top-bar-inner { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.top-bar a { color: var(--topbar-color, #fff); text-decoration: underline; }
.top-divider { opacity: 0.55; }
.header-main { display: flex; align-items: center; gap: 18px; padding: 12px 0; position: relative; }
.site-logo a { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: -0.3px; }
.site-logo span { color: var(--text); }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }
.header-search { flex: 1; max-width: 520px; }
.header-search form, .mobile-search-form form { display: flex; gap: 8px; }
.header-search input[type="search"], .mobile-search-form input[type="search"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
}
.header-search button, .mobile-search-form button {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
}
.header-icons { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-icons a, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  color: var(--text);
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
}
.header-icons a:hover, .icon-btn:hover { background: var(--light); color: var(--text); }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count.is-zero { display: none; }
.mobile-menu-toggle, .search-toggle, .mobile-search-form { display: none; }
.main-nav { background: var(--light); border-top: 1px solid var(--border); }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 12px 14px; color: var(--text); font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--primary); }
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 20;
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
.main-nav ul ul a { padding: 8px 14px; font-weight: 500; }

/* Hero */
.hero-slider { position: relative; overflow: hidden; background: var(--light); }
.slider-container { display: flex; transition: transform 0.5s ease; }
.slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: var(--slide-h, 380px);
  height: var(--slide-h, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.slide::before { content: ""; position: absolute; inset: 0; background: var(--slide-overlay, #000); opacity: 0.35; }
.slide-default { background: linear-gradient(135deg, var(--primary-light), #fff 60%); }
.slide-default::before { display: none; }
.slide-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 32px 16px; max-width: 720px; }
.slide-default .slide-content { color: var(--text); }
.slide-default .slide-content h2,
.slide-default .slide-content p { color: var(--text); }
.slide-content h2 { margin: 0 0 8px; font-size: 40px; line-height: 1.2; color: var(--slide-title, #fff); }
.slide-content p { margin: 0 0 18px; font-size: 18px; color: var(--slide-text, #fff); }
.slide .btn-primary { background: var(--slide-btn-bg, var(--primary)); color: var(--slide-btn-color, #fff) !important; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--slide-arrow-bg, #fff); color: var(--slide-arrow-color, #222);
  font-size: 28px; z-index: 2;
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--slide-dot, #fff); opacity: 0.55; }
.slider-dots span.active { background: var(--slide-dot-active, #fff); opacity: 1; }

.offer-banner { padding: 28px 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-card {
  background: linear-gradient(180deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
}
.offer-card h3 { margin: 0 0 6px; color: var(--primary); font-size: 22px; }
.offer-card p { margin: 0 0 14px; color: var(--text-light); }

.section-title { text-align: center; font-size: 28px; margin: 0 0 18px; }
.categories-section, .products-section { padding: 28px 0; }
.categories-section { background: var(--catbar-bg, #fff); }
.categories-slider {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.categories-slider::-webkit-scrollbar { display: none; }
.categories-track { display: flex; width: max-content; }
.categories-group { display: flex; gap: 16px; padding-right: 16px; }
.category-item {
  flex: 0 0 auto;
  width: calc(var(--cat-size, 72px) + 20px);
  text-align: center;
  color: var(--cat-name, var(--text));
}
.category-item:hover { color: var(--primary); }
.cat-thumb, .cat-icon {
  width: var(--cat-size, 72px); height: var(--cat-size, 72px);
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 2px solid var(--cat-border, #eee);
  object-fit: cover;
  background: var(--light);
}
.cat-icon { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.cat-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.section-banner-wrap { padding-top: 8px; }
.section-banner { display: block; border-radius: 12px; overflow: hidden; }
.section-banner img { width: 100%; height: auto; margin: 0; }
.section-more { text-align: center; margin-top: 18px; }

.product-carousel { position: relative; }
.pc-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.pc-viewport::-webkit-scrollbar { display: none; }
ul.products.pc-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  gap: 12px !important;
  grid-template-columns: none !important;
}
ul.products.pc-track > li.product { float: none !important; }
.pc-track .ghorer-card-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
.pc-track .ghorer-card-image { width: 100%; flex: none; }
.pc-track .ghorer-card-image img { width: 100% !important; height: 150px !important; }
.pc-track .ghorer-btn-add,
.pc-track .ghorer-buy-now { display: none !important; }
.pc-track .ghorer-product-actions { display: none; }
.pc-track .ghorer-product-actions:has(.ghorer-out-of-stock),
.pc-track .ghorer-product-actions:has(a.ghorer-btn-buy) { display: flex; }
.pc-prev, .pc-next {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--pc-arrow, #fff);
  color: var(--pc-arrow-color, #222);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  line-height: 1;
}
.pc-prev { left: -4px; }
.pc-next { right: -4px; }
.product-carousel:not(:has(li)) .pc-prev,
.product-carousel:not(:has(li)) .pc-next { display: none; }

/* Product cards */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(var(--card-cols, 2), minmax(0, 1fr));
  gap: var(--card-gap, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
ul.products::before, ul.products::after { content: none !important; display: none !important; }
ul.products li.product {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0;
}
.ghorer-card-inner {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #f0f0f0);
  border-radius: var(--card-radius, 12px);
}
.ghorer-cards-shadow .ghorer-card-inner { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.ghorer-card-image { position: relative; flex: 0 0 130px; align-self: flex-start; }
.ghorer-card-image img { width: 130px; height: 130px; object-fit: var(--card-img-fit, contain); margin: 0; }
.ghorer-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--card-badge-bg, #ff3b30);
  color: var(--card-badge-color, #fff);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.ghorer-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ghorer-product-title { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.ghorer-product-title a { color: var(--card-title, var(--text)); }
.ghorer-rating { margin-bottom: 6px; }
.ghorer-rating .star-rating { float: none; margin: 0; }
.ghorer-product-price { color: var(--card-price, var(--primary)); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.ghorer-product-price del { color: #999; font-size: 14px; font-weight: 400; margin-right: 6px; }
.ghorer-product-price ins { text-decoration: none; }
.ghorer-product-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
}
.ghorer-product-actions .ghorer-btn-add,
.ghorer-product-actions .ghorer-btn-buy,
.ghorer-buy-now { flex: 1 1 0; }
.ghorer-buy-now { margin: 0; }
.ghorer-btn-add, .ghorer-btn-buy {
  width: 100%;
  margin: 0 !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  border-radius: var(--card-btn-radius, 6px) !important;
  white-space: normal;
}
.ghorer-btn-add {
  background: var(--card-cart-bg, #fff) !important;
  color: var(--card-cart-color, var(--primary)) !important;
  border: 1.5px solid var(--card-cart-border, var(--primary)) !important;
}
.ghorer-btn-add:hover {
  background: var(--card-cart-color, var(--primary)) !important;
  color: #fff !important;
}
.ghorer-btn-buy {
  background: var(--card-buy-bg, var(--primary)) !important;
  color: var(--card-buy-color, #fff) !important;
  border: 0 !important;
}
.ghorer-btn-buy:hover { filter: brightness(0.94); }
.ghorer-out-of-stock { color: #999; font-size: 14px; }

@media (min-width: 769px) {
  .ghorer-cards-vertical .ghorer-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .ghorer-cards-vertical .ghorer-card-image { width: 100%; flex: none; }
  .ghorer-cards-vertical .ghorer-card-image img { width: 100%; height: 180px; }
  .ghorer-cards-vertical .ghorer-product-actions { flex-direction: column; }
}

/* Side cart */
.side-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s;
}
.side-cart-overlay.show { opacity: 1; visibility: visible; }
.side-cart {
  position: fixed; top: 0; right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 210;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}
.side-cart.open { transform: translateX(0); }
.side-cart-header, .side-cart-body { padding: 16px 18px; }
.side-cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); font-weight: 700; }
.side-cart-close { border: 0; background: transparent; font-size: 28px; line-height: 1; }
.side-cart-body { flex: 1; overflow: auto; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 28px 12px 0; border-bottom: 1px solid var(--border); position: relative; }
.woocommerce-mini-cart-item img { width: 64px; height: 64px; object-fit: contain; }
.woocommerce-mini-cart-item a { color: var(--text); font-weight: 600; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 8px; right: 0; color: #888; font-weight: 400; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-weight: 700; margin: 14px 0; }
.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; margin: 0; }
.woocommerce-mini-cart__empty-message { color: var(--text-light); }

/* Pages, shop, single */
.page-content { padding: 28px 0 48px; }
.page-title { margin: 0 0 16px; font-size: 30px; }
.entry-content > *:first-child { margin-top: 0; }
.woocommerce-breadcrumb { font-size: 14px; color: var(--text-light); margin: 0 0 16px; }
.woocommerce-breadcrumb a { color: var(--text-light); }
.ghorer-shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-input-wrapper input, .woocommerce-input-wrapper select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product .product_title { margin-top: 0; }
.woocommerce div.product p.price { color: var(--primary); font-size: 26px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .ghorer-single-buy { flex: 1 1 160px; margin: 0; }
.woocommerce div.product form.cart .ghorer-single-buy { min-height: 44px; }
.quantity .qty { width: 76px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li { background: var(--light); border: 1px solid var(--border); border-radius: 8px 8px 0 0; padding: 0; margin: 0; }
.woocommerce-tabs ul.tabs li a { padding: 10px 14px; color: var(--text); display: block; }
.woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce-Tabs-panel { border: 1px solid var(--border); border-radius: 0 12px 12px; padding: 16px; }
.ghorer-auth { margin: 8px 0 24px; }
.ghorer-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px;
  background: #fff !important;
  color: #222 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
}
.ghorer-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ghorer-auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.ghorer-auth-card h2 { margin: 0 0 14px; font-size: 22px; }
.ghorer-auth-card .button { width: 100%; }
.woocommerce-form-row label, .ghorer-auth-card label { display: block; font-weight: 600; margin-bottom: 6px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--primary-light);
  border-top: 3px solid var(--primary);
}
.woocommerce-error { background: #fff4f2; border-top-color: #c0392b; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-bottom: 1px solid var(--border); padding: 12px 8px; text-align: left; }
.cart-collaterals, .woocommerce-checkout #order_review, .woocommerce-checkout #customer_details { margin-top: 20px; }
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
  background: var(--primary-light);
  border-radius: 12px;
}
.ghorer-delivery-note { background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--border); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 4px; color: var(--text); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--primary); font-weight: 700; }
.ghorer-wa-confirm { margin-top: 16px; }
.pagination, .woocommerce-pagination { margin-top: 26px; }
.pagination .nav-links, .woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; min-width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 0 8px;
}
.page-numbers.current, .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
article.post { padding: 16px 0; border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text, #ccc); margin-top: 20px; }
.site-footer a { color: var(--footer-link, #ddd); }
.site-footer a:hover { color: var(--primary); }
.footer-top { padding: 42px 0 20px; }
.footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-widget h4 { color: var(--footer-heading, #fff); margin: 0 0 12px; }
.footer-widget p { margin: 0; font-size: 14px; }
.footer-widget ul, .contact-list { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin: 0 0 8px; font-size: 14px; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #2a2a2a; border-radius: 50%; }
.footer-bottom { border-top: 1px solid #333; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 0 18px; font-size: 14px; }
.bottom-nav { display: none; }
.bottom-nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.bottom-nav-icon svg { display: block; }
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff !important;
  border-radius: 999px; padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  font-weight: 700;
}

@media (max-width: 900px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: auto;
  }
  .top-bar { display: none !important; }
  body.admin-bar .site-header { top: 46px; }
  .desktop-only { display: none !important; }
  .header-main .mobile-menu-toggle { display: inline-flex; }
  .header-icons .search-toggle { display: none !important; }
  .header-main { min-height: 58px; }
  .site-logo { position: absolute; left: 50%; transform: translateX(-50%); max-width: 46%; }
  .site-logo a { font-size: 18px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .mobile-search-form.open { display: block; padding: 0 0 12px; }
  .offer-banner { display: none; }
  .slide {
    min-height: var(--slide-h-m, 240px);
    height: var(--slide-h-m, 240px);
  }
  .slide-content h2 { font-size: 26px; }
  .slide-content p { font-size: 15px; }
  ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .ghorer-card-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }
  .ghorer-card-image { flex: none; width: 100%; }
  .ghorer-card-image img {
    width: 100% !important;
    height: 120px !important;
    margin: 0 auto !important;
  }
  .ghorer-product-title { font-size: 13px; }
  .ghorer-product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ghorer-product-price { font-size: 15px; margin-bottom: 8px; }
  .ghorer-product-actions { flex-direction: column; gap: 6px; }
  .ghorer-btn-add, .ghorer-btn-buy { font-size: 12px !important; padding: 7px 6px !important; }
  .ghorer-auth-grid { grid-template-columns: 1fr; }
  .ghorer-google-login { max-width: none; }
  .whatsapp-float span:last-child { display: none; }
  .whatsapp-float { padding: 12px; border-radius: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--bnav-bg, #fff);
    border-top: 1px solid var(--bnav-border, #eee);
    box-shadow: none;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bnav-color, #666);
    font-size: var(--bnav-font, 11px);
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
  }
  .bottom-nav-item.is-active { color: var(--bnav-active, var(--primary)); }
  .bottom-nav-home { color: var(--bnav-active, var(--primary)); }
  .bottom-nav-home .bottom-nav-icon {
    width: var(--bnav-size, 54px);
    height: var(--bnav-size, 54px);
    margin-top: -26px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: var(--bnav-home, var(--primary));
    color: var(--bnav-home-color, #fff);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  }
  .bottom-nav.is-flat .bottom-nav-home .bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }
  .bottom-nav.is-shadow { box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06); }
  .bottom-nav.hide-labels .bottom-nav-item > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .bottom-nav .cart-count { top: -6px; right: -8px; }
  .woocommerce table.shop_table { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .footer-widgets { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-container, .side-cart, .side-cart-overlay { transition: none; }
}
