/* =============================================================
   theme.css — matiro.com visual enhancements
   Loaded after style.css to override / extend base styles.
   ============================================================= */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --font-bangla:
    "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --primary-mid: #bbf7d0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --radius: 9px;
  --transition: 0.2s ease;
}

body,
button,
input,
select,
textarea,
table,
th,
td,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
span,
strong,
b,
del {
  font-family: var(--font-bangla) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ----------------------------------------------------------
   2. Sticky Header with Shadow
   ---------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

/* ----------------------------------------------------------
   3. Page Fade-in Animation
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-main {
  animation: fadeUp 0.3s ease;
}

/* ----------------------------------------------------------
   4. Product Card Hover Effects
   ---------------------------------------------------------- */
.product-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.12);
  border-color: #86efac;
}

.product-media > a {
  overflow: hidden;
}

.product-media img {
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

/* ----------------------------------------------------------
   5. Primary Button Improvements
   ---------------------------------------------------------- */
button:not(.ghost):not(.outline):not(.icon-button):not(.cart-toggle):not(
    [data-close-dialog]
  ):not(.drawer-qty-btn):not(.drawer-remove-btn):not(#back-top):not(.wish):not(
    .qo-qty-btn
  ):not(.qo-close):not(.card-qty-btn):not(.card-add-btn):not(.search-mic-btn):not(
    .account-logout-btn
  ):not(.btn-order-action),
.button:not(.outline):not(.ghost):not(.drawer-viewcart-btn):not(
    .btn-order-action
  ) {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white !important;
  border: none;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
}

button:not(.ghost):not(.outline):not(.icon-button):not(.cart-toggle):not(
    [data-close-dialog]
  ):not(.drawer-qty-btn):not(.drawer-remove-btn):not(#back-top):not(.wish):not(
    .qo-qty-btn
  ):not(.qo-close):not(.card-qty-btn):not(.card-add-btn):not(
    .search-mic-btn
  ):not(.account-logout-btn):not(.btn-order-action):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* ----------------------------------------------------------
   6. Modern Cart Drawer Visual & UX Overhaul
   ---------------------------------------------------------- */
#cart-drawer::backdrop {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  animation: drawerFadeBackdrop 0.25s ease !important;
}

@keyframes drawerFadeBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

#cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  margin: 0 !important;
  width: 410px !important;
  max-width: 92vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 100 !important;
}

#cart-drawer[open] {
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#cart-drawer:not([open]) {
  display: none !important;
}

.drawer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.drawer-head h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.drawer-head h2 svg {
  color: var(--primary) !important;
}

.drawer-head button[data-close-dialog],
#cart-drawer button[data-close-dialog] {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.drawer-head button[data-close-dialog]:hover,
#cart-drawer button[data-close-dialog]:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: scale(1.08) !important;
}

.drawer-notice {
  background: #f0fdf4 !important;
  color: #166534 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  text-align: center !important;
  border-bottom: 1px solid #dcfce7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

#drawer-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.drawer-item {
  display: flex !important;
  gap: 12px !important;
  padding: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  align-items: center !important;
  transition: all 0.15s ease !important;
}

.drawer-item:hover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.drawer-item-img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.drawer-item-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.drawer-item-placeholder {
  font-size: 26px !important;
}

.drawer-item-details {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.drawer-item-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.drawer-item-title:hover {
  color: var(--primary) !important;
}

.drawer-item-price-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.drawer-item-unit-price {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--primary-dark) !important;
}

.drawer-item-ctrls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
}

.drawer-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 7px !important;
  height: 30px !important;
  overflow: hidden !important;
}

#cart-drawer .drawer-qty-btn,
button.drawer-qty-btn {
  width: 28px !important;
  height: 100% !important;
  background: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.15s ease !important;
}

#cart-drawer .drawer-qty-btn:hover,
button.drawer-qty-btn:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
}

.drawer-qty-num {
  min-width: 28px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
  padding: 0 4px !important;
}

#cart-drawer .drawer-remove-btn,
button.drawer-remove-btn {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.15s ease !important;
}

#cart-drawer .drawer-remove-btn svg {
  stroke: #e11d48 !important;
  color: #e11d48 !important;
}

#cart-drawer .drawer-remove-btn span {
  color: #e11d48 !important;
  font-weight: 600 !important;
}

#cart-drawer .drawer-remove-btn:hover,
button.drawer-remove-btn:hover {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fda4af !important;
}

#cart-drawer .drawer-remove-btn:hover svg {
  stroke: #be123c !important;
  color: #be123c !important;
}

#cart-drawer .drawer-remove-btn:hover span {
  color: #be123c !important;
}

.drawer-empty {
  text-align: center !important;
  padding: 50px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  color: #64748b !important;
  font-size: 15px !important;
}

.drawer-empty svg {
  stroke: #94a3b8 !important;
}

.drawer-empty p {
  margin: 0 !important;
  font-weight: 500 !important;
}

.drawer-empty a.button {
  margin-top: 6px !important;
  padding: 8px 24px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
}

.drawer-footer {
  padding: 16px 20px 20px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.drawer-subtotal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 15px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.drawer-subtotal strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary-dark) !important;
}

.drawer-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.drawer-checkout-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: white !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 13px !important;
  border-radius: 9px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
  border: none !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s ease !important;
}

.drawer-checkout-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
}

.drawer-viewcart-btn {
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #166534 !important;
  background: #ffffff !important;
  border: 1.5px solid #16a34a !important;
  padding: 11px !important;
  border-radius: 9px !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.15s ease !important;
}

.drawer-viewcart-btn:hover {
  background: #f0fdf4 !important;
  color: #14532d !important;
  border-color: #15803d !important;
}

/* ----------------------------------------------------------
   7. Toast Slide-up Animation
   ---------------------------------------------------------- */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

#toast.show {
  animation: slideUp 0.25s ease;
}

/* ----------------------------------------------------------
   8. Order Status Label Colors
   ---------------------------------------------------------- */
.status-label[data-status="PENDING"] {
  background: #fef3c7;
  color: #92400e;
}
.status-label[data-status="CONFIRMED"] {
  background: #dbeafe;
  color: #1e40af;
}
.status-label[data-status="PROCESSING"] {
  background: #ede9fe;
  color: #5b21b6;
}
.status-label[data-status="SHIPPED"] {
  background: #e0f2fe;
  color: #075985;
}
.status-label[data-status="OUT_FOR_DELIVERY"] {
  background: #fdf4ff;
  color: #7e22ce;
}
.status-label[data-status="DELIVERED"] {
  background: #dcfce7;
  color: #166534;
}
.status-label[data-status="CANCELLED"] {
  background: #fee2e2;
  color: #991b1b;
}

/* ----------------------------------------------------------
   9. Admin Metric Cards
   ---------------------------------------------------------- */
.metric {
  border-left: 4px solid var(--primary);
  transition: box-shadow 0.2s;
}

.metric:hover {
  box-shadow: var(--shadow-md);
}

.metric p {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric strong {
  color: var(--primary-dark);
}

/* ----------------------------------------------------------
   10. Wishlist Heart Button — Wished State
   ---------------------------------------------------------- */
.wish.wished {
  color: #ef4444;
  background: white;
  border-color: #fca5a5;
}

.wish.wished svg {
  fill: #ef4444;
}

/* ----------------------------------------------------------
   11. Back-to-Top Button
   ---------------------------------------------------------- */
#back-top {
  color: var(--primary-dark) !important;
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: white;
  color: #166534;
  border: 1px solid #dcfce7;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
  z-index: 39;
  cursor: pointer;
}

#back-top:hover {
  background: #16a34a;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  #back-top {
    color: var(--primary-dark) !important;
    bottom: 80px;
    right: 12px;
  }
}

/* ----------------------------------------------------------
   12. Section Heading Underline Accent
   ---------------------------------------------------------- */
.section-heading h2 {
  position: relative;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
}

/* ----------------------------------------------------------
   13. Discovery Section Gradient
   ---------------------------------------------------------- */
.discovery {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  position: relative;
  overflow: hidden;
}

.discovery::before {
  content: "🛍️";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 160px;
  opacity: 0.06;
  transform: rotate(-15deg);
}

/* ----------------------------------------------------------
   14. Nav Link Active / Hover Indicator
   ---------------------------------------------------------- */
.nav-links a {
  position: relative;
  transition: color 0.15s;
}

.nav-links a.selected::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ----------------------------------------------------------
   15. Pagination Current Page
   ---------------------------------------------------------- */
.pagination a {
  transition: all 0.15s;
}

.pagination a.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----------------------------------------------------------
   16. Bottom Nav Active State
   ---------------------------------------------------------- */
.bottom-nav a {
  transition: color 0.15s;
}

.bottom-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav a.active svg {
  stroke: var(--primary);
}

/* ----------------------------------------------------------
   17. Search Input Focus Ring
   ---------------------------------------------------------- */
.search-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  background: white;
}

/* ----------------------------------------------------------
   18. Cart Count Bounce Animation
   ---------------------------------------------------------- */
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

#cart-count.bounce {
  animation: bounce 0.3s ease;
}

/* ----------------------------------------------------------
   19. Admin / Account Content Loading Shimmer
   ---------------------------------------------------------- */
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

#admin-content:empty::after,
#account-content:empty::after {
  content: "";
  display: block;
  height: 300px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ----------------------------------------------------------
   20. Offer Section
   ---------------------------------------------------------- */
.offer-section {
  background: transparent !important;
}

/* Header shrink on scroll */
.main-header {
  transition: all 0.3s ease;
}
body.scrolled .main-header {
  height: 70px !important;
}
body.scrolled .main-header .store-logo {
  max-height: 45px !important;
}
/* Ensure the nav doesn't overlap when scrolling */
.nav-wrap {
  z-index: 48;
}

/* ----------------------------------------------------------
   22. Quick Categories (Homepage)
/* ----------------------------------------------------------
   22. Modern Capsule / Pill Categories (Homepage)
   ---------------------------------------------------------- */
.quick-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  padding: 12px 0 24px !important;
  margin: 0 !important;
}
.quick-categories a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 50px !important;
  padding: 9px 18px !important;
  text-decoration: none !important;
  color: #1f2937 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
  min-width: auto !important;
  white-space: nowrap !important;
}
.quick-categories a:hover {
  border-color: var(--primary) !important;
  background: #f0fdf4 !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.16) !important;
}
.quick-categories .cat-icon {
  width: auto !important;
  height: auto !important;
  font-size: 19px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.2s ease !important;
}
.quick-categories a:hover .cat-icon {
  transform: scale(1.18) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.quick-categories a span {
  line-height: 1 !important;
}

/* Make Add to Cart button on cards more prominent */
#main .product-card button.add-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-weight: bold;
  border-radius: 6px;
}

/* ----------------------------------------------------------
   23. Mobile Sticky Buy Bar for Product Pages
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .product-detail .buy-row {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 45;
    margin: 0;
    display: flex;
    gap: 10px;
  }
  .product-detail .buy-row input {
    width: 60px;
  }
  body[data-path^="/product/"] .bottom-nav {
    display: none !important;
  }
  body[data-path^="/product/"] {
    padding-bottom: 80px;
  }
}

/* Fix double menu issue */
@media (max-width: 767px) {
  .nav-wrap {
    display: none !important;
  }
  .nav-wrap.menu-open {
    display: block !important;
  }
  .quick-categories {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 8px 4px 18px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .quick-categories::-webkit-scrollbar {
    display: none !important;
  }
  .quick-categories a {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}

/* Slim, Modern Promotional Banner */
.banner {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  margin: 10px 0 16px !important;
  display: block !important;
  max-height: 250px !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  border: 1px solid #e5e7eb !important;
}
.banner:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
.banner picture,
.banner img {
  width: 100% !important;
  height: 250px !important;
  max-height: 250px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
@media (max-width: 767px) {
  .banner {
    max-height: 140px !important;
    margin: 8px 0 12px !important;
    border-radius: 10px !important;
  }
  .banner picture,
  .banner img {
    height: 140px !important;
    max-height: 140px !important;
  }
}

/* ----------------------------------------------------------
   24. Catalog Layout & Filter Sidebar
   ---------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 991px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

.filter-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}
.filter-panel h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}
.filter-panel label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: block;
}
.filter-panel select,
.filter-panel input[type="number"] {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}
.filter-panel .check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  margin-bottom: 12px;
  cursor: pointer;
}
.filter-panel .check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

/* ----------------------------------------------------------
   25. Checkout / Auth Layout Enhancements
   ---------------------------------------------------------- */
.auth-card {
  max-width: 440px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--primary-light);
  text-align: center;
}
.auth-card h1 {
  font-size: 24px;
  margin-bottom: 24px;
}
.auth-card form {
  text-align: left;
}
.auth-card input {
  padding: 12px;
}
.auth-card button {
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   26. Product Variations
   ---------------------------------------------------------- */
.variations {
  margin-top: 20px;
  margin-bottom: 15px;
}
.variations strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #374151;
}
.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.variation-label {
  cursor: pointer;
  position: relative;
}
.variation-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.variation-label span {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s;
}
.variation-label input:checked + span {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ----------------------------------------------------------
   27. UX / UI Refinements (Background, Card, Buttons)
   ---------------------------------------------------------- */
body {
  background-color: #f8f9fa; /* Light off-white background */
}

/* Product Card Improvements */
.product-card {
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.08);
  border-color: #dcfce7;
}

/* Reduce image wrapper height */
.product-media {
  height: 232px !important;
  padding: 16px !important;
  background-color: transparent !important; /* Let the white card show through or use very subtle grey */
}

/* Product card add button should be OUTLINE by default */
#main .product-card button.add-button {
  background: white !important;
  color: var(--primary-dark) !important;
  border: 1px solid var(--primary-mid) !important;
  box-shadow: none !important;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}
#main .product-card button.add-button:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Fix product info padding if needed */
.product-info {
  padding-top: 10px;
}

/* Make Header Full Width */
.main-header.container {
  max-width: 100% !important;
  background-color: white !important;
  padding-left: max(32px, calc(50vw - 648px)) !important;
  padding-right: max(32px, calc(50vw - 648px)) !important;
}
@media (max-width: 991px) {
  .main-header.container {
    padding-left: max(22px, calc(50vw - 658px)) !important;
    padding-right: max(22px, calc(50vw - 658px)) !important;
  }
}
@media (max-width: 767px) {
  .main-header.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}

/* Compress spacing to reduce card height */
.product-info {
  padding: 12px 10px 10px !important;
}
.product-tags {
  margin-bottom: 2px !important;
  min-height: 16px !important;
}
.product-info h3 {
  line-height: 1.3 !important;
  font-size: 15px !important;
  margin-bottom: 2px !important;
}
.prices {
  margin-bottom: 8px !important;
}
.prices strong {
  font-size: 18px !important;
}
#main .product-card button.add-button {
  margin-top: 0 !important;
  min-height: 36px !important;
  padding: 6px !important;
}

/* ----------------------------------------------------------
   28. CMS Page Content (Prose)
   ---------------------------------------------------------- */
.page-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-top: 20px;
  margin-bottom: 40px;
}
.page-content h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}
.prose h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #111827;
}
.prose h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #1f2937;
}
.prose p {
  margin-bottom: 15px;
}
.prose ul,
.prose ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
}
.prose strong {
  color: #111827;
}
@media (max-width: 767px) {
  .page-content {
    padding: 20px;
  }
}

/* ----------------------------------------------------------
   29. Product Detail Page UX Revamp
   ---------------------------------------------------------- */
.breadcrumb {
  max-width: 960px !important;
  margin: 0 auto 16px !important;
  font-size: 13.5px !important;
}
.product-detail {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 28px !important;
  max-width: 960px !important;
  margin: 0 auto 32px !important;
  padding-right: 0 !important;
  align-items: start !important;
}
.gallery {
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.large-cover {
  width: 100% !important;
  height: 350px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.large-cover img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}
.large-cover .book-cover {
  width: 230px !important;
  max-width: 100% !important;
  height: 320px !important;
  padding: 26px 18px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
.large-cover .book-cover strong {
  font-size: 24px !important;
  line-height: 1.3 !important;
}
.gallery-extra {
  display: flex !important;
  gap: 10px !important;
  margin-top: 14px !important;
  justify-content: center !important;
}
.gallery-extra img {
  border-radius: 6px !important;
  border: 1px solid #e5e7eb !important;
  transition: border-color 0.2s !important;
}
.gallery-extra img:hover {
  border-color: var(--primary) !important;
}
.detail-info {
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  padding: 24px 28px !important;
}
.detail-info .eyebrow {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  background: #f0fdf4 !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  margin-bottom: 8px !important;
}
.detail-info h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  margin: 0 0 8px 0 !important;
}
.detail-info .stars {
  font-size: 14px !important;
  color: #d97706 !important;
  margin-bottom: 12px !important;
}
.detail-price-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid var(--primary) !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 16px 0 !important;
}
.detail-price-box .detail-price {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.detail-price-box strong,
.detail-price-box #product-price {
  font-size: 26px !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.detail-price-box del,
.detail-price-box #product-regular-price {
  font-size: 26px !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  line-height: 1 !important;
}
.detail-price-box .badge {
  font-size: 12.5px !important;
  padding: 4px 10px !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
}
.buy-row {
  display: flex !important;
  gap: 12px !important;
  margin-top: 20px !important;
  align-items: stretch !important;
}
.qty-wrap input {
  height: 46px !important;
  width: 65px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1.5px solid #d1d5db !important;
  background: #f9fafb !important;
}
.qty-wrap input:focus {
  border-color: var(--primary) !important;
  background: white !important;
  outline: none !important;
}
.btn-wrap {
  display: flex !important;
  gap: 10px !important;
  flex: 1 !important;
}
.btn-wrap button {
  flex: 1 !important;
  height: 46px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 14px !important;
}
.btn-wrap #add-to-cart-btn {
  background: white !important;
  color: var(--primary-dark) !important;
  border: 1.5px solid var(--primary) !important;
}
.btn-wrap #add-to-cart-btn:hover {
  background: #f0fdf4 !important;
  transform: translateY(-1px);
}
.btn-wrap #buy-now-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2) !important;
}
.btn-wrap #buy-now-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
}
.detail-trust {
  display: flex !important;
  gap: 20px !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px dashed #e5e7eb !important;
}
.detail-trust p {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  color: #4b5563 !important;
  margin: 0 !important;
}
.detail-trust svg {
  color: var(--primary) !important;
}
.product-description {
  max-width: 960px !important;
  margin: 28px auto 36px !important;
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  padding: 24px 28px !important;
}
.product-description h2 {
  font-size: 20px !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #f0fdf4 !important;
}
.product-description h3 {
  font-size: 16px !important;
  color: #1f2937 !important;
  margin-top: 18px !important;
  margin-bottom: 8px !important;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    gap: 20px !important;
    margin: 0 auto 24px !important;
  }
  .product-description {
    max-width: 520px !important;
    padding: 20px 18px !important;
  }
  .breadcrumb {
    max-width: 520px !important;
  }
  .large-cover {
    height: 280px !important;
  }
  .detail-info {
    padding: 20px 18px !important;
  }
  .detail-info h1 {
    font-size: 21px !important;
  }
  .detail-price-box strong,
  .detail-price-box #product-price,
  .detail-price-box del,
  .detail-price-box #product-regular-price {
    font-size: 22px !important;
  }
}
@media (max-width: 767px) {
  .product-detail {
    max-width: 100% !important;
  }
  .product-description {
    max-width: 100% !important;
  }
  .breadcrumb {
    max-width: 100% !important;
  }
  .btn-wrap {
    flex-direction: row !important;
  }
  .detail-trust {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .product-detail .buy-row {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    padding: 10px 14px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
    z-index: 45 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
  }
}

/* Variation Chips */
.variations {
  margin-top: 20px;
}
.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.variation-label input {
  display: none;
}
.variation-label span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
}
.variation-label input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Remove auto gap between title and price */
.prices {
  margin-top: 4px !important;
}
#main .product-card button.add-button {
  margin-top: auto !important;
}

/* CRITICAL UX FIX FOR HOME PAGE CARDS */
.product-info h3 {
  min-height: 0 !important;
  margin-bottom: 4px !important;
}
.prices {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
.add-button {
  margin-top: auto !important;
}

/* Match old price size with new price, but keep font-weight normal/regular */
.prices del {
  font-size: 20px !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
  text-decoration: line-through;
}
@media (min-width: 768px) {
  .prices del {
    font-size: 21px !important;
  }
}

/* ----------------------------------------------------------
   30. Floating WhatsApp Order Button
   ---------------------------------------------------------- */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 10px 18px 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 45;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  line-height: 1;
}
#whatsapp-float svg {
  fill: #ffffff;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
#whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  background: #20ba59;
}
#back-top {
  right: 24px !important;
  bottom: 90px !important;
}
@media (max-width: 767px) {
  #whatsapp-float {
    bottom: 70px !important;
    left: 14px !important;
    right: auto !important;
    padding: 10px !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45) !important;
    z-index: 45 !important;
  }
  #whatsapp-float .wa-label {
    display: none !important;
  }
  #back-top {
    bottom: 70px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
}

/* ----------------------------------------------------------
   31. Homepage Clean Order Track Panel
   ---------------------------------------------------------- */
.track-panel {
  margin: 35px 0 20px;
}
.track-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.track-card:hover {
  box-shadow: var(--shadow-md);
}
.track-card h2 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #111827;
  font-weight: 700;
}
.track-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}
.track-card .button {
  white-space: nowrap;
  padding: 11px 24px;
  font-size: 15px;
}
@media (max-width: 767px) {
  .track-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .track-card .button {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   32. Card Action Dual Buttons (Cart + Quick Order)
   ---------------------------------------------------------- */
.card-action-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-top: auto !important;
  width: 100%;
}
.card-action-row button {
  height: 40px;
  padding: 0 8px !important;
  font-size: 13.5px !important;
  font-weight: 600;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.card-action-row .add-button.outline {
  border: 1.5px solid var(--primary) !important;
  color: var(--primary-dark) !important;
  background: white !important;
}
.card-action-row .add-button.outline:hover {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}
.card-action-row .card-order-btn {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
}
.card-action-row .card-order-btn:hover {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

/* ----------------------------------------------------------
   33. Why Choose Us Section
   ---------------------------------------------------------- */
.why-us-section {
  padding: 30px 0;
  margin-top: 20px;
}
.section-heading.centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-bottom: 28px !important;
}
.section-heading.centered h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  text-align: center !important;
  width: 100% !important;
}
.section-heading.centered h2::after {
  margin: 8px auto 0 !important;
}
.section-heading.centered p {
  color: #6b7280 !important;
  font-size: 15px !important;
  margin: 0 !important;
  text-align: center !important;
  width: 100% !important;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #86efac;
}
.why-icon {
  font-size: 38px;
  margin-bottom: 14px;
  line-height: 1;
}
.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}
.why-card p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 991px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .why-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .why-card {
    padding: 14px 10px !important;
    border-radius: 10px !important;
  }
  .why-card .why-icon {
    font-size: 26px !important;
    margin-bottom: 6px !important;
  }
  .why-card h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
  }
  .why-card p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}

/* ----------------------------------------------------------
   34. Testimonials Section
   ---------------------------------------------------------- */
.testimonials-section {
  padding: 30px 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.testimonial-card .stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin: 0 0 16px;
  flex: 1;
}
.testimonial-user strong {
  display: block;
  font-size: 14.5px;
  color: #111827;
  font-weight: 600;
}
.testimonial-user small {
  font-size: 12px;
  color: #059669;
}
@media (max-width: 991px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .testimonial-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding: 4px 6px 14px !important;
    scrollbar-width: none !important;
  }
  .testimonial-grid::-webkit-scrollbar {
    display: none !important;
  }
  .testimonial-card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start !important;
    padding: 16px 14px !important;
    border-radius: 10px !important;
  }
  .testimonial-card .stars {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  .testimonial-card p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }
  .testimonial-user strong {
    font-size: 13px !important;
  }
  .testimonial-user small {
    font-size: 11px !important;
  }
}

/* ----------------------------------------------------------
   35. 1-Click Quick Order Modal
   ---------------------------------------------------------- */
.quick-order-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: 92%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.quick-order-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.qo-box {
  background: white;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}
.qo-header {
  background: linear-gradient(135deg, #15803d, #166534);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qo-header-text h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
}
.qo-header-text p {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.9;
}
.qo-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.qo-close:hover {
  background: rgba(255, 255, 255, 0.35);
}
.qo-product-card {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.qo-product-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.qo-badge-var {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.qo-p-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.qo-qty-box {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  height: 38px !important;
  width: 115px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
dialog#quick-order-dialog .qo-qty-box button.qo-qty-btn,
#quick-order-dialog .qo-qty-box button.qo-qty-btn,
.qo-qty-box button.qo-qty-btn,
button#qo-qty-dec,
button#qo-qty-inc {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 0 !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 38px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
  transition:
    background 0.15s ease,
    color 0.15s ease !important;
}

dialog#quick-order-dialog .qo-qty-box button.qo-qty-btn:hover,
#quick-order-dialog .qo-qty-box button.qo-qty-btn:hover,
.qo-qty-box button.qo-qty-btn:hover,
button#qo-qty-dec:hover,
button#qo-qty-inc:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
  transform: none !important;
  box-shadow: none !important;
}
.qo-qty-box input#qo-quantity {
  width: 43px !important;
  min-width: 43px !important;
  max-width: 43px !important;
  height: 38px !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.qo-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qo-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qo-input-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}
.qo-input-group input,
.qo-input-group textarea {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.qo-input-group input:focus,
.qo-input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.qo-zone-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
.qo-zone-card {
  border: 1.5px solid #d1d5db !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  background: #fafafa !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}
.qo-zone-card.selected {
  border-color: var(--primary) !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}
.qo-zone-card input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: var(--primary) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.qo-zone-card strong {
  display: block !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.qo-zone-card small {
  display: block !important;
  color: #15803d !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}
.qo-invoice {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.qo-invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #4b5563;
}
.qo-invoice-row strong {
  color: #111827;
}
.qo-total-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  margin-top: 2px;
  font-size: 15.5px !important;
  font-weight: 700;
}
.qo-total-row strong {
  color: var(--primary-dark) !important;
  font-size: 17px !important;
}
.qo-submit-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: white !important;
  border: none !important;
  padding: 14px !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
  margin-top: 6px;
}
.qo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}
.qo-trust-badge {
  text-align: center;
  font-size: 12.5px;
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}

/* ----------------------------------------------------------
   37. Mobile Menu & Responsive Header Button Fix
   ---------------------------------------------------------- */
/* Hide hamburger on Desktop everywhere */
@media (min-width: 768px) {
  .mobile-only,
  .hamburger-btn,
  button[data-menu],
  .main-header button.icon-button[data-menu] {
    display: none !important;
  }
  .nav-wrap {
    display: block !important;
  }
}

/* Mobile Header Hamburger Button: Perfect 1:1 Aspect Ratio & Clean Design */
@media (max-width: 767px) {
  .hamburger-btn,
  button[data-menu],
  .main-header button[data-menu],
  .main-header button.icon-button[data-menu] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .hamburger-btn:hover,
  button[data-menu]:hover,
  .main-header button[data-menu]:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
  }
  .hamburger-btn:active,
  button[data-menu]:active,
  .main-header button[data-menu]:active {
    background: #dcfce7 !important;
    color: #166534 !important;
    transform: scale(0.95);
  }
  .hamburger-btn svg,
  button[data-menu] svg,
  .main-header button[data-menu] svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
  }
  .hamburger-btn:active svg,
  button[data-menu]:active svg,
  .main-header button[data-menu]:active svg {
    stroke: #166534 !important;
  }

  /* Mobile Slide-out Menu Drawer */
  .nav-wrap {
    display: none !important;
  }
  .nav-wrap.menu-open {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99 !important;
  }
  .nav-wrap.menu-open .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.18) !important;
    padding: 24px 16px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    overflow-y: auto !important;
    animation: drawerSlideLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .nav-wrap .nav-links a {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    border-radius: 8px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.15s ease !important;
  }
  .nav-wrap .nav-links a:last-child {
    border-bottom: none !important;
  }
  .nav-wrap .nav-links a:hover,
  .nav-wrap .nav-links a.selected {
    background: #f0fdf4 !important;
    color: var(--primary-dark) !important;
  }
}

@keyframes drawerSlideLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ----------------------------------------------------------
   38. Fully Adaptive Responsive Product Cards
   ---------------------------------------------------------- */
/* Desktop (>= 1024px): 5 columns on homepage, auto-fill on catalog */
@media (min-width: 1024px) {
  .product-grid:not(.catalog-grid) {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Tablet (768px - 1023px): 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-grid:not(.catalog-grid) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* Inside Category / Filter / Catalog pages: match homepage card size exactly */
.catalog-grid,
.catalog-layout .product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(215px, 235px)) !important;
  gap: 16px !important;
  justify-content: start !important;
}

/* Mobile & Small Tablets (< 768px): STRICTLY 2 COLUMNS ON ALL SCREENS */
@media (max-width: 767px) {
  .product-grid,
  .product-grid:not(.catalog-grid),
  .catalog-grid,
  .catalog-layout .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #main .product-media,
  .product-media {
    height: 155px !important;
    padding: 10px !important;
  }
  .product-media img {
    max-height: 135px !important;
    object-fit: contain !important;
  }
}
@media (max-width: 599px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .store-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .store-section.offer-section,
  .store-section[style*="margin-left"] {
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    box-sizing: border-box !important;
  }
  .top-strip {
    display: none !important;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-top: 14px !important;
  }
  .trust-strip > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 7px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9 !important;
  }
  .trust-strip svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--primary) !important;
    flex-shrink: 0 !important;
  }
  .trust-strip strong {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.25 !important;
    display: block !important;
  }
  .trust-strip small {
    font-size: 10px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    display: block !important;
    margin-top: 1px !important;
  }
  .section-heading {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
  }
  .section-heading h2 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  .section-heading h2::after {
    margin-top: 4px !important;
    width: 26px !important;
    height: 2.5px !important;
  }
  .section-heading p {
    font-size: 12px !important;
    margin-top: 2px !important;
    color: #64748b !important;
  }
  .section-heading > a {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .product-card {
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #main .product-media {
    height: 155px !important;
    padding: 10px !important;
  }
  .product-media img {
    max-height: 135px !important;
    object-fit: contain !important;
  }
  .product-info {
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  .product-tags {
    font-size: 11px !important;
    margin-bottom: 3px !important;
  }
  .product-info h3 {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
    min-height: 36px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .prices {
    margin-bottom: 8px !important;
    gap: 6px !important;
    margin-top: auto !important;
  }
  .prices strong {
    font-size: 16px !important;
  }
  .prices del {
    font-size: 16px !important;
  }
  .card-action-row {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .card-action-row .add-button.outline {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: 1.5px solid var(--primary) !important;
    background: white !important;
    color: var(--primary) !important;
  }
  .card-action-row .add-button.outline .btn-text {
    display: none !important;
  }
  .card-action-row .card-order-btn {
    flex: 1 !important;
    height: 36px !important;
    font-size: 12.5px !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
  }
}
@media (max-width: 380px) {
  .product-grid {
    gap: 8px !important;
  }
  #main .product-media {
    height: 135px !important;
    padding: 8px !important;
  }
  .product-media img {
    max-height: 119px !important;
  }
  .product-info {
    padding: 6px 8px 8px !important;
  }
  .product-info h3 {
    font-size: 12.5px !important;
    min-height: 34px !important;
  }
  .prices strong,
  .prices del {
    font-size: 15px !important;
  }
  .card-action-row .card-order-btn {
    font-size: 11.5px !important;
  }
}

/* Footer social media links */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  transition: all 0.2s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

/* =============================================================
   Hero Split Section (354px height: Main Slider + 2 Side Cards)
   ============================================================= */
.hero-split-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  height: 354px;
  margin: 14px 0 22px;
  box-sizing: border-box;
}

/* Left: Main Banner Slider (354px) */
.hero-slider-wrap {
  position: relative;
  height: 354px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #0f172a;
  user-select: none;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 44px;
  box-sizing: border-box;
}

.hero-slide-content {
  max-width: 520px;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-slide-content h2 {
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  margin: 0 0 10px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-slide-content p {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  margin: 0 0 20px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-btn.primary {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  border: 1px solid #16a34a;
}
.hero-btn.primary:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.hero-btn.outline {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}
.hero-btn.outline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Slider Navigation Buttons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  border: none;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero-slider-wrap:hover .hero-nav-btn {
  opacity: 1;
}
.hero-nav-btn.prev {
  left: 14px;
}
.hero-nav-btn.next {
  right: 14px;
}
.hero-nav-btn:hover {
  background: #ffffff;
  color: #16a34a;
  transform: translateY(-50%) scale(1.08);
}

/* Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero-dot.active {
  width: 26px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Right Side: 2 Stacked Mini Promo Cards (170px + 14px gap + 170px = 354px) */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 354px;
  box-sizing: border-box;
}

.hero-mini-card {
  flex: 1;
  height: 170px;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.hero-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.card-honey {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border: 1.5px solid #fcd34d;
}

.card-delivery {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  border: 1.5px solid #86efac;
}

.mini-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-tag {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
}
.card-honey .mini-tag {
  color: #92400e;
}
.card-delivery .mini-tag {
  color: #166534;
}

.mini-arrow {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.6;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.card-honey .mini-arrow {
  color: #92400e;
}
.card-delivery .mini-arrow {
  color: #166534;
}
.hero-mini-card:hover .mini-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.hero-mini-card h3 {
  font-size: 17.5px !important;
  font-weight: 700 !important;
  margin: 4px 0 2px !important;
}
.card-honey h3 {
  color: #78350f !important;
}
.card-delivery h3 {
  color: #14532d !important;
}

.hero-mini-card p {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.card-honey p {
  color: #92400e !important;
}
.card-delivery p {
  color: #166534 !important;
}

.mini-action {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 4px;
}
.card-honey .mini-action {
  color: #b45309;
}
.card-delivery .mini-action {
  color: #15803d;
}

.mini-watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 56px;
  opacity: 0.16;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .hero-split-section {
    grid-template-columns: 1fr 270px;
  }
  .hero-slide-content h2 {
    font-size: 23px !important;
  }
}

@media (max-width: 767px) {
  .hero-split-section {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    margin: 8px 0 16px;
  }
  .hero-slider-wrap {
    height: 220px;
    border-radius: 12px;
  }
  .hero-slide-bg {
    padding: 0 18px;
  }
  .hero-slide-content h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }
  .hero-slide-content p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-badge {
    font-size: 11.5px;
    padding: 2px 10px;
    margin-bottom: 8px;
  }
  .hero-btn {
    padding: 6px 14px;
    font-size: 12.5px;
  }
  .hero-nav-btn {
    display: none !important;
  }
  .hero-side-cards {
    flex-direction: row;
    height: auto;
    gap: 8px;
  }
  .hero-mini-card {
    height: 95px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .hero-mini-card h3 {
    font-size: 13.5px !important;
    margin: 2px 0 0 !important;
  }
  .hero-mini-card p {
    display: none !important;
  }
  .mini-action {
    display: none !important;
  }
  .mini-watermark {
    font-size: 36px;
    right: 6px;
    bottom: 4px;
    opacity: 0.12;
  }
}

/* =============================================================
   22. GoZayaan Inspired Design System (Clean White Cards on Subtle Canvas)
   - Background canvas: #f4f6f8 / #f5f7fa
   - Pure floating white cards (#ffffff)
   - Ambient diffused drop shadows
   - Rounded 12px-16px geometry & soft borders (#edf2f7)
   - Refined micro-interactions & spacing
   ============================================================= */

:root {
  --gz-canvas-bg: #f4f6f8;
  --gz-card-bg: #ffffff;
  --gz-border-subtle: #edf2f7;
  --gz-border-hover: #cbd5e1;
  --gz-shadow-card: 0 2px 12px rgba(15, 23, 42, 0.05);
  --gz-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.09);
  --gz-shadow-elevated: 0 8px 30px rgba(15, 23, 42, 0.08);
  --gz-radius-card: 14px;
  --gz-radius-inner: 10px;
  --gz-radius-pill: 24px;
}

/* 1. Global Canvas Background */
body {
  background-color: var(--gz-canvas-bg) !important;
  color: #1e293b !important;
}

.page-main {
  background-color: transparent !important;
  padding-top: 18px !important;
  padding-bottom: 48px !important;
}

/* 2. Header & Navigation Refinement */
.main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #edf2f7 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
}

.nav-wrap {
  background: #ffffff !important;
  border-bottom: 1px solid #edf2f7 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}

/* 3. Section Spacing & Headings */
.store-section {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

/* Featured sections with custom background tint - Seamless separation without awkward gap */
.store-section[style*="background"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 52px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
}

.section-heading {
  margin-bottom: 22px !important;
}

.section-heading h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.section-heading h2::after {
  display: none !important; /* Cleaner modern aesthetic like GoZayaan */
}

/* 4. Product Cards - GoZayaan Floating White Card Style */
.product-card {
  background: var(--gz-card-bg) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  border-radius: var(--gz-radius-card) !important;
  box-shadow: var(--gz-shadow-card) !important;
  padding: 14px 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--gz-shadow-hover) !important;
  border-color: #cbd5e1 !important;
}

.product-media {
  background: #ffffff !important;
  border-radius: var(--gz-radius-inner) !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid #f1f5f9 !important;
  height: 220px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.product-media > a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.product-media img {
  border-radius: var(--gz-radius-inner) !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-media .book-cover {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  border-radius: 0 !important;
  border-left: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.product-media > .badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 5 !important;
}

.product-media .wish {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 5 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.product-card:hover .product-media img {
  transform: scale(1.05) !important;
}

.product-info {
  padding-top: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
}

.product-info h3,
.product-title {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
  margin: 4px 0 8px !important;
  min-height: 44px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-info h3 a {
  color: #1e293b !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.product-card:hover .product-info h3 a,
.product-card:hover .product-title {
  color: var(--primary-dark) !important;
}

.prices {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: auto !important;
  margin-bottom: 10px !important;
}

.prices strong {
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #0f172a !important;
}

.prices del {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-size: 13.5px !important;
}

/* Card Action Buttons (Single Add to cart button -> Inline Stepper) */
.card-action-row {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: auto !important;
  box-sizing: border-box !important;
}

/* Single Add to cart button (Secondary by default, Primary on hover) */
.card-add-btn {
  width: 100% !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--primary) !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.card-add-btn span {
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  display: inline-block !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

.card-add-btn svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--primary) !important;
  stroke: var(--primary) !important;
  flex-shrink: 0 !important;
  transition:
    stroke 0.2s ease,
    color 0.2s ease !important;
}

/* Hover: Primary color (solid green with white text/icon) */
.card-add-btn:hover {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

.card-add-btn:hover span {
  color: #ffffff !important;
}

.card-add-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Inline Quantity Stepper on Card: [ - ]  1  [ + ] */
.card-qty-stepper {
  width: 100% !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--primary) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.12) !important;
}

.card-qty-btn {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 100% !important;
  background: #16a34a !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transition:
    background 0.15s ease,
    transform 0.1s ease !important;
  box-shadow: none !important;
  user-select: none !important;
}

.card-qty-btn:hover {
  background: #15803d !important;
  color: #ffffff !important;
}

.card-qty-btn:active {
  background: #14532d !important;
  transform: scale(0.96) !important;
}

.card-qty-num {
  flex: 1 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  user-select: none !important;
}

/* Floating Mini Cart on Right Edge */
#floating-cart {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 998 !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  border-radius: 12px 0 0 12px !important;
  box-shadow:
    -4px 6px 20px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(22, 163, 74, 0.3) !important;
  cursor: pointer !important;
  padding: 12px 10px !important;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease !important;
  user-select: none !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  min-width: 68px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-right: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  font-family: inherit !important;
  line-height: normal !important;
}

#floating-cart.visible {
  display: flex !important;
}

#floating-cart:not(.visible) {
  display: none !important;
}

#floating-cart:hover {
  transform: translateY(-50%) translateX(-4px) !important;
  box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.24) !important;
}

.floating-cart-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
}

.floating-cart-icon-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 30px !important;
}

.floating-cart-icon-wrap svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.floating-cart-badge {
  position: absolute !important;
  top: -5px !important;
  right: -8px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 99px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.floating-cart-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

.floating-cart-items {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}

.floating-cart-total {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
}

@media (max-width: 767px) {
  #floating-cart {
    top: 55% !important;
    padding: 9px 8px !important;
    min-width: 58px !important;
    border-radius: 10px 0 0 10px !important;
  }
  .floating-cart-items {
    font-size: 10px !important;
  }
  .floating-cart-total {
    font-size: 11.5px !important;
  }
  .card-add-btn {
    height: 34px !important;
    font-size: 12.5px !important;
  }
  .card-qty-stepper {
    height: 34px !important;
  }
  .card-qty-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    font-size: 19px !important;
  }
  .card-qty-num {
    font-size: 13.5px !important;
  }
}

/* 5. Trust Strip Overhaul */
.trust-strip {
  background: var(--gz-card-bg) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  border-radius: var(--gz-radius-card) !important;
  box-shadow: var(--gz-shadow-card) !important;
  padding: 24px 28px !important;
  margin: 36px 0 !important;
}

.trust-item {
  transition: transform 0.2s ease !important;
}

.trust-item:hover {
  transform: translateY(-2px) !important;
}

/* 6. Quick Category Chips / Navigation */
.quick-categories a,
.category-pill,
.filter-chip {
  background: var(--gz-card-bg) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
  padding: 10px 18px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.quick-categories a:hover,
.category-pill:hover,
.filter-chip:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12) !important;
}

/* 7. Panels & Containers (Account, Order details, Forms) */
.panel,
.account-card,
.checkout-box,
.cart-summary,
.order-summary {
  background: var(--gz-card-bg) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  border-radius: var(--gz-radius-card) !important;
  box-shadow: var(--gz-shadow-card) !important;
  padding: 24px !important;
}

.panel h2,
.panel h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* 8. Single Product Details Page */
.product-detail-layout {
  gap: 32px !important;
}

.product-gallery-panel,
.product-info-panel {
  background: var(--gz-card-bg) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  border-radius: var(--gz-radius-card) !important;
  box-shadow: var(--gz-shadow-card) !important;
  padding: 28px !important;
}

/* 9. Hero Section Refinement */
.hero-split-section {
  gap: 16px !important;
  margin: 14px 0 28px !important;
}

.hero-slider-wrap {
  border-radius: 16px !important;
  box-shadow: var(--gz-shadow-card) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  overflow: hidden !important;
}

.hero-mini-card {
  border-radius: 14px !important;
  box-shadow: var(--gz-shadow-card) !important;
  border: 1px solid var(--gz-border-subtle) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease !important;
}

.hero-mini-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--gz-shadow-hover) !important;
}

/* 10. Footer Alignment (Preserved Original Dark Theme) */
footer,
.main-footer {
  background: #111827 !important;
  color: #d1d5db !important;
  border-top: none !important;
  margin-top: 48px !important;
  padding-top: 42px !important;
}

footer a,
.main-footer a {
  color: #9ca3af !important;
}

footer a:hover,
.main-footer a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid #374151 !important;
  color: #9ca3af !important;
}

/* 11. Mobile Responsiveness */
@media (max-width: 767px) {
  .top-strip {
    display: none !important;
  }
  .product-grid,
  .product-grid:not(.catalog-grid),
  .catalog-grid,
  .catalog-layout .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .page-main {
    padding-top: 12px !important;
    padding-bottom: 32px !important;
  }
  .product-card {
    border-radius: 10px !important;
    padding: 8px !important;
  }
  #main .product-media,
  .product-media {
    height: 160px !important;
    padding: 0 !important;
  }
  .product-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }
  .trust-strip {
    padding: 16px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
  }
  .store-section {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .section-heading h2 {
    font-size: 19px !important;
  }
}

/* ==========================================================================
   Voice & Quick Order Assistant (Clean, Simple & Minimalist)
   ========================================================================== */

/* Header Search Bar Mic */
.search-form {
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.search-input-wrap input {
  width: 100%;
  padding-right: 42px !important;
}

.search-mic-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) !important;
  background: transparent !important;
  color: #10b981 !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  padding: 0;
}

.search-mic-btn:hover {
  transform: translateY(-50%) !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  box-shadow: none !important;
}

/* Mobile Bottom Navigation Bar - STRICTLY MOBILE ONLY */
@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    padding: 0 4px;
    border-top: 1px solid #e5e7eb;
  }

  .bottom-nav a,
  .bottom-nav-ai-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 11px;
    gap: 3px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
  }

  .bottom-nav a.active,
  .bottom-nav-ai-btn:active {
    color: var(--primary);
    font-weight: 600;
  }
}

/* Minimalist Voice & Command Dialog */
.ai-voice-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  background: #ffffff;
  overflow: hidden;
  margin: auto;
}

.ai-voice-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.ai-box {
  display: flex;
  flex-direction: column;
}

.ai-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-header-title p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
}

.ai-close {
  background: transparent;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ai-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ai-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  overflow-y: auto;
}

.ai-mic-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.ai-record-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-record-btn:hover {
  transform: scale(1.06);
  background: #059669;
}

.ai-record-btn.recording {
  background: #ef4444;
  animation: aiMicActivePulse 1.2s infinite;
}

@keyframes aiMicActivePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Soundwave Bars */
.ai-wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin: 2px 0;
}

.ai-wave-bars span {
  width: 3.5px;
  background: #10b981;
  border-radius: 3px;
  animation: aiWaveAnim 1.2s ease-in-out infinite;
}

.ai-wave-bars span:nth-child(1) {
  height: 8px;
  animation-delay: 0.1s;
}
.ai-wave-bars span:nth-child(2) {
  height: 20px;
  animation-delay: 0.3s;
}
.ai-wave-bars span:nth-child(3) {
  height: 14px;
  animation-delay: 0.2s;
}
.ai-wave-bars span:nth-child(4) {
  height: 22px;
  animation-delay: 0.4s;
}
.ai-wave-bars span:nth-child(5) {
  height: 10px;
  animation-delay: 0.15s;
}

@keyframes aiWaveAnim {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.ai-status {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  min-height: 20px;
}

.ai-status.listening {
  color: #dc2626;
  font-weight: 600;
}

.ai-prompt-box {
  display: flex;
  gap: 8px;
}

.ai-prompt-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.ai-prompt-box input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.ai-send-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ai-send-btn:hover {
  background: #059669;
}

.ai-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.ai-chip {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.ai-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.ai-reply-card {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #14532d;
  line-height: 1.5;
}

/* Order Preview Card */
.ai-order-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.ai-order-head h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.ai-tag {
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.ai-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
}

.ai-item-info strong {
  display: block;
  color: #1f2937;
}

.ai-item-info span {
  color: #6b7280;
  font-size: 11px;
}

.ai-item-total {
  font-weight: 700;
  color: #059669;
}

.ai-calc-box {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.ai-calc-row {
  display: flex;
  justify-content: space-between;
  color: #4b5563;
}

.ai-total-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 5px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.ai-total-row strong {
  color: #059669;
  font-size: 15px;
}

.ai-fields-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-field-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ai-field-row label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}

.ai-field-row input,
.ai-field-row select {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.ai-field-row input:focus,
.ai-field-row select:focus {
  border-color: #10b981;
}

.ai-confirm-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.ai-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(22, 163, 74, 0.35);
}

/* ==========================================================================
   Responsive Header Search: Icon Next to Profile + Slide-Down Search Bar
   ========================================================================== */

/* Hidden on desktop */
.mobile-search-btn,
.search-close-btn {
  display: none !important;
}

@media (max-width: 767px) {
  /* Keep main-header single row, clean & sleek */
  .main-header,
  .main-header.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    height: 56px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    overflow: visible !important;
  }

  .main-header .brand {
    font-size: 20px !important;
    margin-right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .main-header .store-logo {
    max-height: 32px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* Action Buttons (Search, Profile, Cart) on Mobile */
  .mobile-search-btn,
  .header-actions > a,
  .cart-toggle,
  .main-header button.cart-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    color: #374151 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-search-btn:active,
  .main-header.search-open .mobile-search-btn,
  .header-actions > a:active,
  .cart-toggle:active {
    background: #dcfce7 !important;
    color: #166534 !important;
    transform: scale(0.95);
  }

  .mobile-search-btn:hover,
  .header-actions > a:hover,
  .cart-toggle:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
  }

  .mobile-search-btn svg,
  .header-actions > a svg,
  .cart-toggle svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
  }

  /* Hide text labels inside header actions on mobile */
  .header-actions span,
  .cart-toggle span {
    display: none !important;
  }

  /* Hide wishlist in header actions on mobile (available in bottom nav) */
  .header-actions > a[href*="wishlist"] {
    display: none !important;
  }

  /* Search Form - Hidden by default on mobile */
  .search-form {
    display: none !important;
  }

  /* Search Form - Slide down when search-open is active */
  .main-header.search-open .search-form {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 10px 14px 12px !important;
    box-shadow:
      0 10px 25px -4px rgba(0, 0, 0, 0.12),
      0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-top: 1px solid #f3f4f6 !important;
    border-bottom: 1px solid #e5e7eb !important;
    z-index: 100 !important;
    gap: 8px !important;
    align-items: center !important;
    animation: searchSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes searchSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-header.search-open .search-input-wrap {
    flex: 1 !important;
    position: relative !important;
  }

  .main-header.search-open .search-form input {
    height: 44px !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding-left: 14px !important;
    padding-right: 42px !important;
    font-size: 14px !important;
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
  }

  .main-header.search-open .search-form input:focus {
    border-color: var(--primary, #16a34a) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14) !important;
  }

  .main-header.search-open .search-form button[aria-label="খুঁজুন"] {
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: white !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  /* Close Button in search form */
  .search-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
  }

  .search-close-btn:active {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
  }

  /* Autocomplete Suggestions on mobile */
  .main-header.search-open #suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 14px !important;
    right: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    z-index: 101 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   Account Dashboard Responsive Styling (Mobile & Desktop)
   ========================================================================== */

/* Account Layout Base */
.account-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 48px;
  width: 100%;
  box-sizing: border-box;
}

.account-nav {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  position: sticky;
  top: 76px;
  box-sizing: border-box;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.28);
}

.account-user-info {
  flex: 1;
  min-width: 0;
}

.account-user-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.account-user-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.account-user-role {
  display: inline-block;
  font-size: 11px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.account-logout-btn {
  font-size: 11px !important;
  padding: 3px 9px !important;
  border-radius: 5px !important;
  border: 1.5px solid #fca5a5 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  line-height: 1.3 !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.account-logout-btn:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.account-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-link,
.account-nav a.account-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  background: transparent;
  border: 1px solid transparent;
}

.account-nav-link:hover,
.account-nav a.account-nav-link:hover {
  background: #f0fdf4 !important;
  color: #15803d !important;
}

.account-nav-link.selected,
.account-nav a.account-nav-link.selected {
  background: #dcfce7 !important;
  color: #15803d !important;
  font-weight: 700 !important;
  border-color: #bbf7d0 !important;
}

.account-nav-link svg,
.account-nav a.account-nav-link svg {
  stroke: currentColor;
  flex-shrink: 0;
  margin-right: 10px !important;
}

.account-nav-link span,
.account-nav a.account-nav-link span {
  display: inline-block;
  line-height: 1.2;
}

/* Account Content Panel */
.account-content-panel {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  min-height: 400px;
  box-sizing: border-box;
}

.account-content-panel h1 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

/* Account Tables & Responsive Scrolling */
.account-content-panel .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.account-content-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.account-content-panel th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  padding: 12px 14px !important;
  text-align: left;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.account-content-panel td {
  padding: 13px 14px !important;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.account-content-panel tr:hover td {
  background: #fafafa;
}

/* Page Header */
.account-page-header {
  margin-bottom: 18px;
}
.account-page-header h1 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  border: none !important;
}
.account-page-sub {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 !important;
}

/* Order Rows & Links */
.order-id-cell {
  display: inline-flex;
  align-items: center;
}
.order-num-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.order-num-link:hover {
  color: #16a34a;
  text-decoration: underline;
}

.order-date-text {
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
}

.order-total-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* Modern Action Buttons */
.account-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-order-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  transition: all 0.15s ease !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
}

.btn-order-action.btn-inv {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
.btn-order-action.btn-inv:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.btn-order-action.btn-reorder {
  background: #16a34a !important;
  color: #ffffff !important;
  border: 1px solid #15803d !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25) !important;
  font-weight: 700 !important;
}
.btn-order-action.btn-reorder:hover {
  background: #15803d !important;
  border-color: #14532d !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35) !important;
}

.btn-order-action.btn-cancel {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}
.btn-order-action.btn-cancel:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.cancel-action-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-cancel-timer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.account-orders-notice {
  margin-top: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}
.account-orders-notice a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: underline;
}

/* Address Cards & Grid */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.address-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  position: relative;
}

.address-card strong {
  display: block;
  font-size: 15px;
  color: #111827;
  margin-bottom: 6px;
}

.address-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Account Forms */
.account-content-panel form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.account-content-panel form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.account-content-panel form input,
.account-content-panel form select,
.account-content-panel form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  box-sizing: border-box;
}

.account-content-panel form input:focus,
.account-content-panel form select:focus,
.account-content-panel form textarea:focus {
  background: #ffffff;
  border-color: #16a34a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.account-content-panel form button:not(.ghost) {
  align-self: flex-start;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
}

/* ==========================================================================
   Mobile Responsive Overrides for Account (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .account-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 30px !important;
  }

  .account-nav {
    position: static !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-user-card {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  .account-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .account-user-name {
    font-size: 15px !important;
  }

  /* Horizontal Scrollable Tabs on Mobile */
  .account-nav-tabs {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    flex-wrap: nowrap !important;
  }

  .account-nav-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .account-nav-link {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    border-radius: 24px !important;
    font-size: 13px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    gap: 6px !important;
  }

  .account-nav-link.selected {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    border-color: #15803d !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25) !important;
  }

  .account-nav-link.selected svg {
    stroke: #ffffff !important;
  }

  .account-content-panel {
    padding: 16px 14px !important;
    border-radius: 12px !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-content-panel h1 {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }

  .account-content-panel th,
  .account-content-panel td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  .account-content-panel table {
    min-width: 440px !important;
  }

  .address-grid {
    grid-template-columns: 1fr !important;
  }

  .account-content-panel form {
    max-width: 100% !important;
  }

  .account-content-panel form button:not(.ghost) {
    width: 100% !important;
    padding: 12px !important;
    align-self: stretch !important;
  }

  /* Auth Card Responsive Fix for Login/Register */
  .auth-card {
    margin: 16px auto !important;
    padding: 24px 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  }

  .auth-card h1 {
    font-size: 20px !important;
    margin-bottom: 18px !important;
  }

  .auth-card input {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .auth-card button.wide {
    width: 100% !important;
    height: 46px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
}
