body.store-body {
  padding-bottom: calc(var(--nav-bottom-h) + 24px);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Sticky Top Header */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.brand-text h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Search Bar */
.search-bar-wrap {
  padding: 0 14px 10px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-box input {
  width: 100%;
  min-height: 44px;
  padding: 8px 42px 8px 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  font-size: 0.92rem;
}
.search-input-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
}
.search-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.search-clear.visible { display: flex; }

.search-suggestions {
  position: absolute;
  top: calc(100% - 6px);
  right: 14px;
  left: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 150;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.open { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-surface-alt); }
.suggestion-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.suggestion-meta { flex: 1; min-width: 0; }
.suggestion-meta strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-meta span { font-size: 0.78rem; color: var(--text-muted); }

/* Offline Banner */
.offline-banner {
  background: var(--warning);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  display: none;
}
.offline-banner.show { display: block; }

/* Main View Container */
.main-content {
  padding-top: 14px;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  direction: ltr;
}
.hero-slide {
  min-width: 100%;
  direction: rtl;
  padding: 24px 20px 38px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 175px;
  background-size: cover;
  background-position: center;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05));
  pointer-events: none;
}
.hero-slide-content { position: relative; z-index: 1; max-width: 480px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-slide h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.hero-slide p { margin: 0 0 14px; font-size: 0.9rem; opacity: 0.92; }
.hero-cta {
  background: #fff;
  color: #2C2A27;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.active { width: 22px; border-radius: 99px; background: #fff; }

/* Section Header */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-head h2 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.section-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Categories Horizontal Strip & Grid */
.cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 86px;
  padding: 12px 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.cat-chip-icon { font-size: 1.65rem; line-height: 1; }
.cat-chip-name { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.cat-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.cat-card h3 { margin: 0; font-size: 0.98rem; }
.cat-card small { color: var(--text-muted); font-size: 0.8rem; }

/* Products 2-Column Mobile Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 680px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 980px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-alt);
  overflow: hidden;
  cursor: pointer;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }

.product-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.fav-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #6E6860;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .fav-toggle { background: rgba(35,32,29,0.88); color: #D4CEC7; }
.fav-toggle.active { color: var(--accent-sale); }

.product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-cat-label { font-size: 0.72rem; color: var(--text-subtle); font-weight: 600; }
.product-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.product-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card .btn-sm { width: 100%; }

/* Filters Bar */
.filters-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  background: var(--bg-surface);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.filters-bar .select, .filters-bar .input {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.85rem;
  width: auto;
  flex: 1 1 130px;
}

/* Product Detail Modal / View */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .detail-layout { grid-template-columns: 1fr 1.1fr; gap: 26px; }
}
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface-alt);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.detail-title { margin: 6px 0; font-size: 1.32rem; font-weight: 800; line-height: 1.3; }
.detail-sku { font-size: 0.78rem; color: var(--text-subtle); }

.variant-group { margin: 14px 0; }
.variant-group label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 8px; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  font-size: 0.85rem;
  font-weight: 700;
}
.variant-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Custom Dimension Box (Rugs & Curtains) */
.measure-box {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
}
.measure-box h4 { margin: 0 0 8px; font-size: 0.94rem; color: var(--primary); }
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.measure-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}
.qty-control button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: 800;
}
.qty-control span {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
@media (min-width: 480px) {
  .detail-actions { grid-template-columns: 1fr 1fr; }
}

/* Lightbox Zoom */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
}

/* Cart & Checkout */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.cart-item img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.94rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.92rem;
}
.summary-row.total {
  border-top: 1.5px solid var(--border-color);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.05rem;
  font-weight: 800;
}
.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* Account Tabs & Order Tracker */
.tab-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.tab-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.88rem;
}
.tab-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.status-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 12px 0 6px;
  position: relative;
}
.status-step {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-subtle);
}
.status-step-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--border-color);
  margin-bottom: 4px;
}
.status-step.done .status-step-bar { background: var(--success); }
.status-step.done { color: var(--success); font-weight: 700; }

/* Bottom Fixed Navigation (Mobile-First) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-bottom-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  position: relative;
}
.bottom-nav-item .nav-icon { font-size: 1.3rem; line-height: 1; }
.bottom-nav-item.active { color: var(--primary); }
.nav-badge {
  position: absolute;
  top: 6px;
  left: calc(50% - 22px);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent-sale);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating WhatsApp Button */
.fab-whatsapp {
  position: fixed;
  bottom: calc(var(--nav-bottom-h) + 14px);
  left: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: var(--shadow-md);
  z-index: 180;
  transition: transform 0.2s ease;
}
.fab-whatsapp:hover { transform: scale(1.06); }

/* Footer Info */
.store-footer {
  margin-top: 32px;
  padding: 20px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links button, .footer-links a {
  color: var(--primary);
  font-weight: 700;
}


/* PWA Install Banner */
.pwa-install-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pwa-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pwa-banner-info img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-banner-info strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}
.pwa-banner-info small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pwa-dismiss-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Auth Segmented Tabs & Divider */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.auth-tab {
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-subtle);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.btn-google {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-main);
}
.btn-google:hover {
  border-color: var(--primary);
  background: var(--bg-surface-alt);
}
