/* ============================================================
   OlympicGuru – shop.css
   Shared UI + shop‑specific styles
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #5b5b5b;
  --border: #e7e7e7;
  --accent: #ff5a1f;
  --accent-hover: #e64a10;
  --success: #16a34a;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .18);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .5px;
  margin: 0 0 .5rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 .8rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: #0a0a0a;
  color: #fff;
  font-size: .82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
}

.topbar a {
  color: #fff;
  margin-right: 14px;
  opacity: .9;
}

.topbar a:hover {
  opacity: 1;
  color: var(--accent);
}

.topbar-center {
  color: #fff;
}

@media (max-width: 820px) {

  .topbar-left a:nth-child(2),
  .topbar-right {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--text);
}

.search {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--text);
  font-size: .95rem;
  transition: border .2s, background .2s, box-shadow .2s;
}

.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
  transition: background .2s, color .2s, transform .15s;
}

.hdr-action:hover {
  background: #f1f1f1;
  color: var(--accent);
  transform: translateY(-1px);
}

.hdr-action i {
  font-size: 1.1rem;
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Desktop nav */
.nav {
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 12px 20px;
}

.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 82%;
  max-width: 340px;
  background: #fff;
  z-index: 90;
  padding: 18px;
  transition: left .35s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-head button {
  font-size: 1.4rem;
}

.mobile-nav li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 90, 31, .3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ===== Drawers ===== */
.drawer {
  position: fixed;
  top: 0;
  right: -110%;
  height: 100vh;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  z-index: 95;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right .4s cubic-bezier(.22, .61, .36, 1);
}

.drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.drawer-head h3 i {
  color: var(--accent);
  margin-right: 6px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  color: var(--text);
  transition: background .2s, color .2s, transform .15s;
}

.drawer-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
}

/* Auth pane */
.auth-pane {
  animation: fadeIn .3s ease both;
}

.auth-pane.hidden {
  display: none;
}

.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 0 0 4px;
}

.auth-sub {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field>span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  background: #fafafa;
  transition: border .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.auth-row {
  display: flex;
  justify-content: flex-end;
}

.link-muted {
  color: var(--text-muted);
  font-size: .85rem;
}

.link-muted:hover {
  color: var(--accent);
}

.link-strong {
  color: var(--accent);
  font-weight: 600;
}

.auth-foot {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .9rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cart */
.cart-body {
  padding-bottom: 10px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: fadeIn .25s ease both;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f4f4f4;
  display: grid;
  place-items: center;
  color: #b8b8b8;
  font-size: 1.6rem;
}

.cart-item-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.cart-item-info .price-now {
  font-size: .95rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}

.qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #fafafa;
  color: var(--text);
  font-weight: 700;
  transition: background .15s;
}

.qty button:hover {
  background: var(--accent);
  color: #fff;
}

.qty span {
  min-width: 26px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
}

.cart-item-remove {
  align-self: start;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color .2s;
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafafa;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
  color: var(--text);
}

.cart-line.total {
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.cart-footer .btn {
  margin-top: 4px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Floating buttons ===== */
.float-stack {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .2s, background .2s;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.back-to-top {
  background: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .2s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp {
  background: var(--whatsapp);
  animation: waPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== Responsive header ===== */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .hdr-action-label {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas: "logo actions" "search search";
    row-gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .header-actions {
    grid-area: actions;
  }

  .search {
    grid-area: search;
    max-width: 100%;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  color: #d4d4d4;
  padding: 60px 0 20px;
}

.footer h3,
.footer h4 {
  color: #fff;
}

.footer p,
.footer a,
.footer li {
  color: #b0b0b0;
}

.footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .9rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c1c1c;
  display: grid;
  place-items: center;
  transition: background .2s, transform .15s;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #1c1c1c;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
}

.legal-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   SHOP‑PAGE SPECIFIC STYLES
   ============================================================ */

/* Breadcrumb (used inside shop-hero) */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: .9rem;
  color: var(--text-muted);
}

.breadcrumb ul {
  display: flex;
  gap: 8px;
}

.breadcrumb li+li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Shop Toolbar */
.shop-toolbar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-count {
  font-size: .92rem;
  color: var(--text-muted);
}

.product-count strong {
  color: var(--text);
}

.filter-toggle {
  display: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  gap: 6px;
}

.filter-toggle:hover {
  background: var(--accent-hover);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-shop {
  position: relative;
  display: flex;
  align-items: center;
}

.search-shop i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-shop input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  background: #f5f5f5;
  width: 200px;
  transition: border .2s, background .2s, box-shadow .2s;
}

.search-shop input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.sort-wrapper select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f5f5;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.sort-wrapper select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 30px 0;
}

/* Filter Sidebar (Desktop) */
.filter-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group h3 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.filter-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d6d6d6;
}

.product-img {
  position: relative;
  aspect-ratio: 1/1;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
}

//new rule 

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
  padding: 4px;
}

.product-icon {
  font-size: 4rem;
  color: #b8b8b8;
  transition: transform .3s, color .3s;
}

.product-card:hover .product-icon {
  color: var(--accent);
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--text);
  color: #fff;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .5px;
}

.badge.sale {
  background: var(--accent);
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: color .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}

.wish-btn:hover {
  color: var(--accent);
  transform: scale(1.08);
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.prod-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.prod-name {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.stars {
  color: #f5a623;
  font-size: .85rem;
}

.stars span {
  color: var(--text-muted);
  margin-left: 4px;
  font-size: .78rem;
}

.prod-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-now {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: .82rem;
}

.btn-add {
  background: var(--text);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s, transform .15s;
}

.btn-add:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Quick View (shown on product-card hover) */
.product-card .quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .3s;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ===== MODAL (Quick View) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 150;
  display: none;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: grid;
}

.modal {
  background: #fff;
  max-width: 580px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn .3s ease both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f4;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, transform .15s;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-body .product-icon {
  font-size: 6rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-body .prod-name {
  font-size: 1.4rem;
}

.modal-body .price-now {
  font-size: 1.3rem;
}

.modal-body .btn-add {
  font-size: 1rem;
  padding: 12px 20px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}

.pagination button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination button:disabled {
  opacity: .4;
  pointer-events: none;
}

/* ===== Filter Drawer (Mobile) ===== */
.drawer-filter .filter-drawer-body .filter-group {
  margin-bottom: 24px;
}

.drawer-filter .filter-drawer-body .filter-group h3 {
  font-size: 1rem;
}

.drawer-filter .filter-drawer-body .filter-group label {
  font-size: .95rem;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto;
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: #eee;
  border-radius: var(--radius);
  animation: shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-img {
  aspect-ratio: 1/1;
  background: #e0e0e0;
}

.skeleton-text {
  height: 12px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 6px 0;
}

.skeleton-text.w70 {
  width: 70%;
}

.skeleton-text.w50 {
  width: 50%;
}

.skeleton-btn {
  height: 34px;
  background: #e0e0e0;
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-body {
    padding: 10px;
    gap: 6px;
  }

  .prod-name {
    font-size: .88rem;
  }

  .product-icon {
    font-size: 3rem;
  }

  .btn-add {
    font-size: .75rem;
    padding: 8px 10px;
  }

  .toolbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-shop input {
    width: 100%;
  }

  .sort-wrapper select {
    width: 100%;
  }

  .toolbar-left {
    flex-wrap: wrap;
  }

  .breadcrumb {
    font-size: .8rem;
  }

  .modal {
    padding: 20px;
  }

  .product-card .quick-view-btn {
    display: none;
  }

  /* mobile: shown below add-to-cart via JS */
}

/* ============================================================
   SHOP HERO — premium banner (replaces old .shop-banner)
   ============================================================ */
.shop-banner {
  display: none;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  isolation: isolate;
}

.shop-hero-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 22vw, 18rem);
  letter-spacing: .08em;
  color: #000;
  opacity: .035;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.shop-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0, 0, 0, .05) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 78%, rgba(0, 0, 0, .05) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .012) 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

.shop-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shop-hero .breadcrumb {
  padding: 0;
  margin-bottom: 6px;
}

.shop-hero .breadcrumb ul {
  justify-content: center;
}

.shop-hero-eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0 14px;
}

.shop-hero-eyebrow::before,
.shop-hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 12px;
}

.shop-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: .04em;
  line-height: 1;
  margin: 4px 0 2px;
  color: var(--text);
}

.shop-hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
}

.shop-hero-lede {
  font-size: .98rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin: 6px auto 0;
}

.shop-hero-divider {
  width: 56px;
  height: 2px;
  background: var(--text);
  margin-top: 18px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .shop-hero {
    padding: 40px 0 32px;
  }

  .shop-hero-inner {
    gap: 10px;
    padding: 0 18px;
  }

  .shop-hero-eyebrow::before,
  .shop-hero-eyebrow::after {
    width: 18px;
    margin: 0 8px;
  }

  .shop-hero-lede {
    font-size: .92rem;
  }
}

/* ===== Mobile menu interaction polish ===== */
.mobile-menu {
  will-change: transform;
}

.mobile-nav li a {
  transition: color .2s ease, padding-left .2s ease;
}

.mobile-nav li a:hover,
.mobile-nav li a:focus-visible {
  color: var(--accent);
  padding-left: 6px;
}

.mobile-dropdown {
  position: relative;
  list-style: none;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-toggle a {
  flex-grow: 1;
  border-bottom: none !important;
}

.submenu-toggle-btn {
  background: transparent;
  border: none;
  padding: 14px;
  cursor: pointer;
  color: var(--text-muted);
}



.mobile-submenu li a {
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: none !important;
  display: block;
  text-decoration: none;
}

.mobile-subitem>a,
.mobile-category-toggle a {
  padding-left: 18px;
  font-size: 0.98rem;
}

.mobile-nested-submenu {
  padding-left: 18px;
  background: #fff;
}

.mobile-nested-submenu li a {
  padding-left: 18px;
  font-size: 0.9rem;
}

body.menu-open {
  overflow: hidden;
}

/* Better focus rings */
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Guarantee no horizontal scroll on mobile */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== Desktop Dropdown Shop Navigation ===== */
.nav-list li.has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border: 1px solid var(--border);
  margin-top: 4px;
}

/* Show dropdown on hover OR JS */
.has-dropdown:hover>.nav-dropdown,
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown {
  z-index: 9999;
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
}

.dd-item {
  position: relative;
}

.dd-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dd-link:hover {
  background: #f8f8f8;
  color: var(--accent);
  padding-left: 24px;
}

.dd-sub {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

  opacity: 0;
  visibility: hidden;
  transition: .2s;
}

.dd-item:hover>.dd-sub,
.dd-sub.open {
  opacity: 1;
  visibility: visible;
}

.dd-sub-link {
  display: block;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dd-sub-link:hover {
  background: #f8f8f8;
  color: var(--accent);
  padding-left: 24px;
}

.has-dropdown>.nav-link::after {
  display: none;
}

/* Mobile submenu */
.mobile-dropdown {
  position: relative;
  list-style: none;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-toggle a {
  flex-grow: 1;
  border-bottom: none !important;
  text-decoration: none;
  color: var(--text);
}

.submenu-toggle-btn {
  background: transparent;
  border: none;
  padding: 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.submenu-toggle-btn:hover {
  color: var(--accent);
}

.mobile-submenu {
  list-style: none;
  padding-left: 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.mobile-submenu[hidden] {
  display: none !important;
}

.mobile-submenu:not([hidden]) {
  display: block !important;
}

.mobile-submenu li a {
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: none !important;
  display: block;
  text-decoration: none;
}

.mobile-subitem>a,
.mobile-category-toggle a {
  padding-left: 18px;
  font-size: 0.98rem;
}

.mobile-nested-submenu {
  padding-left: 18px;
  background: #fff;
}

.mobile-nested-submenu li a {
  padding-left: 18px;
  font-size: 0.9rem;
}

.mobile-submenu li a:hover {
  color: var(--accent);
}



/* Prevent background scrolling when a drawer/menu is open */
body:has(.drawer.open),
body:has(.mobile-menu.open) {
  overflow: hidden;
}

/* ===== Final mobile submenu visibility rules ===== */
.mobile-submenu {
  list-style: none;
  padding-left: 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.mobile-submenu[hidden] {
  display: none !important;
}

.mobile-submenu:not([hidden]) {
  display: block !important;
}

.mobile-sub-submenu[hidden] {
  display: none !important;
}

.mobile-sub-submenu:not([hidden]) {
  display: block !important;
}


/* ===== Mobile Menu Toggle Improvements ===== */

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.submenu-toggle-btn,
.mobile-sub-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  transition: .25s;
}

.submenu-toggle-btn:hover,
.mobile-sub-toggle:hover {
  background: #f4f4f4;
}

.submenu-toggle-btn i,
.mobile-sub-toggle i {
  transition: transform .25s ease;
}

.submenu-toggle-btn[aria-expanded="true"] i,
.mobile-sub-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-submenu {
  overflow: hidden;
  transition: all .3s ease;
}

.mobile-submenu[hidden] {
  display: none !important;
}

#wishlistBtn i,
#galleryWishBtn i,
#wishlist-btn i {
  transition: transform .25s ease, color .25s ease;
}

#wishlistBtn:hover i,
#galleryWishBtn:hover i,
#wishlist-btn:hover i {
  transform: scale(1.15);
}

#wishlistBtn .fas.fa-heart,
#galleryWishBtn .fas.fa-heart,
#wishlist-btn .fas.fa-heart {
  color: #ff3b3b;
}

.price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 15px;
}

.discount-percent {
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
}
