/* ============================================================
   Dorojay.com — Mobile App Style CSS v5.0
   Only applies ≤768px. Desktop untouched.
   ============================================================ */

.mobile-bottom-nav         { display: none; }
.mobile-app-header         { display: none; }
.cat-scroll-row            { display: none; }
.cart-mobile-list          { display: none; }
.cart-mobile-checkout-bar  { display: none; }
.dash-mobile-logout        { display: none; }

/* ─────────────────────────────────────────────────────────
   HERO SLIDE OVERLAY — always hidden on desktop
───────────────────────────────────────────────────────── */
.hero-slide-overlay {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   768px and below
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

/* Homepage: prevent left-right swipe caused by full-width scrolling sections */
body.home-page {
  overflow-x: hidden;
}
.home-page,
.home-page html,
.home-page body {
  max-width: 100%;
}
.home-page .page-content,
.home-page .hero-section,
.home-page .trust-bar,
.home-page .site-footer {
  overflow-x: hidden;
}
.home-page .cat-scroll-row {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}
.home-page .trust-bar-inner {
  flex-wrap: wrap;
  gap: 16px !important;
}
.home-page .trust-item {
  min-width: 0 !important;
  flex: 1 1 140px !important;
}

/* Contact page: prevent sideways scrolling and stack content */
body.contact-page {
  overflow-x: hidden;
}
.contact-page .page-content {
  overflow-x: hidden;
}
.contact-page .contact-layout {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}
.contact-page .contact-info-card,
.contact-page .contact-social-card,
.contact-page .contact-form-card {
  padding: 20px !important;
}
.contact-page .contact-form-grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
.contact-page .contact-form-card form input,
.contact-page .contact-form-card form select,
.contact-page .contact-form-card form textarea,
.contact-page .contact-form-card form button {
  max-width: 100%;
}
.contact-page .page-content > .container {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Hide desktop-only search overlay on mobile */
.desktop-search-overlay { display: none !important; }


/* ─────────────────────────────────────────────────────────
   BOTTOM NAVIGATION
───────────────────────────────────────────────────────── */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  height: 68px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
  padding: 10px 4px 10px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mbn-item.active { color: #16a34a; }
.mbn-item span { font-size: 10px; line-height: 1; font-weight: 700; }

/* Active indicator dot on top */
.mbn-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: #16a34a;
}

/* Icon wrapper */
.mbn-icon-wrap {
  width: 40px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  position: relative;
}
.mbn-icon-active { background: rgba(22,163,74,0.1); }
.mbn-item.active .mbn-icon-wrap svg { color: #16a34a; }

/* Cart center raised button */
.mbn-cart-btn {
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}
.mbn-cart-pill {
  position: relative;
  width: 50px; height: 50px;
  background: #16a34a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mbn-cart-btn:active .mbn-cart-pill {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.mbn-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #ef4444; color: #fff;
  border-radius: 9px; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; line-height: 1;
}

/* ─────────────────────────────────────────────────────────
   GLOBAL
───────────────────────────────────────────────────────── */
body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.container   { padding: 0 14px; }

/* ─────────────────────────────────────────────────────────
   MOBILE APP HEADER (replaces desktop navbar on mobile)
───────────────────────────────────────────────────────── */
.mobile-app-header {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.mah-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mah-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mah-info { min-width: 0; }
.mah-greeting {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  line-height: 1.2;
}
.mah-location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}
.mah-logo-link { text-decoration: none; }

/* User menu button (wraps avatar + info) */
.mah-user-wrap { position: relative; }
.mah-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mah-chevron {
  margin-left: 2px;
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--text-dim);
}
.mah-user-wrap.open .mah-chevron { transform: rotate(180deg); }

/* Dropdown */
.mah-user-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1300;
  overflow: hidden;
  animation: mahDropIn 0.18s ease;
}
.mah-user-wrap.open .mah-user-dropdown { display: block; }
@keyframes mahDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mah-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mah-dd-item:active { background: #f8fafc; }
.mah-dd-item svg { color: var(--text-dim); flex-shrink: 0; }
.mah-dd-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 2px 0;
}
.mah-dd-logout { color: #ef4444; }
.mah-dd-logout svg { color: #ef4444; }

.mah-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mah-icon-btn {
  width: 36px; height: 36px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mah-icon-btn:active { opacity: 0.6; }
.mah-cart-btn { display: none !important; }
.mah-cart-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  background: #16a34a;
  color: #fff;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

/* On mobile: site-header is just a container — mobile-app-header handles fixed positioning */
.site-header { position: static !important; z-index: auto !important; }
/* Hide desktop navbar on mobile */
.navbar { display: none !important; }
/* Adjust page-content top offset for new header height */
.page-content { padding-top: 60px; }
/* Remove extra top padding from inner containers on mobile */
.page-content .container { padding-top: 16px !important; }

/* Mobile search bar (positioned under mobile app header) */
.mobile-search-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 1090;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: none;
  padding: 10px 14px;
}
.mobile-search-bar.open { display: block; }
.mobile-search-bar form {
  display: flex;
  gap: 0;
  width: 100%;
}
.mobile-search-bar .search-input {
  flex: 1;
  padding: 11px 14px;
  font-size: 16px;
  border-radius: 0 0 0 10px;
}

/* ─────────────────────────────────────────────────────────
   HERO — app-style with overlay text on mobile
───────────────────────────────────────────────────────── */
.hero-section.hero-carousel { padding-top: 60px !important; }

/* Overlay content shown on mobile */
.hero-slide-overlay {
  display: block;
  position: absolute;
  top: 20px; left: 18px;
  z-index: 4;
  max-width: 60%;
}
.hero-slide-badge {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-slide-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 5.5vw, 26px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 4px;
}
.hero-slide-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
/* Hero image: taller on mobile for visual impact */
.hero-slide-img {
  height: auto !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.hero-slide-empty {
  height: 180px;
}
/* Empty placeholder: gradient background */
.hero-slide-empty {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0e7ff 100%);
}
/* Keep button at bottom */
.hero-slide-btn-wrap { bottom: 16px; }
.hero-slide-btn { height: 38px; padding: 0 22px; font-size: 12px; }
/* Dots position adjustment */
.hero-carousel-dots { bottom: 10px; }
/* Arrows hidden on mobile */
.hero-carousel-arrow { display: none; }

/* ─────────────────────────────────────────────────────────
   CATEGORIES — horizontal scroll pills on mobile
───────────────────────────────────────────────────────── */
/* Hide desktop grid, show scroll row */
.categories-desktop-grid { display: none !important; }
.section-categories .section-heading { margin-bottom: 16px; }
.cat-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Extend beyond container padding for edge-to-edge scroll */
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
}
.cat-scroll-row::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-pill:active .cat-pill-icon { transform: scale(0.92); }
.cat-pill-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text-muted);
}
.cat-pill-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-pill-icon-all {
  background: #16a34a;
  color: #ffffff;
  border-color: transparent;
}
.cat-pill-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-pill-all .cat-pill-name {
  color: #16a34a;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────
   FLOATING ELEMENTS
───────────────────────────────────────────────────────── */
.back-to-top { bottom: 80px; right: 14px; width: 40px; height: 40px; }
.toast-wrap  { bottom: 80px; }
.flash-msg   { top: 62px; right: 12px; left: 12px; max-width: none; font-size: 14px; }

/* ── Cart: show mobile list + checkout bar, hide desktop summary ── */
.cart-mobile-list { display: flex; }
.cart-mobile-checkout-bar {
  display: flex;
  position: fixed;
  bottom: 64px; left: 0; right: 0;
  z-index: 1100;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 10px 16px;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}
.cart-mob-total-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cart-mob-total-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-mob-total-val {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.cart-mob-checkout-btn {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #16a34a;
  color: #fff;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(22,163,74,0.3);
  transition: opacity 0.15s;
  white-space: nowrap;
}
.cart-mob-checkout-btn:active { background: #15803d; }
/* Hide desktop order summary on cart page mobile */
.cart-summary-col { display: none !important; }

/* ─────────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────────── */
.section    { padding: 32px 0; }
.section-sm { padding: 22px 0; }
.section-heading { margin-bottom: 22px; }
.section-title {
  font-size: clamp(20px, 6vw, 28px) !important;
  padding: 4px 0 !important;
}
.section-subtitle { font-size: 13px; margin-top: 8px; }

/* ─────────────────────────────────────────────────────────
   PRODUCTS GRID
───────────────────────────────────────────────────────── */
.products-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
.product-card                        { transform: none !important; transform-style: flat !important; will-change: auto !important; overflow: hidden !important; transition: border-color 0.2s !important; }
.product-card:hover,
.product-card:active                 { transform: none !important; box-shadow: none !important; }
.product-card .product-img-wrap img  { transform: none !important; transition: none !important; }
.product-img-wrap                    { overflow: hidden; border-radius: inherit; }
.product-wishlist-btn { opacity: 1 !important; transform: scale(1) !important; z-index: 3 !important; position: absolute !important; }
.product-card-body    { padding: 8px 8px 10px; }
.product-name         { font-size: 11.5px; }
.product-price        { font-size: 12px; }
.product-cat-label    { font-size: 9px; }
.btn-add-cart         { font-size: 10.5px; padding: 6px 5px; }

/* Category grid hidden on mobile — scroll pills used instead */
.categories-desktop-grid { display: none !important; }

/* ─────────────────────────────────────────────────────────
   FLASH SALE
───────────────────────────────────────────────────────── */
.flash-sale-section { padding: 30px 0; }
.flash-sale-header  { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; text-align: center; }
.flash-sale-title-text { font-size: 20px; }
.countdown-timer { gap: 6px; }
.countdown-num   { font-size: 22px; min-width: 42px; padding: 6px 7px; }
.countdown-label { font-size: 9px; }
.countdown-sep   { font-size: 20px; margin-top: -8px; }

/* ─────────────────────────────────────────────────────────
   WHY-CHOOSE-US — 2 cols
───────────────────────────────────────────────────────── */
[style*="minmax(240px"] {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
.why-card { padding: 20px 14px; border-radius: 0; }
.why-card:hover { transform: none !important; }
.why-icon  { width: 50px; height: 50px; font-size: 20px; margin-bottom: 12px; }
.why-title { font-size: 13px; }
.why-desc  { font-size: 12px; }

/* ─────────────────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────────────────── */
[style*="minmax(300px"] {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}
.testimonial-card { padding: 22px 18px; }
.testimonial-card:hover { transform: none !important; }
.testimonial-text { font-size: 14px; }

/* ─────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────── */
.cta-section { padding: 36px 0; }
.cta-card    { padding: 28px 18px !important; }
.cta-title   { font-size: clamp(20px, 5.5vw, 28px) !important; }
.cta-subtitle { font-size: 13px; margin-bottom: 20px; }
.cta-coupon-badge { font-size: 17px; padding: 9px 16px; }

/* ─────────────────────────────────────────────────────────
   TRUST BAR — hide on mobile (save space)
───────────────────────────────────────────────────────── */
.trust-bar { display: none; }

/* ─────────────────────────────────────────────────────────
   FOOTER — compact single column
───────────────────────────────────────────────────────── */
.footer-top { padding: 28px 0 16px; }
.footer-container {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}
.footer-brand { grid-column: 1 !important; }
.footer-desc  { font-size: 13px; }
.footer-bottom { padding: 14px 0; }
.footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
.footer-socials { gap: 8px; }
.social-btn { width: 36px; height: 36px; }
/* Show all footer cols in a 2-column grid, hide only newsletter/contact */
.footer-col:not(.footer-brand) { display: block; }
.footer-container {
  grid-template-columns: 1fr 1fr !important;
  gap: 24px 16px !important;
}
.footer-brand { grid-column: 1 / -1 !important; }
/* Hide newsletter & contact col on mobile */
.footer-newsletter-wrap,
.footer-contact-col { display: none !important; }
/* Keep headings and link lists visible */
.footer-heading { font-size: 12px; margin-bottom: 10px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 13px; }

/* ─────────────────────────────────────────────────────────
   CART PAGE
───────────────────────────────────────────────────────── */
.cart-layout {
  grid-template-columns: 1fr !important;
  display: block !important;
}
.cart-table-header  { display: none !important; }
.cart-desktop-items { display: none !important; }
.cart-summary-col   { display: none !important; }
.btn-full           { width: 100% !important; }
/* Extra bottom padding so last card isn't behind checkout bar */
.cart-layout { padding-bottom: 100px !important; }

/* ── Mobile Cart App Cards ── */
.cart-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.cart-app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 0;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative;
}
.cart-app-img-wrap {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.06);
  background: #f8fafc;
}
.cart-app-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-app-info {
  flex: 1;
  min-width: 0;
}
.cart-app-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cart-app-price {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.cart-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Qty control inside mobile card */
.cart-app-qty.qty-control {
  display: flex !important;
  align-items: center;
  gap: 0;
  background: #f1f5f9;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
}
.cart-app-qty .qty-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cart-app-qty .qty-btn:active { background: rgba(0,0,0,0.07); }
.cart-app-qty .qty-input {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: none;
  color: var(--text-primary);
  -moz-appearance: textfield;
}
.cart-app-qty .qty-input::-webkit-outer-spin-button,
.cart-app-qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-app-total {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.cart-app-del {
  position: absolute;
  top: 10px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #ef4444;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.cart-app-del:active { background: #fecaca; }

/* ── Hide desktop summary card on mobile — show only checkout bar ── */

/* ─────────────────────────────────────────────────────────
   CART DRAWER
───────────────────────────────────────────────────────── */
.cart-drawer { width: 100vw; right: -100vw; }
.cart-drawer.open { right: 0; }

/* ─────────────────────────────────────────────────────────
   CHECKOUT PAGE
───────────────────────────────────────────────────────── */
.checkout-layout {
  grid-template-columns: 1fr !important;
  display: block !important;
}
.checkout-layout > div:last-child { position: static !important; order: -1; }
.checkout-step { min-width: 66px; }
#toStep2Btn {
  font-size: 13px !important;
  padding: 11px 20px !important;
  width: auto !important;
  display: flex !important;
  margin: 8px auto 24px !important;
  align-self: center !important;
}
#backToStep1Btn, #backToStep2Btn {
  font-size: 13px !important;
  padding: 10px 16px !important;
  flex-shrink: 0 !important;
  width: auto !important;
}
#toStep3Btn, #placeOrderBtn {
  font-size: 13px !important;
  padding: 10px 20px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 220px !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
}
/* Button rows — center aligned */
.checkout-btn-row { justify-content: center !important; }
/* Button row + order summary gap */
#toStep3Btn, #placeOrderBtn,
#backToStep1Btn, #backToStep2Btn {
  margin-bottom: 0 !important;
}
.checkout-layout > div > div > div:has(#toStep3Btn),
.checkout-layout > div > div > div:has(#placeOrderBtn) {
  margin-bottom: 24px !important;
}
.step-circle   { width: 34px; height: 34px; font-size: 13px; }
.step-label    { font-size: 10px; letter-spacing: 0.01em; }

/* ─────────────────────────────────────────────────────────
   PRODUCTS / SHOP PAGE
───────────────────────────────────────────────────────── */
.products-layout {
  grid-template-columns: 1fr !important;
  display: block !important;
}
/* Show mobile filter toggle button */
#mobileFilterToggle { display: flex !important; }
/* Filter sidebar: hidden by default, shown when toggled */
.filter-sidebar {
  position: static !important;
  top: auto !important;
  display: none !important;
  width: 100% !important;
  margin-bottom: 16px;
  border-radius: var(--radius-lg) !important;
  overflow-y: visible !important;
}
.filter-sidebar.mobile-open { display: block !important; }
/* Products page search bar: hidden — use top nav search */
#searchBarForm { display: none !important; }

/* ─────────────────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────────────────── */
.dashboard-layout {
  grid-template-columns: 1fr !important;
  display: block !important;
}
/* Hide sidebar entirely on mobile — bottom nav handles navigation */
.dashboard-sidebar { display: none !important; }
.dashboard-page { padding: 16px 16px 24px !important; }
.dashboard-page > div > div > h2 { text-align: center !important; }
.dashboard-page > div > div > p  { text-align: center !important; }
.dashboard-greeting,
.stat-card,
#editProfile,
.dashboard-page [style*="border-radius:var(--radius-lg)"],
.dashboard-page [style*="border-radius: var(--radius-lg)"] {
  border-radius: 0 !important;
}
.stat-card { border-radius: 0 !important; }
.page-content .container > h1   { text-align: center !important; }
.page-content .container > p    { text-align: center !important; }
/* Show mobile logout button inside greeting card */
.dash-mobile-logout {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
  border: 1.5px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.05);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.dash-mobile-logout:active { background: rgba(239,68,68,0.1); }
/* Greeting card: vertical stack */
.dashboard-greeting {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 20px !important;
}
/* Stats grid: 2 cols */
.stats-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
/* Reduce stat card padding */
.stat-card { padding: 18px 14px !important; }
/* Profile form: single col */
.profile-form-grid {
  grid-template-columns: 1fr !important;
}

/* ─────────────────────────────────────────────────────────
   LOGIN / AUTH PAGE
───────────────────────────────────────────────────────── */
.auth-page { padding: 16px; align-items: flex-start; min-height: calc(100vh - 52px); }
.auth-card { padding: 24px 18px; border-radius: 0; }
#heroCanvas { display: none !important; }
/* Login page outer wrapper */
.login-wrapper {
  max-width: 100% !important;
  padding: 20px 0 40px !important;
  width: 100% !important;
}

/* ─────────────────────────────────────────────────────────
   PRODUCT DETAIL PAGE — handled by inline styles in product-detail.php
───────────────────────────────────────────────────────── */
.pd-hide-mobile { display: none !important; }

/* Sticky bottom bar — matches cart checkout bar style */
.pd-sticky-bar {
  position: fixed !important;
  bottom: 64px; left: 0; right: 0;
  z-index: 1100;
  background: #fff !important;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 10px 16px;
  display: flex !important;
  gap: 12px;
  align-items: center;
  height: 64px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}
.pd-sticky-price {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 0;
}
.pd-sticky-price-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.pd-sticky-price-val {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  line-height: 1.2;
}
.pd-sticky-actions {
  display: flex;
  margin-left: auto;
  flex-shrink: 0;
}
.pd-sticky-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  height: 44px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(22,163,74,0.3);
  transition: background 0.15s;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.pd-sticky-add:active { background: #15803d; }
.pd-sticky-add:disabled { opacity: 0.4; cursor: not-allowed; }

/* Tab buttons: compact */
.tab-btn {
  padding: 10px 14px !important;
  font-size: 13px !important;
}

/* Reviews: stack rating summary */
.tab-content [style*="display:flex;align-items:center;gap:32px"] {
  flex-direction: column !important;
  gap: 16px !important;
  padding: 16px !important;
}
.tab-content [style*="font-size:52px"] {
  font-size: 40px !important;
}

/* Tab content padding */
#tab-description, #tab-shipping { padding: 20px 16px !important; }
#tab-reviews { padding: 20px 16px !important; }

/* Breadcrumb: hide on mobile (save space) */
.product-detail-grid ~ div[style*="align-items:center;gap:8px"] { display: none !important; }

/* Buy now button hidden on mobile (sticky bar replaces) */
.product-detail-grid a.btn-outline.btn-full { display: none !important; }

/* ─────────────────────────────────────────────────────────
   ORDER SUCCESS PAGE
───────────────────────────────────────────────────────── */
.order-success-grid {
  grid-template-columns: 1fr !important;
}

/* ─────────────────────────────────────────────────────────
   ORDERS PAGE
───────────────────────────────────────────────────────── */
.data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 12px; }
body.orders-page {
  overflow-x: hidden;
}
.orders-page .dashboard-page {
  padding: 16px 12px 24px !important;
}
.orders-page .orders-list {
  gap: 12px;
}
.orders-page .order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 10px;
  align-items: start;
  padding: 14px 14px 13px;
  border-radius: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 8px rgba(15,23,42,0.04);
}
.orders-page .order-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.orders-page .order-card-num {
  font-size: 14px;
}
.orders-page .order-card-date,
.orders-page .order-card-time,
.orders-page .order-card-pay {
  line-height: 1.2;
}
.orders-page .order-card-time {
  font-size: 11px;
  color: #94a3b8;
}
.orders-page .order-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.orders-page .order-card-total {
  font-size: 15px;
}
.orders-page .order-card-status {
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 0;
}
.orders-page .order-card svg:last-child {
  align-self: center;
  margin-top: 2px;
}
/* Order detail: 2-col info grid → 1 col */
.order-detail-grid {
  grid-template-columns: 1fr !important;
}

/* ─────────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────────── */
.form-control  { padding: 12px 14px; font-size: 16px !important; border-radius: 0; }
select.form-control   { font-size: 16px !important; }
textarea.form-control { font-size: 16px !important; }
.form-label { font-size: 11px; }
.form-group { margin-bottom: 16px; }

/* ─────────────────────────────────────────────────────────
   INLINE STYLE OVERRIDES
   (for elements that only have inline styles, no class)
───────────────────────────────────────────────────────── */

/* Page container top padding */
[style*="padding:32px 20px 80px"],
[style*="padding: 32px 20px 80px"],
[style*="padding:36px 20px 80px"],
[style*="padding: 36px 20px 80px"] {
  padding: 16px 0 24px !important;
}

/* Dashboard stats grid (inline auto-fill minmax) */
[style*="minmax(175px"] {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
[style*="minmax(175px"] > div {
  padding: 16px 12px !important;
}

/* Any 1fr 1fr grid (profile form, order detail, product info pills) */
[style*="grid-template-columns:1fr 1fr"],
[style*="grid-template-columns: 1fr 1fr"] {
  grid-template-columns: 1fr !important;
}

/* Cart / checkout 2-column layout (1fr + 340px sidebar) */
[style*="grid-template-columns:1fr 340px"],
[style*="grid-template-columns: 1fr 340px"] {
  grid-template-columns: 1fr !important;
}

/* Products layout (260px sidebar + 1fr) */
[style*="grid-template-columns:260px 1fr"],
[style*="grid-template-columns: 260px 1fr"] {
  grid-template-columns: 1fr !important;
}

/* Product detail layout (1fr 1fr) */
[style*="grid-template-columns:1fr 1fr;gap:48px"],
[style*="grid-template-columns: 1fr 1fr; gap: 48px"] {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

/* Cart table desktop header row (5 columns) */
[style*="grid-template-columns:80px 1fr auto auto auto"],
[style*="grid-template-columns: 80px 1fr auto auto auto"] {
  display: none !important;
}

/* Sticky sidebars → static */
[style*="position:sticky"],
[style*="position: sticky"] { position: static !important; }

/* Remove constrained max-widths on mobile */
[style*="max-width:700px"],
[style*="max-width: 700px"] { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Login wrapper specific max-width */
[style*="max-width:500px"],
[style*="max-width: 500px"] {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Pagination */
.pagination { gap: 5px; margin-top: 32px; margin-bottom: 80px; padding: 0 4px; position: relative; z-index: 100; }
.products-grid .product-card { transform-style: flat !important; }
.page-btn   { width: 36px; height: 36px; font-size: 13px; }

} /* end @media 768px */


/* ══════════════════════════════════════════════════════════
   480px and below
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

.container { padding: 0 11px; }
.products-grid { gap: 8px !important; }
.product-card-body { padding: 6px 7px 8px; }
.product-name  { font-size: 10.5px; }
.product-price { font-size: 11px; }
.section-title { font-size: clamp(18px, 5.5vw, 24px) !important; }
.cart-drawer   { width: 100vw; }
.step-circle   { width: 30px; height: 30px; font-size: 12px; }
.step-label    { font-size: 9.5px; }
.checkout-step { min-width: 58px; }
/* Why-us: single col on very small */
[style*="minmax(240px"] { grid-template-columns: 1fr !important; }

/* Category cards: 2 col on 480px */
[style*="minmax(150px"] { grid-template-columns: repeat(2, 1fr) !important; }

} /* end @media 480px */
