/* ============================================
   SHEHUTEX v2 — Orange Theme
   Mobile-first, clean ecommerce design
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #151515;
  --white: #ffffff;
  --warm-bg: #FAF7F2;
  --warm-section: #F5F0E8;
  --warm-card: #FFFFFF;
  --warm-border: #E8E1D8;
  --gray-50: #f9f7f4;
  --gray-100: #f0ece6;
  --gray-200: #e4ddd5;
  --gray-400: #9ca3af;
  --gray-500: #6B7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FFF3E8;
  --green: #22c55e;
  --green-light: #dcfce7;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --header-h: 98px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--black); background: var(--warm-bg); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============= UTILITIES ============= */
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.page-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin: 28px 0 20px; }

/* ============= ANNOUNCEMENT BAR ============= */
.announce-bar {
  background: var(--black); color: white;
  padding: 8px 0; font-size: 12px; text-align: center;
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.announce-bar span { display: flex; align-items: center; gap: 6px; opacity: 0.9; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 8px rgba(249,115,22,0.18); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 6px 20px rgba(249,115,22,0.28); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: white; transform: translateY(-1px); }
.btn-outline-orange { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline-orange:hover { background: var(--accent); color: white; transform: translateY(-1px); }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #dc2626; }
.btn-whatsapp { background: #25d366; color: white; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 50px; letter-spacing: 0.2px; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============= FLASH ============= */
.flash { padding: 12px 20px; border-radius: var(--radius-sm); margin: 12px 0; font-weight: 500; font-size: 14px; }
.flash-success { background: var(--green-light); color: #166534; border-left: 4px solid var(--green); }
.flash-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--red); }
.form-error { color: var(--red); font-size: 13px; padding: 10px 14px; background: #fee2e2; border-radius: var(--radius-sm); margin: 8px 0; }

/* ============= HEADER ============= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--warm-border);
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-top {
  display: flex; align-items: center; gap: 16px; padding: 0;
  min-height: 72px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 72px; width: auto; object-fit: contain; }
.logo-fallback { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--black); }
.logo-fallback span { color: var(--accent); }

.header-search {
  flex: 1; max-width: 520px; display: flex;
  border: 1.5px solid var(--warm-border); border-radius: 50px; overflow: hidden;
  background: var(--warm-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.header-search input { flex: 1; padding: 10px 20px; border: none; outline: none; font-size: 14px; background: transparent; }
.header-search button {
  padding: 0 20px;
  background: var(--accent); border: none; color: white;
  font-weight: 600; font-size: 14px;
  transition: background var(--transition);
  border-radius: 0 50px 50px 0;
}
.header-search button:hover { background: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: background var(--transition); }
.nav-link:hover { background: var(--gray-100); }
.nav-offer { color: var(--accent); font-weight: 700; }

.cart-btn {
  position: relative; display: flex; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm); transition: background var(--transition); gap: 6px;
}
.cart-btn:hover { background: var(--gray-100); }
.cart-label { font-size: 13px; font-weight: 600; }
.cart-count {
  position: absolute; top: -1px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: white; border-radius: 50%;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* .mobile-menu-btn — full styles in MEGA-MENU SYSTEM block */

/* Cat nav row — full styles in MEGA-MENU SYSTEM block below */

/* Mobile nav — base rules (full styles in MEGA-MENU section below) */
/* .mobile-nav rules are defined later in the MEGA-MENU SYSTEM block */

/* ============= HERO SLIDER ============= */
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0)   translateY(0); }
  50%  { transform: scale(1.08) translateX(-1%) translateY(-0.5%); }
  100% { transform: scale(1.12) translateX(1%)  translateY(-1%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-slider {
  position: relative; overflow: hidden;
  height: 580px; background: var(--black); user-select: none;
}
@media (max-width: 768px) { .hero-slider { height: 420px; } }
@media (max-width: 480px) { .hero-slider { height: 340px; } }

/* Slide */
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.hs-slide--active  { opacity: 1; pointer-events: auto; z-index: 2; }
.hs-slide--leaving { opacity: 0; z-index: 1; }

/* Background image with Ken Burns */
.hs-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform-origin: center center;
}
.hs-bg--animate {
  animation: kenBurns 12s ease-in-out forwards;
}

/* Gradient overlay */
.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.22) 55%,
    rgba(249,115,22,0.08) 100%
  );
}

/* Particle canvas */
.hs-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* Content */
.hs-content {
  position: relative; z-index: 3;
  height: 100%; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 7%;
  max-width: 760px;
}
.hs-slide--active .hs-content--in .hs-tag,
.hs-slide--active .hs-content--in .hs-title,
.hs-slide--active .hs-content--in .hs-sub,
.hs-slide--active .hs-content--in .hs-actions { opacity: 0; }

.hs-tag {
  display: inline-block; background: var(--accent);
  color: white; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
  opacity: 0;
}
.hs-content--in .hs-tag {
  animation: fadeUp 0.5s ease 0.1s both;
}

.hs-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900; color: white; line-height: 1.1;
  margin-bottom: 16px; opacity: 0;
}
.hs-title span { color: var(--accent); }
.hs-content--in .hs-title {
  animation: fadeUp 0.6s ease 0.25s both;
}

.hs-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82); margin-bottom: 36px;
  max-width: 520px; opacity: 0;
}
.hs-content--in .hs-sub {
  animation: fadeUp 0.6s ease 0.4s both;
}

.hs-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.hs-content--in .hs-actions {
  animation: slideInRight 0.6s ease 0.55s both;
}

/* Arrow buttons */
.hs-btn-prev,
.hs-btn-next {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  color: white; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.hs-btn-prev { left: 20px; }
.hs-btn-next { right: 20px; }
.hs-btn-prev:hover,
.hs-btn-next:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.08);
}
@media (max-width: 480px) {
  .hs-btn-prev { left: 8px; width: 40px; height: 40px; font-size: 18px; }
  .hs-btn-next { right: 8px; width: 40px; height: 40px; font-size: 18px; }
}

/* Dots */
.hs-dots {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.hs-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.hs-dot--active {
  background: var(--accent);
  transform: scale(1.35);
}

/* Progress bar */
.hs-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--accent); z-index: 10;
  width: 0%;
  animation: hsProgress 5s linear infinite;
}
@keyframes hsProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============= SECTIONS ============= */
.section { padding: 60px 0; background: var(--warm-bg); }
.section-gray { background: var(--warm-section); }
.section-orange { background: var(--accent-light); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 800; }
.section-link { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* Mobile search */
.mobile-search-section { display: none; padding: 16px 0; background: var(--gray-50); }
.mobile-search-form { display: flex; border: 2px solid var(--gray-200); border-radius: 50px; overflow: hidden; background: white; }
.mobile-search-form input { flex: 1; padding: 12px 20px; border: none; outline: none; font-size: 15px; }
.mobile-search-form button { padding: 12px 22px; background: var(--accent); color: white; border: none; font-weight: 700; }

/* ============= CATEGORIES ============= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 14px; border: 1px solid var(--warm-border); border-radius: 16px;
  text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-700);
  transition: all 0.22s ease; cursor: pointer; background: var(--warm-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.category-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(249,115,22,0.12);
  transform: translateY(-2px);
}
.category-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light);
  border-radius: 14px;
  color: var(--accent);
  transition: background 0.22s ease;
}
.category-card:hover .category-icon { background: rgba(249,115,22,0.18); }

/* ============= PRODUCT CARDS ============= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.product-card {
  background: var(--warm-card); border: 1px solid var(--warm-border); border-radius: 16px;
  overflow: hidden; transition: all 0.22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.product-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.10);
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.2);
}

.product-card-img-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden; display: block; background: var(--warm-bg);
}
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

.product-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--warm-bg); }
.product-no-img.large { min-height: 400px; }
.product-no-img.small { width: 72px; height: 72px; border-radius: 8px; flex-shrink: 0; }

.badge {
  position: absolute; padding: 4px 10px; border-radius: 50px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1;
}
.badge-offer { background: linear-gradient(135deg, #FF6B35, var(--accent)); color: white; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(249,115,22,0.3); }
.badge-new { background: var(--black); color: white; top: 10px; right: 10px; }
.badge-out { background: var(--gray-400); color: white; top: 10px; left: 10px; }
.badge-stock { background: var(--green-light); color: #166534; position: static; }
.badge-pct { background: linear-gradient(135deg, #FF6B35, var(--accent)); color: white; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; box-shadow: 0 1px 6px rgba(249,115,22,0.25); }

.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.product-card-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--gray-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-name:hover { color: var(--accent); }
.product-card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.price-current { font-size: 17px; font-weight: 800; color: var(--accent); letter-spacing: -0.3px; }
.price-old { font-size: 12.5px; color: var(--gray-400); text-decoration: line-through; }

/* ============= PRODUCTS PAGE ============= */
.products-page { display: flex; gap: 28px; padding: 28px 0 48px; align-items: flex-start; }

.filters-sidebar {
  width: 230px; flex-shrink: 0; background: var(--warm-card);
  border: 1px solid var(--warm-border); border-radius: 16px; padding: 20px;
  position: sticky; top: 80px;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filters-header h3 { font-size: 15px; font-weight: 800; }
.clear-filters { font-size: 12px; color: var(--accent); font-weight: 700; }
.clear-filters:hover { text-decoration: underline; }

.filter-group { margin-bottom: 18px; border-bottom: 1px solid var(--gray-100); padding-bottom: 14px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-400); margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.filter-check:hover { color: var(--accent); }
.filter-check input { cursor: pointer; accent-color: var(--accent); }

.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input { flex: 1; min-width: 0; padding: 7px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13px; }
.price-range input:focus { outline: none; border-color: var(--accent); }

.products-main { flex: 1; min-width: 0; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 14px; color: var(--gray-600); }
.sort-select { padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; background: white; cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--accent); }

.mobile-filter-btn { display: none; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: white; font-size: 13px; font-weight: 700; }

.no-results { text-align: center; padding: 72px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.no-results h3 { font-size: 1.25rem; }
.no-results p { color: var(--gray-600); }

/* ============= PRODUCT DETAIL ============= */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--gray-400); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--black); font-weight: 600; }
.breadcrumb-sep { color: var(--gray-200); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 64px; }

.product-images {}
.product-main-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--gray-50); cursor: zoom-in; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-main-img:hover img { transform: scale(1.04); }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.thumb.active, .thumb:hover { border-color: var(--accent); }

.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.product-title { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 900; line-height: 1.15; }
.product-category-tag { font-size: 13px; }
.product-category-tag a { color: var(--accent); font-weight: 600; }
.product-category-tag a:hover { text-decoration: underline; }

.product-price-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-big { font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.price-old-big { font-size: 1.2rem; color: var(--gray-400); text-decoration: line-through; }
.price-save { background: var(--accent); color: white; padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 800; }

.product-description { color: var(--gray-600); line-height: 1.75; font-size: 15px; }
.product-dims { background: var(--gray-50); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.product-dims strong { color: var(--black); }

.option-group { display: flex; flex-direction: column; gap: 10px; }
.option-group label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-600); }
.size-options, .color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn, .color-btn {
  padding: 7px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; background: white; transition: all var(--transition);
}
.size-btn:hover, .color-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.active, .color-btn.active { border-color: var(--accent); background: var(--accent); color: white; }

.qty-selector { display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-selector button { width: 40px; height: 42px; border: none; background: var(--gray-100); font-size: 20px; font-weight: 300; transition: background var(--transition); }
.qty-selector button:hover { background: var(--gray-200); }
.qty-selector input { width: 54px; height: 42px; border: none; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 140px; }

.product-trust { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.product-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-600); }
.product-trust-item span { font-size: 18px; }

/* Tabs */
.product-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; gap: 0; }
.tab-btn { padding: 12px 24px; font-size: 14px; font-weight: 700; border: none; background: none; cursor: pointer; color: var(--gray-400); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--accent); }
.tab-content { display: none; line-height: 1.8; color: var(--gray-600); }
.tab-content.active { display: block; }

/* ============= CART ============= */
.cart-page { padding: 24px 0 80px; }
.cart-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); margin-bottom: 18px; }
.cart-breadcrumb a { color: var(--gray-500); } .cart-breadcrumb a:hover { color: var(--accent); }
.cart-page-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 24px; color: var(--black); }

/* ── Main layout ── */
.cart-wrap { display: flex; gap: 24px; align-items: flex-start; }
.cart-main { flex: 1; min-width: 0; }

/* ── Table header (desktop) ── */
.cart-table-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 18px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--gray-500); border-bottom: 2px solid var(--warm-border);
  margin-bottom: 4px;
}
.cth-product { flex: 1; min-width: 0; }
.cth-price  { width: 150px; text-align: left; }
.cth-qty    { width: 110px; text-align: center; }
.cth-total  { width: 90px;  text-align: right; }
.cth-del    { width: 40px;  text-align: center; }
.cth-clear-btn {
  background: none; border: none; color: var(--gray-500); cursor: pointer; padding: 4px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.cth-clear-btn:hover { color: #dc2626; background: #fef2f2; }

/* ── Cart row (each product) ── */
.cart-row {
  display: flex; align-items: center; gap: 8px; padding: 16px 18px;
  border: 1px solid var(--warm-border); border-radius: 12px;
  background: var(--warm-card); margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-row:hover { border-color: rgba(249,115,22,0.22); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }

/* Product column */
.cr-product { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.cr-img {
  width: 88px; height: 88px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; background: var(--warm-bg);
}
.cr-img img { width: 100%; height: 100%; object-fit: cover; }
.cr-img-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cr-info    { min-width: 0; }
.cr-name    { font-weight: 700; font-size: 14px; color: var(--black); display: block; line-height: 1.45; margin-bottom: 4px; }
.cr-name:hover { color: var(--accent); }
.cr-sku     { font-size: 12px; color: var(--gray-500); }

/* Price column */
.cr-price { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-price-now  { font-size: 15px; font-weight: 800; color: var(--black); }
.cr-price-was  { font-size: 12px; color: var(--gray-500); text-decoration: line-through; }
.cr-price-save { font-size: 11px; font-weight: 600; color: var(--accent); }

/* Qty column */
.cr-qty { width: 110px; flex-shrink: 0; display: flex; justify-content: center; }
.qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--warm-border); border-radius: 50px;
  background: var(--warm-bg); overflow: hidden;
}
.qty-btn {
  width: 34px; height: 34px; background: none; border: none;
  font-size: 18px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.qty-btn:hover { background: var(--accent-light); color: var(--accent); }
.qty-num { min-width: 30px; text-align: center; font-size: 14px; font-weight: 700; color: var(--black); }

/* Total column */
.cr-total { width: 90px; flex-shrink: 0; text-align: right; font-size: 15px; font-weight: 800; color: var(--black); }

/* Delete button */
.cr-del {
  width: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray-400); padding: 8px; border-radius: 8px;
  cursor: pointer; transition: color 0.15s, background 0.15s;
}
.cr-del:hover { color: #dc2626; background: #fef2f2; }

.cart-continue-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--gray-500); transition: color 0.2s;
}
.cart-continue-link:hover { color: var(--accent); }

/* Trust bar */
.cart-trust-bar {
  display: flex; gap: 0; margin-top: 24px;
  border: 1px solid var(--warm-border); border-radius: 12px;
  overflow: hidden; background: var(--warm-card);
}
.ctb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 16px 10px;
  font-size: 12px; font-weight: 600; color: var(--gray-700); text-align: center;
  border-right: 1px solid var(--warm-border);
}
.ctb-item:last-child { border-right: none; }
.ctb-item span:first-child { font-size: 20px; }

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 80px 20px;
}
.cart-empty h3 { font-size: 1.3rem; font-weight: 700; color: var(--black); }
.cart-empty p  { color: var(--gray-500); font-size: 14px; }

/* ── Right side: coupon + summary ── */
.cart-side {
  width: 360px; flex-shrink: 0;
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 12px;
}

/* Coupon card */
.coupon-card {
  background: var(--warm-card); border: 1px solid var(--warm-border);
  border-radius: 14px; padding: 18px 20px;
}
.coupon-label { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 10px; }
.coupon-row   { display: flex; gap: 8px; }
.coupon-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--warm-border); border-radius: 8px;
  font-size: 13px; background: var(--warm-bg); color: var(--black);
  transition: border-color 0.2s;
}
.coupon-input:focus { outline: none; border-color: var(--accent); }
.coupon-btn {
  padding: 10px 16px; background: var(--black); color: white;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.coupon-btn:hover { background: var(--accent); }
.coupon-msg { font-size: 12px; font-weight: 600; margin-top: 8px; padding: 8px 10px; border-radius: 6px; }
.coupon-msg--error   { background: #fef2f2; color: #dc2626; }
.coupon-msg--success { background: #f0fdf4; color: #15803d; }

/* Summary card */
.cart-summary-card {
  background: var(--warm-card); border: 1px solid var(--warm-border);
  border-radius: 14px; padding: 20px 22px;
}
.csc-title { font-size: 1.05rem; font-weight: 800; color: var(--black); margin-bottom: 16px; }

.csc-rows { display: flex; flex-direction: column; border-top: 1px solid var(--warm-border); }
.csc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--warm-border);
  font-size: 14px; color: var(--gray-700);
}
.csc-row:last-child { border-bottom: none; }
.csc-row--discount  { color: #16a34a; }
.csc-val-old        { text-decoration: line-through; color: var(--gray-500); font-size: 13px; }
.csc-val-bold       { font-weight: 700; color: var(--black); }
.csc-val-free       { font-weight: 600; color: #16a34a; }
.csc-val-green      { font-weight: 700; color: #16a34a; }

.csc-savings {
  margin-top: 12px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 9px 12px;
  font-size: 12px; font-weight: 600; color: #15803d;
}
.csc-upsell {
  margin-top: 8px; background: var(--accent-light); border: 1px solid #fed7aa;
  border-radius: 8px; padding: 9px 12px;
  font-size: 12px; font-weight: 600; color: var(--accent-dark);
}

.csc-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 10px; margin-top: 10px; border-top: 2px solid var(--warm-border);
  font-size: 15px; font-weight: 900; color: var(--black);
}
.csc-total-val { font-size: 20px; font-weight: 900; color: var(--accent); }

.csc-checkout-btn {
  display: block; width: 100%; text-align: center; margin: 14px 0 10px;
  padding: 14px 20px; background: var(--accent); color: white;
  border: none; border-radius: 50px; font-size: 14px; font-weight: 800;
  letter-spacing: 0.5px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.csc-checkout-btn:hover {
  background: #ea6500; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}
.csc-payment-note {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; color: var(--gray-500); text-align: center;
}

/* Recommendations section */
.cart-recs { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--warm-border); }
.cart-recs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cart-recs-title { font-size: 1rem; font-weight: 700; color: var(--black); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cart-wrap { flex-direction: column; }
  .cart-side { width: 100%; position: static; }
  .cth-price, .cth-total { display: none; }
  .cr-price { display: none; }
  .cr-total { display: none; }
  .cth-qty { width: auto; flex: 1; }
  .cr-qty  { width: auto; flex: 1; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .cart-table-head { display: none; }
  .cart-row { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .cr-product { flex: 1 1 100%; }
  .cr-img { width: 72px; height: 72px; }
  .cr-qty { width: auto; }
  .cr-total { font-size: 14px; margin-left: auto; }
  .cart-trust-bar { flex-wrap: wrap; }
  .ctb-item { flex: 1 1 48%; border-right: none; border-bottom: 1px solid var(--warm-border); }
  .ctb-item:last-child { border-bottom: none; }
}

/* ============= CHECKOUT ============= */
/* ── Progress bar ── */
.co-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); margin: 20px 0 4px; }
.co-breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.co-breadcrumb a:hover { color: var(--accent); }
.co-breadcrumb span { color: var(--gray-300); }

.co-progress { display: flex; align-items: center; margin: 8px 0 32px; max-width: 420px; }
.co-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.co-step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--warm-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gray-400); background: var(--warm-card); transition: all 0.2s; }
.co-step-label { font-size: 11px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.co-step--done .co-step-num { background: var(--accent); border-color: var(--accent); color: white; }
.co-step--done .co-step-label { color: var(--accent); font-weight: 700; }
.co-step--active .co-step-num { background: white; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(249,115,22,0.12); }
.co-step--active .co-step-label { color: var(--black); font-weight: 800; }
.co-step-line { flex: 1; height: 2px; background: var(--warm-border); margin: 0 8px; margin-bottom: 18px; }
.co-step-line--done { background: var(--accent); }

/* ── Layout ── */
.co-layout { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 64px; }
.co-form-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.co-summary-panel { width: 350px; flex-shrink: 0; position: sticky; top: 90px; }

/* ── Section cards ── */
.co-section { background: var(--warm-card); border: 1px solid var(--warm-border); border-radius: 14px; padding: 20px 22px; }
.co-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gray-600); margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.co-section-title svg { color: var(--accent); flex-shrink: 0; }

/* ── Customer type toggle ── */
.ctype-toggle { display: flex; border: 1.5px solid var(--warm-border); border-radius: 50px; overflow: hidden; background: var(--warm-bg); }
.ctype-btn { flex: 1; padding: 10px 20px; border: none; background: transparent; font-size: 14px; font-weight: 700; color: var(--gray-500); cursor: pointer; transition: all 0.2s; border-radius: 50px; }
.ctype-btn.active { background: var(--accent); color: white; box-shadow: 0 2px 10px rgba(249,115,22,0.35); }
.ctype-btn:hover:not(.active) { color: var(--black); }

/* ── Form groups ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; color: var(--gray-600); }
.req { color: var(--red); font-weight: 900; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--warm-border); border-radius: 10px;
  font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; background: var(--warm-bg); color: var(--black);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); background: white; }
.form-group small { font-size: 12px; color: var(--gray-400); margin-top: 4px; display: block; }
.co-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row-3 { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 12px; }
.co-optional-label { font-size: 12px; color: var(--gray-400); font-weight: 600; margin: 4px 0 12px; }

/* ── Invoice checkbox ── */
.co-checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; background: var(--accent-light); border-radius: 10px; margin-top: 8px; cursor: pointer; border: 1px solid rgba(249,115,22,0.2); }
.co-checkbox-wrap input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.co-checkbox-wrap span { font-size: 13px; font-weight: 600; color: var(--gray-700); line-height: 1.4; }

/* ── Payment options ── */
.co-pay-opts { display: flex; flex-direction: column; gap: 10px; }
.co-pay-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--warm-border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.co-pay-opt:hover { border-color: var(--accent); }
.co-pay-opt.selected { border-color: var(--accent); background: var(--accent-light); }
.co-pay-opt input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.co-pay-opt--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.co-coming-soon { display: inline-block; background: var(--gray-200); color: var(--gray-600); padding: 2px 8px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-left: 6px; vertical-align: middle; }
.co-pay-opt-icon { width: 38px; height: 38px; background: var(--warm-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-500); }
.co-pay-opt.selected .co-pay-opt-icon { background: white; color: var(--accent); }
.co-pay-opt-info { flex: 1; }
.co-pay-opt-title { font-size: 14px; font-weight: 700; color: var(--black); }
.co-pay-opt-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ── Bank info ── */
.co-bank-info { margin-top: 14px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 16px 18px; }
.co-bank-info-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #0369a1; margin-bottom: 12px; }
.co-bank-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e0f2fe; font-size: 13px; }
.co-bank-row:last-child { border-bottom: none; }
.co-bank-row > span:first-child { color: var(--gray-500); min-width: 90px; flex-shrink: 0; }
.co-bank-row > strong { flex: 1; color: var(--black); font-weight: 700; font-size: 13px; }
.co-bank-copy { background: none; border: 1px solid rgba(249,115,22,0.4); color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; transition: background 0.15s; }
.co-bank-copy:hover { background: rgba(249,115,22,0.1); }

/* ── Submit ── */
.co-submit-btn { width: 100%; padding: 16px; background: var(--accent); color: white; border: none; border-radius: 50px; font-size: 16px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px rgba(249,115,22,0.4); margin-top: 4px; }
.co-submit-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,0.5); }
.co-submit-btn:disabled { background: var(--gray-400); box-shadow: none; transform: none; cursor: not-allowed; }
.co-note { font-size: 12px; color: var(--gray-400); text-align: center; line-height: 1.6; margin-top: 10px; }
.form-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 4px; }
.form-error.visible { display: block; }

/* ── Summary panel ── */
.co-summary-card { background: var(--warm-card); border: 1px solid var(--warm-border); border-radius: 14px; padding: 20px 22px; }
.co-summary-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gray-600); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--warm-border); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--warm-border); }
.co-item:last-child { border-bottom: none; }
.co-item-img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--warm-bg); }
.co-item-img-ph { width: 54px; height: 54px; border-radius: 8px; background: var(--warm-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.co-item-qty { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.co-item-price { font-size: 14px; font-weight: 800; flex-shrink: 0; }
.co-summary-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.co-sr { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-600); }
.co-sr-discount { color: var(--green); font-weight: 600; }
.co-free { color: var(--green); font-weight: 700; }
.co-summary-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; margin-top: 10px; border-top: 2px solid var(--warm-border); font-size: 16px; font-weight: 900; }
.co-summary-total span:last-child { color: var(--accent); font-size: 19px; }
.co-summary-note { margin-top: 12px; font-size: 12px; color: var(--gray-400); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .co-layout { flex-direction: column; }
  .co-summary-panel { width: 100%; position: static; }
}
@media (max-width: 640px) {
  .co-row-2 { grid-template-columns: 1fr; }
  .co-row-3 { grid-template-columns: 1fr; }
  .co-section { padding: 16px; }
}

/* ============= SUCCESS ============= */
.success-page { text-align: center; padding: 64px 20px; max-width: 560px; margin: 0 auto; }
.success-icon { display: flex; justify-content: center; margin-bottom: 24px; }
.success-page h1 { font-size: 1.85rem; font-weight: 900; margin-bottom: 10px; }
.order-number { font-size: 1.15rem; color: var(--accent); font-weight: 800; margin-bottom: 24px; }
.success-message { background: var(--gray-50); border-radius: 14px; padding: 24px; margin-bottom: 24px; text-align: left; }
.success-info { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-weight: 600; }
.success-contact { color: var(--gray-600); margin-bottom: 24px; }
.success-contact a { color: var(--accent); font-weight: 800; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============= WHATSAPP ============= */
.whatsapp-section { background: #f0fdf4; }
.whatsapp-cta { text-align: center; padding: 40px; }
.whatsapp-cta h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.whatsapp-cta p { color: var(--gray-600); margin-bottom: 28px; font-size: 16px; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: #25d366; color: white; border-radius: var(--radius); font-weight: 800; font-size: 17px; transition: background var(--transition); }
.whatsapp-btn:hover { background: #1ebe5d; }

/* ============= FOOTER ============= */
.footer { background: #111; color: white; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; margin-bottom: 44px; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 22px; font-weight: 900; letter-spacing: 2px; margin-bottom: 10px; }
.footer-logo-text span { color: var(--accent); }
.footer-desc { font-size: 13px; opacity: 0.6; line-height: 1.7; }
.footer h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: 0.45; margin-bottom: 14px; }
.footer a, .footer p { display: block; font-size: 14px; opacity: 0.7; margin-bottom: 9px; transition: opacity var(--transition); }
.footer a:hover { opacity: 1; color: var(--accent); }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: white !important; opacity: 1 !important; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; opacity: 0.4; margin: 0; }

/* ============= STICKY CART ============= */
.sticky-cart {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 200;
  background: var(--accent); color: white; width: 58px; height: 58px;
  border-radius: 50%; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4); transition: transform var(--transition);
}
.sticky-cart:hover { transform: scale(1.08); background: var(--accent-dark); }
.sticky-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--black); color: white; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ============= TOAST ============= */
.toast { position: fixed; bottom: 88px; right: 20px; z-index: 300; background: #111; color: white; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-md); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; pointer-events: none; border-left: 4px solid var(--accent); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ============= CART DRAWER ============= */
.cart-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 420px; max-width: 100vw;
  background: var(--white); z-index: 1001;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.14);
}
.cart-drawer.open { transform: translateX(0); }

.cd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--warm-border); flex-shrink: 0;
}
.cd-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.cd-close {
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--gray-500); border-radius: 8px; line-height: 1;
  transition: background var(--transition);
}
.cd-close:hover { background: var(--gray-100); color: var(--black); }

.cd-body {
  flex: 1; overflow-y: auto; padding: 8px 16px;
  display: flex; flex-direction: column;
}
.cd-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; flex: 1; text-align: center; color: var(--gray-500); padding: 40px 20px;
}
.cd-empty p { font-size: 15px; }

.cd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.cd-item-img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.cd-item-img-ph {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.cd-item-info { flex: 1; min-width: 0; }
.cd-item-name { font-weight: 600; font-size: 13px; line-height: 1.4; margin-bottom: 3px; }
.cd-item-meta { font-size: 11px; color: var(--gray-500); }
.cd-item-price { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.cd-item-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; flex-shrink: 0;
}
.cd-qty { display: flex; align-items: center; gap: 4px; }
.cd-qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--warm-border);
  background: var(--white); border-radius: 7px; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cd-qty-btn:hover { background: var(--gray-100); }
.cd-qty-val { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cd-item-total { font-weight: 700; font-size: 14px; color: var(--accent); }
.cd-remove {
  background: none; border: none; color: var(--gray-400);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 0 3px;
  transition: color var(--transition);
}
.cd-remove:hover { color: var(--red); }

.cd-footer {
  padding: 16px 20px; border-top: 1px solid var(--warm-border);
  flex-direction: column; gap: 10px; flex-shrink: 0;
  background: var(--warm-bg);
}
.cd-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px; margin-bottom: 4px;
}
.cd-total-val { color: var(--accent); font-size: 18px; }
.cd-action-btn { width: 100%; text-align: center; }

/* ============= PRODUCTS PAGINATION ============= */
.products-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 32px 0 8px; flex-wrap: wrap;
}
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--warm-border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  background: var(--white); transition: all var(--transition); text-decoration: none;
}
.pp-btn:hover { border-color: var(--accent); color: var(--accent); }
.pp-btn.pp-active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; }
.pp-prev, .pp-next { padding: 0 14px; }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-actions .nav-link { display: none; }
  .sticky-cart { display: flex; }
  .mobile-search-section { display: block; }
  .announce-bar { display: none; }

  .hs-content { padding: 0 5%; }
  .hs-actions { flex-direction: column; align-items: flex-start; }
  .hs-actions .btn { width: 100%; max-width: 260px; }

  .products-page { flex-direction: column; padding-top: 0; }
  .filters-sidebar { width: 100%; position: static; display: none; }
  .filters-sidebar.open { display: block; }
  .mobile-filter-btn { display: flex; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-actions .btn { flex: none; width: 100%; }

  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
  .category-card { padding: 16px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .product-detail { gap: 20px; }
}

/* =============================================
   UI/UX PRO IMPROVEMENTS
   ============================================= */

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--warm-card);
  border-bottom: 1px solid var(--warm-border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 22px;
  border-right: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--warm-bg); }
.trust-item-icon {
  font-size: 22px;
  width: 46px; height: 46px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item-text strong {
  display: block; font-size: 13px; font-weight: 700; color: var(--black); line-height: 1.3;
}
.trust-item-text span { font-size: 12px; color: var(--gray-400); }
@media (max-width: 900px) {
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .trust-item { gap: 10px; padding: 12px; }
  .trust-item-icon { width: 38px; height: 38px; font-size: 18px; }
  .trust-item-text span { display: none; }
}

/* ── ENHANCED CATEGORY CARDS ── */
.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.category-card {
  padding: 28px 14px 20px;
  border-radius: 16px;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); }
.category-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
}
/* Per-category colour scheme — top-level parents */
[data-slug="veshje"]         .category-icon { background: #dbeafe; color: #1d4ed8; }
[data-slug="kepuce"]         .category-icon { background: #e0e7ff; color: #4338ca; }
[data-slug="aksesore"]       .category-icon { background: #f3e8ff; color: #7c3aed; }
[data-slug="kozmetike"]      .category-icon { background: #fce7f3; color: #be185d; }
[data-slug="shtepie"]        .category-icon { background: #dcfce7; color: #16a34a; }
[data-slug="sport"]          .category-icon { background: #fef9c3; color: #ca8a04; }
[data-slug="ofertat"]        .category-icon { background: #fee2e2; color: #dc2626; }
[data-slug="te-reja"]        .category-icon { background: var(--accent-light); color: var(--accent); }
/* Legacy leaf slugs (still used on product page sidebar) */
[data-slug="veshje-meshkuj"] .category-icon { background: #dbeafe; color: #1d4ed8; }
[data-slug="veshje-femra"]   .category-icon { background: #fce7f3; color: #be185d; }
[data-slug="femije"]         .category-icon { background: #fef9c3; color: #ca8a04; }
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
  .category-card { padding: 18px 8px 14px; gap: 8px; }
  .category-icon { width: 44px; height: 44px; border-radius: 12px; }
}

/* ── SECTION TITLE ACCENT ── */
.section-title-row {
  display: flex; align-items: center; gap: 12px;
}
.section-title-row::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.6rem;
  background: linear-gradient(180deg, var(--accent), #FF9A3C);
  border-radius: 4px;
  flex-shrink: 0;
}
.section-title-row .section-title { margin: 0; }

/* ── PRODUCT CARD QUICK-VIEW OVERLAY ── */
.product-card-img-wrap::after {
  content: 'Shiko Produktin →';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.8);
  color: white; text-align: center;
  padding: 11px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.3px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  backdrop-filter: blur(3px);
}
.product-card:hover .product-card-img-wrap::after { transform: translateY(0); }

/* ── WHATSAPP CTA – REDESIGNED ── */
.whatsapp-section {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 60%, #1f1510 100%);
  position: relative; overflow: hidden;
}
.whatsapp-section::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(249,115,22,0.22) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.whatsapp-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.whatsapp-cta {
  position: relative; z-index: 2;
  text-align: center; padding: 68px 20px;
}
.whatsapp-cta h3 {
  color: white;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900; margin-bottom: 14px; line-height: 1.15;
}
.whatsapp-cta h3 span { color: var(--accent); }
.whatsapp-cta p { color: rgba(255,255,255,0.6); margin-bottom: 36px; font-size: 16px; }
.whatsapp-cta .btn-whatsapp {
  padding: 16px 36px; font-size: 16px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-cta .btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.45);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 88px; right: 22px; z-index: 199;
  width: 44px; height: 44px;
  background: white; color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
@media (min-width: 769px) { .back-to-top { bottom: 28px; } }

/* ── OFFERS SECTION ACCENT ── */
.offers-section { border-top: 3px solid var(--accent); }

/* ═══════════════════════════════════════════════════════════
   MEGA-MENU SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ── Cat nav row ── */
.cat-nav-row {
  border-top: 1px solid var(--gray-100);
  background: var(--white);
  position: relative;
  z-index: 200;
}
.cat-nav {
  display: flex;
  gap: 0;
  overflow-x: visible;
  scrollbar-width: none;
  padding: 0;
  align-items: stretch;
}
.cat-nav::-webkit-scrollbar { display: none; }

/* Plain nav link (no dropdown) */
.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
  flex-shrink: 0;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
}
.cat-nav-link:hover {
  color: var(--black);
  border-bottom-color: var(--accent);
}
.cat-nav-offer {
  color: var(--accent);
  font-weight: 600;
}
.cat-nav-offer:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.cat-nav-new {
  color: #7c3aed;
  font-weight: 600;
}
.cat-nav-new:hover { border-bottom-color: #7c3aed; color: #5b21b6; }

/* ── Nav item wrapper (has dropdown) ── */
.cat-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.cat-nav-item .cat-nav-link { width: 100%; }

/* Transparent bridge fills the gap between the nav button and the dropdown panel.
   Without this, the cursor briefly hovers "nowhere" and triggers mouseleave. */
.cat-nav-item.has-mega::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -10px;
  height: 10px;
  background: transparent;
  pointer-events: auto;
  z-index: 299;
}

/* Caret rotates when open */
.cat-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cat-nav-item.mega-open .cat-caret {
  transform: rotate(180deg);
}
.cat-nav-item.mega-open > .cat-nav-link {
  color: var(--black);
  border-bottom-color: var(--accent);
}

/* ── Mega-menu panel ── */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  width: max-content;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--warm-border);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  overflow: hidden;
}
.mega-menu.mega-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Wide variant for grouped columns (3-level) */
.mega-menu.mega-wide {
  min-width: 520px;
  max-width: 780px;
  width: max-content;
}

/* Keep last items from overflowing right edge */
.cat-nav-item:nth-last-child(-n+3) .mega-menu {
  left: auto;
  right: 0;
}

/* ── GROUPED COLUMNS (3-level hierarchy) ── */
.mega-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
  padding: 24px 28px 10px;
}

.mega-col {
  padding: 0 24px 18px 0;
}
.mega-col:last-child { padding-right: 0; }

.mega-group-link {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--gray-500);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
}
.mega-group-link:hover { color: var(--accent); }

.mega-col-links { list-style: none; }

.mega-col-link {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.18s, padding-left 0.18s;
  white-space: nowrap;
}
.mega-col-link:hover { color: var(--black); padding-left: 4px; }

/* ── FLAT LIST (2-level hierarchy) ── */
.mega-flat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 2px;
  padding: 18px 20px 10px;
}

.mega-flat-link {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--gray-700);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.mega-flat-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── FOOTER: view-all link ── */
.mega-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--warm-border);
  background: var(--warm-bg);
}
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(249,115,22,0.2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.1px;
}
.mega-view-all:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(249,115,22,0.3);
  transform: translateY(-1px);
}

/* ── Backdrop — invisible but keeps click-outside-to-close working ── */
.mega-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-h, 120px);
  background: transparent;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
}
.mega-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV — ACCORDION
   ═══════════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--gray-200);
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.mobile-nav-link:hover, .mobile-nav-link:active { background: var(--gray-50); color: var(--accent); }
.mobile-nav-offer { color: var(--accent); font-weight: 700; }
.mobile-nav-new   { color: #7c3aed; font-weight: 700; }

/* Accordion toggle button */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-toggle:hover, .mobile-nav-toggle:active { background: var(--gray-50); color: var(--accent); }
.mobile-nav-toggle[aria-expanded="true"] { color: var(--accent); background: var(--accent-light); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-caret { transform: rotate(180deg); }
.mobile-caret { transition: transform 0.2s ease; flex-shrink: 0; }

/* Subcategory drawer */
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  /* animation */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.mobile-nav-sub:not([hidden]) { max-height: 600px; }

.mobile-sub-link {
  display: block;
  padding: 11px 20px 11px 36px;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.mobile-sub-link:last-child { border-bottom: none; }
.mobile-sub-link:hover, .mobile-sub-link:active { color: var(--accent); background: var(--accent-light); }
.mobile-sub-all {
  font-weight: 700;
  color: var(--accent);
  padding-left: 20px;
}
/* Group header (level 2 with children) */
.mobile-sub-group {
  font-weight: 700;
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-100);
  padding-left: 20px;
}
/* Leaf link (level 3) */
.mobile-sub-leaf {
  padding-left: 40px;
  font-size: 13.5px;
  color: var(--gray-600);
}

/* Mobile search inside nav drawer */
.mobile-nav-search {
  display: flex;
  margin: 12px 16px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
  background: white;
  flex-shrink: 0;
}
.mobile-nav-search input {
  flex: 1;
  padding: 11px 18px;
  border: none;
  outline: none;
  font-size: 14px;
}
.mobile-nav-search button {
  padding: 0 16px;
  background: var(--accent);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.mobile-nav-search button:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU BUTTON — animated hamburger/X
   ═══════════════════════════════════════════════════════════ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--black);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--gray-100); }
@media (max-width: 768px) { .mobile-menu-btn { display: flex; } }

/* ═══════════════════════════════════════════════════════════
   PREMIUM CLICK / INTERACTION STATES
   ═══════════════════════════════════════════════════════════ */

/* All interactive elements get pointer + smooth transitions */
a, button, [role="button"],
.product-card, .category-card,
.filter-check, .size-btn, .color-btn,
.cart-item, .cart-item-qty button,
.tab-btn, .thumb {
  cursor: pointer;
}

/* Product card — premium hover lift + ring */
.product-card {
  transition: transform 0.22s cubic-bezier(.22,1,.36,1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.25);
}
.product-card:active { transform: translateY(-2px); }

/* Category card — premium */
.category-card {
  transition: transform 0.2s cubic-bezier(.22,1,.36,1),
              box-shadow 0.2s ease,
              border-color 0.2s ease,
              background 0.2s ease;
  will-change: transform;
}
.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
}
.category-card:active { transform: translateY(-2px) scale(1); }

/* Buttons — active press state */
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-primary:focus-visible, .btn-outline:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Add-to-cart button loading state */
.add-to-cart-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.add-to-cart-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Hero CTA buttons */
.hs-actions .btn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease;
}
.hs-actions .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}
.hs-actions .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249,115,22,0.45);
}
.hs-actions .btn-outline {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
  color: white;
  backdrop-filter: blur(4px);
}
.hs-actions .btn-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.hs-actions .btn:active { transform: translateY(0); }

/* Search focus ring */
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

/* Filter check — better tap target */
.filter-check {
  min-height: 36px;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background var(--transition);
}
.filter-check:hover { background: var(--accent-light); }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB — products page
   ═══════════════════════════════════════════════════════════ */
.products-breadcrumb {
  padding: 12px 0 0;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.products-breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.products-breadcrumb a:hover { color: var(--accent); }
.products-breadcrumb .bc-sep { color: var(--gray-200); }
.products-breadcrumb .bc-current { color: var(--black); font-weight: 600; }

/* ── On mobile, cat-nav reverts to horizontal scroll ── */
@media (max-width: 768px) {
  .cat-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav-item.has-mega { position: static; }
  /* Hide mega menus on mobile (use accordion instead) */
  .mega-menu { display: none !important; }
  .mega-backdrop { display: none !important; }
  .cat-caret { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ACCOUNT DROPDOWN (header)
   ═══════════════════════════════════════════════════════════ */
.acc-dropdown-wrap { position: relative; }
.acc-dropdown-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--warm-border);
  border-radius: 50px; padding: 6px 10px 6px 6px;
  cursor: pointer; color: var(--black);
  font-size: 13px; font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.acc-dropdown-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.10); }
.acc-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px; flex-shrink: 0;
}
.acc-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1.5px solid var(--warm-border);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.acc-dropdown-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.acc-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--black); font-weight: 500;
  transition: background var(--transition);
  text-decoration: none;
}
.acc-dropdown-item:hover { background: var(--warm-bg); }
.acc-dropdown-item.danger { color: #dc2626; }
.acc-dropdown-item.danger:hover { background: #fee2e2; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (login, register, confirm-email)
   ═══════════════════════════════════════════════════════════ */
.auth-body {
  min-height: 100vh; background: var(--warm-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; font-family: 'Inter', sans-serif;
}
.auth-page { width: 100%; max-width: 440px; }
.auth-logo-wrap { text-align: center; margin-bottom: 24px; }
.auth-logo { font-size: 22px; font-weight: 900; color: var(--black); text-decoration: none; }
.auth-logo span { color: var(--accent); }
.auth-card {
  background: white; border-radius: 20px;
  border: 1.5px solid var(--warm-border);
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
  padding: 36px 32px;
}
.auth-title { font-size: 22px; font-weight: 800; color: var(--black); margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.auth-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--warm-border);
  border-radius: 10px; font-size: 14px; font-family: inherit;
  background: var(--warm-bg); color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit {
  width: 100%; padding: 13px; background: var(--accent); color: white;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
}
.auth-submit:hover { background: #ea6c10; transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.auth-error {
  background: #fee2e2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}
.auth-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-terms { font-size: 13px; color: var(--gray-500); display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; }
.auth-terms input { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.auth-terms a { color: var(--accent); }
.auth-divider { border: none; border-top: 1px solid var(--warm-border); margin: 20px 0; }
@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; }
  .auth-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ACCOUNT LAYOUT (dashboard pages)
   ═══════════════════════════════════════════════════════════ */
.account-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 28px; padding: 32px 0 64px; align-items: start;
}
.account-sidebar { position: sticky; top: 90px; }
.account-main { min-width: 0; }

/* Sidebar */
.acc-profile-card {
  background: linear-gradient(135deg, var(--accent) 0%, #ea6c10 100%);
  border-radius: 16px; padding: 24px 20px; color: white;
  margin-bottom: 14px; text-align: center;
}
.acc-avatar {
  width: 56px; height: 56px; background: rgba(255,255,255,.25);
  border-radius: 50%; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; letter-spacing: .5px;
}
.acc-profile-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.acc-profile-email { font-size: 12px; opacity: .85; word-break: break-all; }
.account-nav {
  background: white; border: 1.5px solid var(--warm-border);
  border-radius: 16px; overflow: hidden;
}
.acc-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; font-size: 14px; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  border-bottom: 1px solid var(--warm-border);
  transition: background var(--transition), color var(--transition);
}
.acc-nav-item:last-child { border-bottom: none; }
.acc-nav-item:hover { background: var(--warm-bg); color: var(--accent); }
.acc-nav-item.active { color: var(--accent); background: var(--accent-light); font-weight: 700; }
.acc-nav-item svg { flex-shrink: 0; }
.nav-logout { color: #dc2626; }
.nav-logout:hover { background: #fee2e2; color: #b91c1c; }

/* Sections */
.acc-section {
  background: white; border: 1.5px solid var(--warm-border);
  border-radius: 18px; padding: 26px 28px; margin-bottom: 20px;
}
.acc-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--black);
  margin-bottom: 20px;
}
.acc-section .form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.acc-section .form-group input,
.acc-section .form-group select,
.acc-section .form-group textarea {
  background: var(--warm-bg);
}
.acc-save-btn {
  background: var(--accent); color: white; border: none;
  border-radius: 10px; padding: 11px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
}
.acc-save-btn:hover { background: #ea6c10; }
.req { color: var(--accent); }
.co-optional-label { font-size: 12px; color: var(--gray-400); margin: 14px 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* Order cards */
.acc-order-card {
  border: 1.5px solid var(--warm-border); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 12px;
  transition: border-color var(--transition);
}
.acc-order-card:hover { border-color: var(--accent); }
.acc-order-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.acc-order-num { font-size: 14px; font-weight: 800; color: var(--black); }
.acc-order-date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.acc-order-products { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.acc-order-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.acc-order-total { font-size: 16px; font-weight: 800; color: var(--accent); }
.acc-order-status {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; white-space: nowrap;
}
.status-e-re { background: #fef9c3; color: #854d0e; }
.status-ne-perpunim { background: #dbeafe; color: #1d4ed8; }
.status-e-derguar { background: #dcfce7; color: #16a34a; }
.status-e-anuluar { background: #fee2e2; color: #dc2626; }

/* Danger zone */
.danger-zone {
  border-color: #fecaca !important;
}
.danger-zone .acc-section-title { color: #dc2626; }
.btn-danger-outline {
  background: none; border: 1.5px solid #fca5a5; color: #dc2626;
  border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
}
.btn-danger-outline:hover { background: #fee2e2; }
.btn-outline-orange {
  background: none; border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.btn-outline-orange:hover { background: var(--accent-light); }

@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .acc-section { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   3-STEP CHECKOUT
   ═══════════════════════════════════════════════════════════ */

/* Progress bar */
.co-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 28px 0 32px; flex-wrap: wrap;
}
.co-step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.co-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--warm-border); color: var(--gray-500);
  transition: background .25s, color .25s;
}
.co-step-label { font-size: 11px; font-weight: 600; color: var(--gray-400); transition: color .25s; white-space: nowrap; }
.co-step--done .co-step-num { background: var(--accent); color: white; }
.co-step--done .co-step-label { color: var(--accent); }
.co-step--active .co-step-num { background: var(--accent); color: white; box-shadow: 0 0 0 4px rgba(249,115,22,.18); }
.co-step--active .co-step-label { color: var(--accent); font-weight: 800; }
.co-step-line { flex: 1; height: 2px; background: var(--warm-border); min-width: 28px; max-width: 60px; margin-bottom: 18px; transition: background .25s; }
.co-step-line--done { background: var(--accent); }

/* Step sections */
.co-step-section { display: none; }
.co-step-section.active { display: block; }

/* Nav buttons */
.co-nav-btns { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.co-next-btn {
  flex: 1; padding: 13px 24px; background: var(--accent); color: white;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.co-next-btn:hover { background: #ea6c10; transform: translateY(-1px); }
.co-back-btn {
  padding: 13px 20px; background: none; color: var(--gray-600);
  border: 1.5px solid var(--warm-border); border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.co-back-btn:hover { border-color: var(--gray-400); color: var(--black); }

/* Delivery options */
.co-delivery-opts { display: flex; flex-direction: column; gap: 10px; }
.co-delivery-opt {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--warm-border); border-radius: 14px;
  padding: 16px 18px; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.co-delivery-opt.selected { border-color: var(--accent); background: var(--accent-light); }
.co-delivery-opt input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.co-delivery-opt-icon { width: 40px; height: 40px; background: var(--warm-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.co-delivery-opt-info { flex: 1; }
.co-delivery-opt-title { font-size: 14px; font-weight: 700; color: var(--black); }
.co-delivery-opt-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.co-delivery-opt-price { font-size: 15px; font-weight: 800; color: var(--accent); }

/* Address summary card (step 2) */
.co-addr-summary {
  background: var(--warm-bg); border: 1.5px solid var(--warm-border);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.co-addr-summary-label { font-size: 12px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.co-addr-summary-val { font-size: 14px; color: var(--black); line-height: 1.6; }
.co-addr-edit { font-size: 13px; color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; border: none; background: none; flex-shrink: 0; }
.co-addr-edit:hover { text-decoration: underline; }

/* Submit button on step 3 */
.co-submit-btn {
  width: 100%; padding: 14px; background: var(--accent); color: white;
  border: none; border-radius: 12px; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  margin-top: 10px;
}
.co-submit-btn:hover { background: #ea6c10; transform: translateY(-1px); }
.co-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-error { background: #fee2e2; border: 1px solid #fecaca; color: #dc2626; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-top: 14px; display: none; }
.form-error.visible { display: block; }

/* Transport row in summary */
.co-sr-transport { color: var(--gray-700); }

@media (max-width: 600px) {
  .co-progress { gap: 0; }
  .co-step-line { min-width: 14px; }
  .co-step-label { font-size: 10px; }
  .co-nav-btns { flex-direction: column-reverse; }
  .co-back-btn { width: 100%; }
}

/* ── Delivery upsell / free badge ── */
.co-delivery-upsell {
  margin-top: 10px; padding: 9px 14px;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; font-size: 13px; color: #c2410c; font-weight: 600;
}
.co-delivery-upsell.co-delivery-free {
  background: #f0fdf4; border-color: #bbf7d0; color: #16a34a;
}

/* ── Summary upsell ── */
.co-summary-upsell {
  font-size: 12px; color: #c2410c; font-weight: 600;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; padding: 7px 12px; margin: 6px 0;
}
