@import url('floating-navbar.css');

/* ==========================================================
   PN Tech store styles - PREMIUM EDITION
   ========================================================== */
:root {
  --ink: #241F21;
  /* main text (espresso deep brown from pn.webp) */
  --board: #3B281B;
  /* brand coffee brown */
  --board-deep: #241F21;
  /* dark espresso brown */
  --signal: #5A3D29;
  /* warm accent brown */
  --sand: #DCC28D;
  /* brand golden beige from pn.webp */
  --sand-light: #F5EEDB;
  /* soft beige highlight */
  --paper: #FAF7F2;
  /* page background (warm off-white/cream) */
  --card: #ffffff;
  --line: #E8DFC8;
  /* warm beige border from pn.webp */
  --muted: #786B62;
  /* warm muted secondary text */
  --sale: #c02626;
  /* discounts and errors */
  --grid: rgba(59, 40, 27, .06);
  /* graph-paper lines behind the search */

  /* Unified Modern Button Tokens */
  --btn-radius: 10px;
  --btn-radius-sm: 8px;
  --btn-radius-lg: 12px;
  --btn-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --btn-shadow-hover: 0 4px 14px rgba(59, 40, 27, 0.16), 0 2px 4px rgba(0, 0, 0, 0.06);
  --btn-shadow-active: 0 1px 2px rgba(0, 0, 0, 0.08);
  --btn-transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);

  font-family: "IBM Plex Sans", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

html:has(dialog[open]),
body:has(dialog[open]),
html:has(.catalog-sidebar.drawer-open),
body:has(.catalog-sidebar.drawer-open),
html:has(.nav-sidebar-drawer.active),
body:has(.nav-sidebar-drawer.active),
html:has(.pn-modal-overlay.open),
body:has(.pn-modal-overlay.open),
html.pn-scroll-locked,
body.pn-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Animations */
/* No fill-mode: a transform left on <body> would make every
   position:fixed element (toast, dialogs) relative to the body. */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.animate-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

:focus-visible {
  outline: 3px solid var(--board);
  outline-offset: 2px;
}

.wrap {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  background: var(--board-deep);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 6px;
  z-index: 50;
}

.skip:focus {
  inset-block-start: .75rem;
}

.note {
  color: var(--muted);
}

/* ---------- Header ---------- */
.top {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  border-bottom: 1.5px solid var(--line);
  box-shadow: 0 4px 20px -2px rgba(36, 31, 33, 0.05);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

/* ---------- Search + categories ---------- */
.finder {
  padding-block: 3.5rem 2rem;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

.finder h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
}

.lead {
  margin: .5rem 0 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.search {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search input {
  width: 100%;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 1.1rem;
  padding-inline: 3.5rem 1.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 1.2rem center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

.search input:focus {
  border-color: var(--board);
  box-shadow: 0 10px 30px -5px rgba(59, 40, 27, 0.15);
  outline: none;
}

.search input::placeholder {
  color: #94a3b8;
}

.chips {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-block: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chip:hover {
  border-color: var(--board);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chip .n {
  color: var(--muted);
  margin-inline-start: .4rem;
  font-size: .85rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 12px;
}

.chip[aria-pressed="true"] {
  background: var(--board);
  border-color: var(--board);
  color: #fff;
}

.chip[aria-pressed="true"] .n {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Toolbar + grid ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.toolbar p {
  margin: 0;
  margin-inline-end: auto;
  font-weight: 600;
  color: var(--muted);
}

.check,
.sort {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 500;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--board);
}

.sort select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem .8rem;
  background: #fff;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.sort select:focus {
  border-color: var(--board);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding-bottom: 2rem;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 40, 27, 0.04);
  height: 100%;
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -5px rgba(59, 40, 27, 0.12);
  border-color: rgba(59, 40, 27, 0.28);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}

.thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 155px;
  padding: 0.75rem;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  overflow: hidden;
}

.thumb img {
  max-width: 100%;
  max-height: 135px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* Card Thumb Multi-Image Dots Indicator */
.thumb-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 5;
  padding: 3px 6px;
  pointer-events: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.card:hover .thumb-dots {
  opacity: 1;
}

.thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(43, 30, 22, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.thumb-dot:hover,
.thumb-dot.active {
  background: var(--board, #3B281B);
  transform: scale(1.4);
  border-color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.card.out .thumb img {
  opacity: .45;
  filter: grayscale(40%);
}

.tag {
  position: absolute;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  background: var(--sale);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.35);
  z-index: 2;
  letter-spacing: 0.3px;
}

.tag.tag-out {
  background: #64748b;
  box-shadow: 0 2px 5px rgba(100, 116, 139, 0.35);
}

.p-name {
  padding: 0.5rem 0.65rem 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.38;
  height: 3.25rem;
  min-height: 3.25rem;
  max-height: 3.25rem;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  color: var(--ink);
  margin: 0;
}

.p-price {
  padding-inline: 0.65rem;
  font-size: 1.05rem;
  padding-bottom: 0.65rem;
  margin-top: auto;
}

.card-foot {
  display: grid;
  gap: .55rem;
  padding: .5rem .8rem .8rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}

.price {
  font-weight: 800;
  font-size: 1.15rem;
  color: #8B5E3C;
}

.old {
  color: #94A3B8;
  font-size: .78rem;
  text-decoration: line-through;
}

/* ==========================================================
   UNIFIED MODERN BUTTON FRAME SYSTEM
   Standardized modern radius, frame padding, subtle elevation & micro-transitions
   ========================================================== */
.btn-add {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius, 10px) !important;
  padding: .65rem .95rem;
  background: var(--board);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: var(--btn-shadow);
  transition: var(--btn-transition) !important;
  cursor: pointer;
}

.btn-add:hover {
  background: var(--board-deep);
  transform: translateY(-1.5px);
  box-shadow: var(--btn-shadow-hover);
}

.btn-add:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--btn-shadow-active);
}

.btn-add.btn-alt {
  background: #fff;
  color: var(--board);
  border: 1.5px solid var(--board);
}

.btn-add.btn-alt:hover {
  background: var(--board);
  color: #fff;
}

.btn-add:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border: none;
}

.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem auto 3.5rem;
  padding: .75rem 2.25rem;
  border: 2px solid var(--board);
  background: #ffffff;
  color: var(--board);
  border-radius: var(--btn-radius-lg, 12px) !important;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--btn-shadow);
  transition: var(--btn-transition) !important;
  cursor: pointer;
}

.more:hover {
  background: var(--board);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: var(--btn-shadow-hover);
}

.more:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--btn-shadow-active);
}

/* Base button color variants - High Contrast Rule */
.btn-primary,
.btn-admin,
button.btn-admin,
a.btn-admin {
  background: var(--board, #3B281B) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--board, #3B281B) !important;
}

.btn-primary:hover,
.btn-admin:hover,
button.btn-admin:hover,
a.btn-admin:hover {
  background: var(--board-deep, #241F21) !important;
  border-color: var(--board-deep, #241F21) !important;
  color: #ffffff !important;
}

.btn-primary svg,
.btn-admin svg,
.btn-primary .ic,
.btn-admin .ic {
  stroke: currentColor !important;
}

.btn-outline,
.btn-admin.btn-outline,
button.btn-admin.btn-outline,
a.btn-admin.btn-outline,
button.btn-outline,
a.btn-outline {
  background: #ffffff !important;
  color: var(--board, #3B281B) !important;
  border: 1.5px solid var(--board, #3B281B) !important;
}

.btn-outline svg,
.btn-outline .ic,
.btn-admin.btn-outline svg,
.btn-admin.btn-outline .ic {
  stroke: currentColor !important;
}

.btn-outline:hover,
.btn-admin.btn-outline:hover,
button.btn-admin.btn-outline:hover,
a.btn-admin.btn-outline:hover,
button.btn-outline:hover,
a.btn-outline:hover {
  background: var(--board, #3B281B) !important;
  color: #ffffff !important;
  border-color: var(--board, #3B281B) !important;
}

.btn-danger,
.btn-admin.btn-danger,
button.btn-admin.btn-danger,
a.btn-admin.btn-danger {
  background: #ffffff !important;
  color: var(--sale, #ef4444) !important;
  border: 1.5px solid var(--sale, #ef4444) !important;
}

.btn-danger:hover,
.btn-admin.btn-danger:hover,
button.btn-admin.btn-danger:hover,
a.btn-admin.btn-danger:hover {
  background: var(--sale, #ef4444) !important;
  color: #ffffff !important;
}

.btn-secondary,
.btn-admin.btn-secondary,
button.btn-admin.btn-secondary,
a.btn-admin.btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
}

.btn-secondary:hover,
.btn-admin.btn-secondary:hover,
button.btn-admin.btn-secondary:hover,
a.btn-admin.btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Master Modern Button Frame Uniformity Rule */
button:not(.btn-quick-add):not(.stepper button):not(.bubble-icon-wrap):not(.nav-item):not(.kb-modal-close-btn):not(.dialog-close):not([class*="chevron"]):not([class*="close-btn"]):not([class*="nav-chevron"]):not([class*="nav-drawer-collapse"]):not(.rail-step-btn),
.btn,
.btn-admin,
.btn-add,
.btn-outline,
.btn-danger,
.btn-primary,
.btn-secondary,
.btn-send,
.btn-share-cart,
.btn-empty-cart,
.btn-checkout,
.btn-log-undo,
a.btn-admin,
a.btn-add,
a.btn-outline,
.kb-btn,
.filter-btn,
.cart-checkout-btn,
.auth-btn {
  border-radius: var(--btn-radius, 10px) !important;
  font-family: inherit;
  box-shadow: var(--btn-shadow);
  transition: var(--btn-transition) !important;
}

button:not(.btn-quick-add):not(.stepper button):not(.bubble-icon-wrap):not(.nav-item):not(.kb-modal-close-btn):not(.dialog-close):not([class*="chevron"]):not([class*="close-btn"]):not([class*="nav-chevron"]):not([class*="nav-drawer-collapse"]):not(.rail-step-btn):hover,
.btn:hover,
.btn-admin:hover,
.btn-add:hover,
.btn-outline:hover,
.btn-danger:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-send:hover,
.btn-share-cart:hover,
.btn-empty-cart:hover,
.btn-checkout:hover,
.btn-log-undo:hover,
a.btn-admin:hover,
a.btn-add:hover,
a.btn-outline:hover,
.kb-btn:hover,
.filter-btn:hover,
.cart-checkout-btn:hover,
.auth-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--btn-shadow-hover);
}

button:not(.btn-quick-add):not(.stepper button):not(.bubble-icon-wrap):not(.nav-item):not(.kb-modal-close-btn):not(.dialog-close):not([class*="chevron"]):not([class*="close-btn"]):not([class*="nav-chevron"]):not([class*="nav-drawer-collapse"]):not(.rail-step-btn):active,
.btn:active,
.btn-admin:active,
.btn-add:active,
.btn-outline:active,
.btn-danger:active,
.btn-primary:active,
.btn-secondary:active,
.btn-send:active,
.btn-share-cart:active,
.btn-empty-cart:active,
.btn-checkout:active,
.btn-log-undo:active,
a.btn-admin:active,
a.btn-add:active,
a.btn-outline:active,
.kb-btn:active,
.filter-btn:active,
.cart-checkout-btn:active,
.auth-btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--btn-shadow-active);
}


/* ---------- Premium Modern Site Footer ---------- */
.site-foot {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  background: #110d0a !important;
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(220, 194, 141, 0.2);
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FAF7F2;
  letter-spacing: -0.02em;
}

.footer-brand-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  max-width: 340px;
}

/* Social Media Icons Bar */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--sand, #DCC28D);
  border-color: var(--sand, #DCC28D);
  color: #1a120c;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(220, 194, 141, 0.3);
}

.footer-social-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

.footer-social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #cc2366;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(204, 35, 102, 0.35);
}

.footer-social-btn.tiktok:hover {
  background: #000000;
  border-color: #00f2fe;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.3);
}

.footer-social-btn.linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35);
}

.footer-social-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Nav Columns */
.footer-col-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FAF7F2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--sand, #DCC28D);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-nav-link:hover {
  color: var(--sand, #DCC28D);
  transform: translateX(3px);
}

/* Bottom Bar & Web Developer Credits Card */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
}

.footer-copyright {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Developer Signature Card */
.footer-dev-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 194, 141, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.footer-dev-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--sand, #DCC28D);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 194, 141, 0.15);
}

.footer-dev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DCC28D 0%, #3B281B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
  border: 1.5px solid rgba(220, 194, 141, 0.5);
}

.footer-dev-info {
  display: flex;
  flex-direction: column;
}

.footer-dev-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sand, #DCC28D);
  font-weight: 700;
}

.footer-dev-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-dev-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.footer-dev-icon-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-dev-icon-link:hover {
  background: var(--sand, #DCC28D);
  color: #1a120c;
  transform: scale(1.1);
}

/* ---------- Shared bits for dialogs ---------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overscroll-behavior: contain !important;
}

dialog::backdrop {
  background: rgba(36, 31, 33, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #f1f5f9;
  color: var(--board);
  transform: scale(1.05);
}

.field {
  margin-bottom: 1.2rem;
}

.field label,
.field>span {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .95rem;
  color: #334155;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: .75rem 1rem;
  background: #fff;
  transition: all 0.2s;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--board);
  box-shadow: 0 0 0 3px rgba(59, 40, 27, 0.15);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: var(--sale);
}

.err,
.form-error {
  margin: .4rem 0 0;
  color: var(--sale);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Product dialog ---------- */
.modal {
  width: min(800px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 16px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  padding: 0;
}

.pd {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.project-modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.75rem 1rem 0.25rem;
  background: transparent;
}

.modal-close-icon {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #dc2626;
  transform: scale(1.15);
  background: transparent !important;
}

.pd-close {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pd-close .icon-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pd-gallery {
  align-self: start;
  position: sticky;
  top: 0;
}

.pd-media {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  aspect-ratio: 1;
  background: #fff;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.thumb-btn {
  width: 60px;
  height: 60px;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.thumb-btn:hover,
.thumb-btn.active {
  border-color: var(--board);
  transform: translateY(-2px);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-info h2 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.pd-cats {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}

.pd-price {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pd-buy {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pd-buy .btn-add {
  width: auto;
  flex: 1;
  padding-block: .8rem;
  font-size: 1.1rem;
}

.desc {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 1rem;
  direction: ltr;
  text-align: left;
  color: #475569;
}

.desc ul,
.desc ol {
  padding-inline-start: 1.5rem;
  margin: .5rem 0;
}

.desc h3,
.desc h4,
.desc h5,
.desc h6,
.desc p {
  margin: .8rem 0 .4rem;
  color: var(--ink);
}

.desc table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.desc td,
.desc th {
  border: 1px solid var(--line);
  padding: .5rem .75rem;
}

.desc th {
  background: #f8fafc;
  font-weight: 700;
}

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin-block: 0;
  margin-inline: auto 0;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: none;
  z-index: 100005 !important;
}

.drawer[open] {
  display: flex !important;
  flex-direction: column !important;
  animation: slide-in .22s ease-out;
}

@keyframes slide-in {
  from {
    transform: translateX(-28px);
    opacity: 0;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #fff;
  touch-action: none;
  overscroll-behavior: contain;
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
  padding-inline-start: .2rem;
}

.drawer-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.75rem 0.85rem !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
}

.drawer-foot {
  touch-action: none;
  flex-shrink: 0;
  overscroll-behavior: contain;
}

.drawer-body h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 0.95rem;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .3rem .8rem;
  align-items: center;
  padding-block: .55rem;
  border-bottom: 1px solid var(--line);
}

.line img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  grid-row: span 2;
}

.line-name {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
}

.line-var {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.line-total {
  font-weight: 700;
  font-size: .95rem;
  text-align: end;
}

.line-ctl {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  background: #F5EEDB;
  border: 1.5px solid var(--line, #E8DFC8);
  border-radius: 999px;
  padding: 3px 6px;
  gap: 6px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--board, #3B281B);
  box-shadow: 0 1px 3px rgba(36, 31, 33, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.stepper button:hover,
.stepper button:active {
  background: var(--board, #3B281B);
  color: #ffffff;
}

.stepper span {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
  color: var(--ink);
  user-select: none;
}

.stepper .stepper-qty-input {
  width: 38px;
  min-width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--board, #3B281B);
  padding: 0;
  border-radius: 999px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper .stepper-qty-input::-webkit-inner-spin-button,
.stepper .stepper-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper .stepper-qty-input:hover:not(:focus) {
  background: rgba(255, 255, 255, 0.55);
}

.stepper .stepper-qty-input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(201, 146, 72, 0.45);
}

.remove {
  border: 0;
  background: none;
  color: var(--sale);
  font-size: .85rem;
  font-weight: 600;
  padding: .3rem .5rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.remove:hover {
  background: #fee2e2;
}

.pay {
  margin: 0;
  padding: .7rem .9rem;
  background: #FAF7F0;
  border: 1px solid #E8DFC8;
  color: #5A3D29;
  border-radius: 8px;
  font-size: .95rem;
}

.form-error {
  margin-top: .8rem;
  padding: .6rem .8rem;
  background: #FBEAE8;
  border-radius: 8px;
}

/* Form inputs & Focus Polish */
.form-field input,
.form-field textarea,
.form-group input,
.form-group textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--board, #3B281B) !important;
  box-shadow: 0 0 0 3.5px rgba(59, 40, 27, 0.14) !important;
  outline: none !important;
}

.drawer-foot {
  flex-shrink: 0 !important;
  padding: 0.75rem 0.9rem !important;
  border-top: 1px solid var(--line);
  background: #fff;
}

.totals {
  margin: 0 0 0.5rem !important;
}

.totals div {
  display: flex;
  justify-content: space-between;
  padding-block: .12rem;
}

.totals dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.totals dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.totals .grand {
  margin-top: .25rem !important;
  padding-top: .35rem !important;
  border-top: 1px solid var(--line);
  font-size: 1.15rem !important;
}

.totals .grand dt {
  color: var(--ink);
  font-weight: 700;
}

.totals .grand dd {
  font-weight: 700;
}

.btn-send {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: .75rem 1rem !important;
  background: var(--board);
  color: #fff;
  font-weight: 700;
  font-size: 1rem !important;
  transition: background .15s;
}

.btn-send:hover {
  background: var(--board-deep);
}

.hint {
  margin: .35rem 0 0 !important;
  font-size: .78rem !important;
  color: var(--muted);
  text-align: center;
}

.link-btn {
  display: block;
  margin: .6rem auto 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  font-size: .85rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  inset-inline: 0;
  top: 5.5rem;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100vw - 2rem);
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.15rem .7rem .75rem;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  opacity: 0;
  transform: translateY(-16px) scale(.96);
  pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .15);
}

.toast-success .toast-icon {
  background: #22c55e;
  color: #fff;
}

.toast-error .toast-icon {
  background: #ef4444;
  color: #fff;
}

.toast-warning .toast-icon {
  background: #f59e0b;
  color: #fff;
}

.toast-info .toast-icon {
  background: var(--board, #3B281B);
  color: #fff;
}

/* cart badge pulse after adding */
@keyframes badge-bump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.45);
  }

  100% {
    transform: scale(1);
  }
}

.cart-count.bump {
  animation: badge-bump .45s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .card {
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .thumb {
    height: 145px;
    padding: 0.75rem;
  }

  .p-name {
    font-size: .84rem;
    padding-inline: .6rem;
    height: 2.8em;
    line-height: 1.4;
  }

  .card-foot {
    padding: 0.4rem 0.6rem 0.7rem;
    gap: 0.4rem;
  }

  .price {
    font-size: 1.05rem;
  }

  .btn-add {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
  }

  .pd {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .pd-gallery {
    max-width: 240px;
    margin-inline: auto;
    width: 100%;
  }

  .cart-btn span:not(.cart-count) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer[open] {
    animation: none;
  }

  .toast {
    transition: none;
  }

  .cart-count.bump {
    animation: none;
  }
}

/* ---------- Mobile Search Bar (Image 2 style) ---------- */
.home-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  max-width: 700px;
  margin: 0 auto;
}

.home-search-bar:focus-within {
  border-color: var(--board);
  box-shadow: 0 6px 20px rgba(59, 40, 27, 0.12);
}

.home-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
}

.home-search-bar input::placeholder {
  color: #94a3b8;
}

.home-search-btn {
  background: linear-gradient(135deg, #3B281B, #241F21);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(36, 31, 33, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.home-search-btn:hover {
  background: linear-gradient(135deg, #5A3D29, #3B281B);
  transform: scale(1.05);
}

.home-filter-btn {
  background: #f1f5f9;
  color: var(--muted);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-inline-start: 0.4rem;
  transition: background 0.2s, color 0.2s;
}

.home-filter-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

/* ---------- Responsive Hero Banners (المستطيلات المتناسقة) ---------- */
.hero-banners-container {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.hero-carousel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.hero-carousel-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.banner-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem 2rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  min-height: 220px;
}

.banner-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.2);
}

.banner-card.main-b {
  background: linear-gradient(135deg, #241F21 0%, #3B281B 55%, #5A3D29 100%);
  min-height: 250px;
}

.banner-card.sub-b1 {
  background: linear-gradient(135deg, #3B281B 0%, #4E3423 60%, #684833 100%);
  min-height: 110px;
}

.banner-card.sub-b2 {
  background: linear-gradient(135deg, #2A1F18 0%, #3E2F26 60%, #523F34 100%);
  min-height: 110px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(220, 194, 141, 0.22);
  color: #DCC28D;
  border: 1px solid rgba(220, 194, 141, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.banner-card h2,
.banner-card h3 {
  margin: 0 0 0.35rem 0;
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1.25;
}

.banner-card.main-b h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
}

.banner-card.sub-b1 h3,
.banner-card.sub-b2 h3 {
  font-size: 1.25rem;
}

.banner-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}

.banner-btn-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: #DCC28D;
  color: #241F21;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.banner-card:hover .banner-btn-tag {
  transform: translateX(4px);
  background: #ffffff;
}

/* Mobile swipeable carousel for banners (المستطيلات المتناسقة) */
@media (max-width: 768px) {
  .hero-banners-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.85rem;
    padding: 0.25rem 0.5rem 0.75rem 0.5rem;
    margin-inline: -0.5rem;
  }

  .hero-carousel::-webkit-scrollbar {
    display: none;
  }

  .hero-carousel-right {
    display: contents;
  }

  .banner-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .banner-card.main-b,
  .banner-card.sub-b1,
  .banner-card.sub-b2 {
    min-height: 160px;
    height: 160px;
  }

  .banner-card h2,
  .banner-card h3 {
    font-size: 1.15rem !important;
    line-height: 1.25;
    margin: 0 0 0.25rem 0;
  }

  .banner-card p {
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .banner-btn-tag {
    margin-top: 0.4rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
  }

  .banner-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.4rem;
  }
}

@media (max-width: 360px) {
  .banner-card {
    flex: 0 0 88%;
    max-width: 88%;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    padding: 0.9rem 1rem;
  }

  .banner-card h2,
  .banner-card h3 {
    font-size: 1.05rem !important;
  }
}

/* ---------- Bottom Navigation (Image 2 Style) ---------- */
.bottom-nav {
  display: none;
}

.floating-wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  bottom: 26px !important;
  right: 26px !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  text-decoration: none !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.floating-wa:hover {
  transform: scale(1.1) translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.58), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  color: #FFFFFF !important;
}

.floating-wa:active {
  transform: scale(0.96) !important;
}

.floating-wa svg {
  width: 28px !important;
  height: 28px !important;
  fill: currentColor !important;
  transition: transform 0.25s ease !important;
}

/* ---------- Product Card Price Block ---------- */
.p-price-block {
  padding-inline: 1rem;
  padding-bottom: 1.25rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 48px;
  gap: 2px;
}

.p-price-old {
  color: var(--muted, #64748b);
  font-size: 0.88rem;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.2;
}

.p-price-sale {
  color: var(--sale, #c02626);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.p-price-regular {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* ---------- More Side Drawer (Mobile & Desktop) ---------- */
.more-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.more-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.more-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--paper, #F7F3EE);
  box-shadow: 10px 0 35px rgba(38, 24, 14, 0.35);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 1.25rem;
  direction: ltr;
  box-sizing: border-box;
}

.more-drawer.open {
  transform: translateX(0);
}

.more-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--line, #E8DFC8);
  margin-bottom: 1.5rem;
}

.more-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--board, #3B281B);
}

.more-drawer-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.more-drawer-close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--muted, #64748b);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.more-drawer-close:hover {
  color: var(--board, #3B281B);
  background: rgba(59, 40, 27, 0.08);
}

.more-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  flex: 1;
}

.more-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card, #FFFFFF);
  border: 1px solid var(--line, #E8DFC8);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink, #1C1917);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.more-drawer-item:hover,
.more-drawer-item:active {
  transform: translateY(-2px);
  border-color: var(--board, #3B281B);
  box-shadow: 0 8px 18px rgba(59, 40, 27, 0.12);
}

.more-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 40, 27, 0.08);
  color: var(--board, #3B281B);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-item-icon svg {
  width: 22px;
  height: 22px;
}

.more-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.more-item-text strong {
  font-size: 1rem;
  color: var(--board, #3B281B);
  font-weight: 700;
}

.more-item-text span {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}

.more-item-arrow {
  color: var(--muted, #94a3b8);
  font-size: 1.4rem;
  font-weight: 700;
}

@media (max-width: 768px) {

  /* Ensure body extends seamlessly with no light strip under the footer */
  body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Footer stretches all the way to the bottom edge with inner padding to clear floating elements */
  .site-foot {
    padding-top: 3rem !important;
    padding-bottom: calc(3rem + 75px + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }

  .bottom-nav {
    display: none !important;
  }

  .bottom-nav .b-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(247, 243, 238, 0.72) !important;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    height: 100%;
    transition: all 0.2s ease;
    border-radius: 12px;
    padding: 5px 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .bottom-nav .b-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .bottom-nav .b-item:hover,
  .bottom-nav .b-item.active {
    color: #ffffff !important;
  }

  .bottom-nav .b-item.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
  }

  .bottom-nav .b-item.active svg {
    transform: scale(1.12);
  }

  /* Floating WhatsApp Button */
  .floating-wa {
    bottom: 76px !important;
    right: 18px !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
  }

  .floating-wa svg {
    width: 25px !important;
    height: 25px !important;
  }

  /* Hide main nav on mobile */
  .top .main-nav {
    display: none !important;
  }
}

/* ==========================================================
   Share Cart & Live Cart Styles
   ========================================================== */
.drawer-actions-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
  align-items: center;
}

.btn-share-cart,
.btn-copy-share-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #FAF7F0;
  color: var(--board, #3B281B);
  border: 1.5px solid var(--board, #3B281B);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share-cart:hover,
.btn-copy-share-url:hover {
  background: var(--board, #3B281B);
  color: #fff;
}

.btn-empty-cart {
  background: none;
  border: 1.5px solid #fee2e2;
  color: var(--sale, #dc2626);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-empty-cart:hover {
  background: #fee2e2;
}

/* Share Cart Dialog & Import Modal */
.pn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 14, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  transition: opacity 0.25s ease;
}

.pn-modal-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100010 !important;
}

.pn-modal-box {
  background: #fff;
  width: min(540px, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 18px;
  border: 1.5px solid var(--line, #E8DFC8);
  box-shadow: 0 20px 45px rgba(59, 40, 27, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain !important;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pn-modal-overlay.open .pn-modal-box {
  transform: translateY(0) scale(1);
}

.pn-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line, #E8DFC8);
  background: #FAF7F0;
}

.pn-modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--board, #3B281B);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pn-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.pn-modal-close:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

.pn-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
}

.pn-modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line, #E8DFC8);
  background: #FAF7F0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.share-link-input-group {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.share-link-input-group input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line, #E8DFC8);
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.88rem;
  background: #f8fafc;
  color: var(--ink);
}

.share-preview-list {
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-preview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line, #E8DFC8);
  border-radius: 8px;
  background: #fff;
}

.share-preview-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #E8DFC8;
  background: #fff;
}

.share-preview-item .sp-info {
  flex: 1;
  min-width: 0;
}

.share-preview-item .sp-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-preview-item .sp-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.share-preview-item .sp-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--board, #3B281B);
  white-space: nowrap;
}

.share-preview-item.sp-item-selected {
  background: #FAF8EE !important;
  border-color: var(--sand, #DCC28D) !important;
}

.sp-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line, #E8DFC8);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  height: 32px;
}

.sp-qty-btn {
  width: 28px;
  height: 30px;
  background: #FAF8EE;
  border: none;
  font-weight: 700;
  color: var(--board, #3B281B);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
  font-size: 1rem;
}

.sp-qty-btn:hover {
  background: var(--sand-light, #F5EEDB);
}

.sp-qty-input {
  width: 38px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--line, #E8DFC8);
  border-right: 1px solid var(--line, #E8DFC8);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
  background: #fff;
}

.sp-qty-input::-webkit-outer-spin-button,
.sp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ==========================================================
   Quick Add-to-Cart Button on Products
   ========================================================== */
.btn-quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(232, 223, 200, 0.9);
  color: var(--board, #3B281B);
  box-shadow: 0 4px 12px rgba(59, 40, 27, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  z-index: 4;
}

.card:hover .btn-quick-add,
.card:focus-within .btn-quick-add {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-quick-add:hover {
  background: var(--board, #3B281B);
  color: #ffffff;
  border-color: var(--board, #3B281B);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 18px rgba(59, 40, 27, 0.25);
}

.btn-quick-add:active {
  transform: scale(0.94);
}

.btn-quick-add.added {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: scale(1.15) !important;
}

@media (hover: none) {
  .btn-quick-add {
    opacity: 0.88;
    transform: none;
  }
}

/* ==========================================================
   Live Search Autocomplete Dropdown (Top 4 Products)
   ========================================================== */
/* Remove browser default cancel / clear 'x' button on search inputs to prevent duplicate 'x' */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none !important;
}

.home-search-bar {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--line, #E8DFC8);
  border-radius: 18px;
  box-shadow: 0 20px 45px -5px rgba(59, 40, 27, 0.22), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: searchDropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  max-height: min(480px, calc(100vh - 120px));
}

.search-dropdown.open {
  display: flex;
}

.search-dropdown.dropup {
  top: auto;
  bottom: calc(100% + 10px);
  box-shadow: 0 -20px 45px -5px rgba(59, 40, 27, 0.22), 0 -8px 16px -4px rgba(0, 0, 0, 0.06);
  animation: searchDropupFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes searchDropupFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-dropdown-header {
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #FAF7F0;
  border-bottom: 1px solid var(--line, #E8DFC8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-dropdown-header span.badge-num {
  background: var(--board, #3B281B);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
}

.search-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 320px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #D4A373 #FAF7F0;
}

.search-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown-list::-webkit-scrollbar-track {
  background: #FAF7F0;
}

.search-dropdown-list::-webkit-scrollbar-thumb {
  background: #D4A373;
  border-radius: 999px;
}

.search-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #3B281B;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:focus {
  background: #FAF7F0;
  outline: none;
}

.search-dropdown-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #E8DFC8;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

.search-dropdown-info {
  flex: 1;
  min-width: 0;
}

.search-dropdown-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.search-dropdown-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-dropdown-out-badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.search-dropdown-thumb-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.search-dropdown-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.search-dropdown-title-link:hover .search-dropdown-title {
  color: var(--board, #3B281B);
}

.search-dropdown-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  text-align: right;
  margin-inline-start: auto;
}

.search-quick-add-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-quick-add-btn {
  position: static !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--board, #3B281B);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

.search-quick-add-btn:hover {
  background: #d48e00;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(229, 160, 0, 0.25);
}

.search-quick-add-btn.added {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #15803d !important;
}

.search-dropdown-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--board, #3B281B);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.search-dropdown-price-sale {
  color: var(--sale, #dc2626);
}

.search-dropdown-price-old {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.search-dropdown-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  margin-inline-start: 0.15rem;
}

.search-dropdown-item:hover .search-dropdown-arrow {
  color: var(--board, #3B281B);
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .search-dropdown-item {
    padding: 0.6rem 0.75rem;
    gap: 0.55rem;
  }
  .search-dropdown-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  .search-dropdown-title {
    font-size: 0.85rem;
  }
  .search-dropdown-meta {
    font-size: 0.74rem;
  }
  .search-dropdown-price {
    font-size: 0.88rem;
  }
  .search-quick-add-btn {
    padding: 0.22rem 0.5rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }
  .search-quick-add-btn svg {
    width: 11px;
    height: 11px;
  }
  .search-dropdown-arrow {
    display: none;
  }
}

.search-dropdown-footer {
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  background: #FAF7F0;
  border-top: 1px solid var(--line, #E8DFC8);
  text-align: center;
}

.search-dropdown-footer a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--board, #3B281B);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}

.search-dropdown-footer a:hover {
  color: var(--board-deep, #241F21);
  text-decoration: underline;
}

.search-dropdown-empty {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==========================================================
   Categories Showcase & Auto-scrolling Carousel
   ========================================================== */
.cat-showcase-section {
  padding-block: 1rem 3rem;
  overflow: hidden;
}

.cat-marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-inline: 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cat-marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--board);
  background: var(--sand-light);
  border: 1px solid var(--sand);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.cat-marquee-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.cat-marquee-controls {
  display: flex;
  gap: 0.5rem;
}

.cat-marquee-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--board);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1.1rem;
}

.cat-marquee-btn:hover {
  background: var(--sand-light);
  border-color: var(--board);
  transform: scale(1.05);
}

.cat-marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 0.75rem;
}

.cat-marquee-outer::before,
.cat-marquee-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}

.cat-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}

.cat-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}

.cat-marquee-track-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
}

.cat-marquee-track-wrap:active {
  cursor: grabbing;
}

.cat-marquee-track-wrap::-webkit-scrollbar {
  display: none;
}

.cat-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: catScrollTrack 45s linear infinite;
  will-change: transform;
}

.cat-marquee-outer:hover .cat-marquee-track,
.cat-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes catScrollTrack {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Category Card */
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(59, 40, 27, 0.04);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--sand);
  box-shadow: 0 14px 28px -6px rgba(59, 40, 27, 0.12);
  background: #ffffff;
}

.cat-card-marquee {
  width: 180px;
  flex: 0 0 180px;
  min-height: 220px;
}

.cat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
  height: 2.6em;
}

.cat-card-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: #FAF8EE;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  transition: all 0.25s ease;
}

.cat-card:hover .cat-card-img-wrap {
  transform: scale(1.06);
  background: #ffffff;
  border-color: var(--sand);
  box-shadow: 0 6px 16px rgba(220, 194, 141, 0.25);
}

.cat-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.cat-card-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--board);
  background: var(--sand-light);
  border: 1px solid var(--line);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

/* Category Grid */
.cat-grid-section {
  margin-top: 3rem;
  text-align: start;
}

.cat-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cat-grid-head h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.cat-card-grid {
  min-height: 240px;
  padding: 1.5rem 1.25rem;
}

.cat-card-grid .cat-card-img-wrap {
  width: 125px;
  height: 125px;
}

.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
}

.cat-card-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--board);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.2s ease;
}

.cat-card:hover .cat-card-btn {
  transform: translateX(4px);
  color: var(--signal);
}

/* =========================================================
   PN Tech - Floating Glass Navbar Styles
   ========================================================= */

body.has-floating-nav:not(.home-page),
body:has(.floating-nav-container):not(:has(.hero-section)) {
  padding-top: 100px !important;
}

.floating-nav-container {
  position: fixed !important;
  top: 24px !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  z-index: 1000 !important;
  padding: 0 1rem !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: transform !important;
}

/* زيادة الشفافية وتأثير البلور الزجاجي */
.glass-navbar {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  padding: 0.5rem 1.2rem !important;
  background: rgba(18, 12, 8, 0.45) !important;
  /* خلفية شفافة نقية */
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 999px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  max-width: 95vw !important;
  position: relative !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
}

.nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.nav-brand img {
  height: 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  display: block !important;
}

.nav-links-wrap {
  display: flex !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
}

/* تنسيق العناصر: أيقونة فوق والاسم تحت */
.glass-navbar .nav-item,
.glass-navbar .nav-link {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  padding: 0.35rem 0.65rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  border: none !important;
  position: relative !important;
  cursor: pointer !important;
}

.nav-icon {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.2s ease, stroke 0.2s ease !important;
}

.nav-label {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
}

.glass-navbar .nav-item:hover {
  color: #FFFFFF !important;
}

.glass-navbar .nav-item:hover .nav-icon {
  transform: translateY(-2px) !important;
  stroke: #FFFFFF !important;
}

/* تصميم الزر النشط/البارز نصف دائري للأعلى */
.glass-navbar .nav-item.active,
.glass-navbar .nav-item.home-center {
  color: #FFFFFF !important;
  padding-bottom: 0.2rem !important;
}

.glass-navbar .nav-item.active .nav-label,
.glass-navbar .nav-item.home-center .nav-label {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.bubble-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin-top: -24px !important;
  /* رفعه للأعلى خارج حدود الشريط */
  border-radius: 50% !important;
  background: #11100f !important;
  border: 3px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease !important;
}

.glass-navbar .nav-item.active .bubble-icon-wrap .nav-icon,
.glass-navbar .nav-item.home-center .bubble-icon-wrap .nav-icon {
  width: 20px !important;
  height: 20px !important;
  stroke: #FFFFFF !important;
}

.glass-navbar .nav-item.active:hover .bubble-icon-wrap,
.glass-navbar .nav-item.home-center:hover .bubble-icon-wrap {
  transform: translateY(-3px) scale(1.05) !important;
}

/* زر السلة (Cart) */
.glass-navbar .nav-cart-btn,
.glass-navbar .cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  background: rgba(14, 9, 6, 0.7) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: var(--btn-radius-lg, 12px) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.glass-navbar .nav-cart-btn:hover {
  background: #000000 !important;
  transform: translateY(-1px) !important;
}

.glass-navbar .cart-counter,
.glass-navbar .cart-count {
  background: var(--accent-gold, #D4A373) !important;
  color: #26170E !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 0.1rem 0.45rem !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* استجابة الموبايل والشاشات الصغيرة */
@media (max-width: 768px) {
  .bottom-nav {
    display: none !important;
  }

  .glass-navbar .nav-cart-btn,
  .glass-navbar .cart-btn {
    display: none !important;
  }

  .floating-nav-container {
    top: 10px !important;
    padding: 0 0.5rem !important;
  }

  body.has-floating-nav:not(.home-page),
  body:has(.floating-nav-container):not(:has(.hero-section)) {
    padding-top: 72px !important;
  }

  /* Drawer Mobile Optimizations - Keep maximum height for products */
  .drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 100005 !important;
  }

  .drawer-head {
    padding: 0.6rem 0.85rem !important;
  }

  .drawer-body {
    padding: 0.5rem 0.75rem !important;
  }

  .line {
    padding-block: 0.45rem !important;
    gap: 0.25rem 0.65rem !important;
  }

  .drawer-foot {
    padding: 0.55rem 0.75rem !important;
  }

  .totals {
    margin: 0 0 0.35rem !important;
  }

  .btn-send {
    padding: 0.65rem 0.9rem !important;
    font-size: 0.95rem !important;
  }

  /* Modal Mobile Optimizations */
  .pn-modal-overlay {
    padding: 0.65rem !important;
    z-index: 100010 !important;
  }

  .pn-modal-box {
    width: 100% !important;
    max-height: 86vh !important;
    max-height: 86dvh !important;
    border-radius: 16px !important;
  }
}

/* ==========================================================
   PN Tech Shimmer Skeleton Loading
   ========================================================== */
@keyframes pnShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-card {
  pointer-events: none !important;
  user-select: none !important;
  background: var(--surface, #ffffff) !important;
  border: 1px solid var(--border-light, #e8dfc8) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 290px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pnShimmer 1.5s infinite ease-in-out;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pnShimmer 1.5s infinite ease-in-out;
}

.skeleton-line.title {
  width: 85%;
  height: 14px;
  margin-top: 4px;
}

.skeleton-line.sub {
  width: 55%;
  height: 10px;
}

.skeleton-line.price {
  width: 45%;
  height: 16px;
}

.skeleton-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.skeleton-btn {
  width: 55px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pnShimmer 1.5s infinite ease-in-out;
}