/* =============================================
   SECONDHANDIE — Stylesheet v2
   Mobile-first, elegant, minimal
   ============================================= */

:root {
  --bg:          #FAF9F7;
  --beige:       #F3EDE3;
  --beige-dark:  #E9E0D0;
  --gray-light:  #EDEBE6;
  --gray:        #9B9590;
  --border:      #E5E0D8;
  --accent:      #C4956A;
  --accent-hover:#B5844F;
  --dark:        #1A1A1A;
  --text:        #2C2C2C;
  --text-muted:  #7A7672;
  --white:       #FFFFFF;
  --danger:      #C0392B;
  --success:     #2E7D32;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --radius-pill: 100px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.15);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h:    56px;
  --nav-h:       62px;
  --transition:  0.18s ease;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
  min-height: 48px; letter-spacing: 0.01em;
}
.btn-primary  { background: var(--dark); color: var(--white); }
.btn-outline  { background: transparent; color: var(--dark); border: 1.5px solid rgba(26,26,26,0.2); }
.btn-accent   { background: var(--accent); color: var(--white); }
.btn-sm  { padding: 9px 18px; font-size: 13px; min-height: 38px; }
.btn-lg  { padding: 15px 32px; font-size: 15px; min-height: 52px; }
.btn-full { width: 100%; }
@media (hover: hover) {
  .btn-primary:hover { background: #2d2d2d; }
  .btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
  .btn-accent:hover  { background: var(--accent-hover); }
}
.btn-primary:active { opacity: 0.85; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}

.logo {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--dark); flex-shrink: 0;
}

.nav-links { display: none; }
@media (min-width: 768px) {
  .nav-links {
    display: flex; gap: 24px; align-items: center; flex: 1; padding-left: 28px;
  }
  .nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color var(--transition);
  }
  .nav-links a:hover, .nav-links a.active { color: var(--dark); }
}

.header-actions { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background var(--transition);
  position: relative;
}
@media (hover: hover) { .icon-btn:hover { background: var(--gray-light); } }

/* Hide wishlist + hamburger on mobile — bottom nav handles them */
#wishlist-btn, .hamburger { display: none; }
@media (min-width: 768px) { #wishlist-btn { display: flex; } }

.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--dark); color: white;
  font-size: 9px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.wishlist-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: white;
  font-size: 9px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Mobile nav drawer (unused but kept for compatibility) */
.mobile-nav { display: none; }
.mobile-nav.open { display: flex; flex-direction: column; padding: 12px 20px 20px; background: var(--white); border-top: 1px solid var(--border); }
.mobile-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--gray-light); }
.mobile-nav a:last-child { border-bottom: none; }

/* Search bar */
.search-bar {
  display: none; padding: 10px 0; border-top: 1px solid var(--border);
  background: rgba(250,249,247,0.98);
}
.search-bar.open { display: block; }
.search-form {
  display: flex; gap: 8px; align-items: center;
  background: var(--gray-light); border-radius: var(--radius-pill);
  padding: 10px 16px;
}
.search-form input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; color: var(--text);
}
.search-form button { color: var(--text-muted); display: flex; align-items: center; }

/* ============ BOTTOM NAV (mobile only) ============ */
.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(250,249,247,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 100;
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; font-size: 10px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-muted); transition: color var(--transition);
  position: relative; cursor: pointer;
  background: none; border: none; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.active { color: var(--dark); }
.bottom-nav-item:active { color: var(--dark); opacity: 0.7; }
.bottom-nav-item svg { flex-shrink: 0; }

.bottom-nav-icon {
  position: relative; display: inline-flex;
}
.bottom-nav-badge {
  position: absolute; top: -4px; right: -7px;
  background: var(--dark); color: white;
  font-size: 8px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  padding: 0 2px;
}
.bottom-nav-badge.visible { display: flex; }

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--dark); color: var(--white); padding: 12px 0;
}
.trust-items {
  display: flex; gap: 28px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trust-items::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .trust-items { justify-content: center; overflow: visible; }
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  opacity: 0.85;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 420px;
  padding: 64px 0;
  overflow: hidden;
  background-color: var(--beige);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 768px) { .hero { min-height: 520px; padding: 80px 0; } }
@media (min-width: 1024px){ .hero { min-height: 600px; } }

/* Overlay — gradient i butë nga poshtë lart, vetëm te zona e tekstit */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  /* Pa foto — pa overlay */
  background: transparent;
}

/* Me foto — gradient nga poshtë lart, butë */
.hero-has-img .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.10) 75%,
    transparent 100%
  );
}

/* Content sipër gjithçkaje */
.hero-content {
  position: relative; z-index: 2;
  max-width: 540px;
}

/* Teksti me foto */
.hero h1 { color: var(--dark); margin-bottom: 14px; }
.hero p   { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; max-width: 380px; }
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Kur ka foto — teksti bëhet i bardhë */
.hero-has-img h1 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }
.hero-has-img p  { color: rgba(255,255,255,0.88); text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.hero-has-img .btn-primary {
  background: #fff; color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero-has-img .btn-primary:hover { background: var(--beige); }
.hero-has-img .btn-outline {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Pa foto — elementi dekorativ djathtas */
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-no-img .hero-visual {
    display: block; position: absolute; right: 0; top: 0; bottom: 0;
    width: 40%; background: var(--beige-dark);
    z-index: 0;
  }
}
.hero-label, .hero-float-badge { display: none; }

/* ============ INFO SECTION ============ */
.info-section {
  background: var(--dark); color: var(--white); padding: 44px 0;
}
@media (min-width: 768px) { .info-section { padding: 56px 0; } }

.info-section-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 20px;
  color: rgba(255,255,255,0.9); letter-spacing: -0.01em;
}
.info-list { display: flex; flex-direction: column; gap: 13px; }
.info-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.5;
}
.info-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
}
@media (min-width: 640px) {
  .info-list {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
  }
}

/* ============ SECTION ============ */
.section { padding: 44px 0; }
@media (min-width: 768px) { .section { padding: 60px 0; } }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.section-link {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; border-bottom: 1px solid currentColor;
  padding-bottom: 1px; transition: color var(--transition);
  flex-shrink: 0;
}
.section-link:hover { color: var(--dark); }

/* Section badge (hidden by default in new design) */
.section-badge { display: none; }

/* ============ PRODUCT GRID ============ */

/* Shop page grid — 1-col mobile, 2-col sm, 3-col md, 4-col lg */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}
@media (min-width: 480px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* Home page sections — horizontal scroll on mobile, grid on desktop */
.product-scroll {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Extend to screen edges on mobile */
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.product-scroll::-webkit-scrollbar { display: none; }

.product-scroll .product-card {
  flex: 0 0 152px;
  width: 152px;
  scroll-snap-align: start;
}

@media (min-width: 480px) {
  .product-scroll .product-card { flex: 0 0 168px; width: 168px; }
}

@media (min-width: 640px) {
  .product-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow-x: visible;
    scroll-snap-type: none;
    margin-left: 0; margin-right: 0;
    padding-left: 0; padding-right: 0;
    padding-bottom: 0;
  }
  .product-scroll .product-card {
    flex: unset; width: unset;
  }
}
@media (min-width: 900px) {
  .product-scroll { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* ============ PRODUCT CARD ============ */
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; position: relative;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
  .product-card:hover { border-color: transparent; box-shadow: var(--shadow); }
  .product-card:hover .card-img img { transform: scale(1.04); }
}

.card-img {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--beige); position: relative; display: block;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.45s ease;
}
.card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--beige);
  color: var(--text-muted); font-size: 2rem;
}

.card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.card-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 3px 7px;
  border-radius: var(--radius-xs);
}
.badge-preloved { background: rgba(243,237,227,0.95); color: #7A5C3A; }
.badge-new { background: rgba(26,26,26,0.9); color: var(--white); }
.badge-only { background: rgba(192,57,43,0.88); color: white; }

.card-wish {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.card-wish:active { transform: scale(0.88); }
.card-wish.active { color: #e74c3c; }
.card-wish.active svg { fill: #e74c3c; }

.card-body {
  padding: 9px 11px 11px; flex: 1; display: flex; flex-direction: column; gap: 5px;
}
.card-title {
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: 6px;
}
.card-price { font-size: 14px; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.card-size  { font-size: 10px; color: var(--text-muted); background: var(--gray-light); padding: 2px 6px; border-radius: 4px; font-weight: 500; }

/* Add to cart button */
.btn-add-cart {
  width: 100%; margin-top: 8px;
  height: 34px; padding: 0 10px;
  border-radius: var(--radius-xs);
  background: var(--dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  border: none; cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.btn-add-cart:active { opacity: 0.8; }
.btn-add-cart.added { background: var(--success); }
@media (hover: hover) { .btn-add-cart:hover:not(.added) { background: var(--accent); } }

/* ============ FILTER CHIPS ============ */
.filter-bar {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--bg);
}
.filter-bar-inner {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0; padding: 7px 15px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text-muted); transition: all var(--transition); cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(0.96); }
.chip.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
@media (hover: hover) { .chip:hover:not(.active) { border-color: var(--dark); color: var(--dark); } }

/* ============ CATEGORIES ============ */
.categories-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 14px; text-align: center;
  transition: all var(--transition); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.cat-card:active { background: var(--beige); }
@media (hover: hover) { .cat-card:hover { border-color: var(--dark); box-shadow: var(--shadow); } }
.cat-icon { color: var(--text-muted); }
.cat-name  { font-size: 14px; font-weight: 600; color: var(--dark); }
.cat-count { font-size: 11px; color: var(--text-muted); }

/* ============ INSTAGRAM SECTION ============ */
.instagram-section {
  background: var(--beige); padding: 52px 0; text-align: center;
}
.instagram-section h2 { margin-bottom: 10px; }
.instagram-section p  { color: var(--text-muted); margin-bottom: 22px; font-size: 14px; }
.insta-handle {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 600; color: var(--dark);
  background: var(--white); border-radius: var(--radius-pill);
  padding: 12px 22px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ============ SHOP PAGE ============ */
.shop-header { padding: 20px 0 0; }
.shop-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 6px; flex-wrap: wrap; gap: 8px;
}
.shop-count { font-size: 12px; color: var(--text-muted); }
.shop-layout { padding: 0 0 56px; }

@media (min-width: 900px) {
  .shop-layout-inner { display: grid; grid-template-columns: 200px 1fr; gap: 36px; }
}

.sidebar { display: none; }
@media (min-width: 900px) { .sidebar { display: block; padding-top: 4px; } }

.sidebar-section { margin-bottom: 28px; }
.sidebar-section h4 { margin-bottom: 12px; color: var(--text-muted); }
.sidebar-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; cursor: pointer;
  transition: color var(--transition);
}
.sidebar-option:hover { color: var(--dark); }
.sidebar-option.active { font-weight: 600; color: var(--dark); }
.sidebar-option .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-light); flex-shrink: 0; }
.sidebar-option.active .dot { background: var(--dark); }

/* ============ SIDE PANELS ============ */
.side-panel {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 400px; background: var(--white);
  z-index: 300; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.side-panel.open { transform: translateX(0); }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.panel-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background var(--transition);
}
.panel-close:hover { background: var(--gray-light); }

.panel-body {
  flex: 1; overflow-y: auto; padding: 18px;
  -webkit-overflow-scrolling: touch;
}
.panel-footer {
  padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0;
}

/* ============ CART ITEMS ============ */
.cart-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px; height: 80px; object-fit: contain;
  border-radius: var(--radius-sm); background: var(--beige); flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 13px; font-weight: 500; margin-bottom: 3px; line-height: 1.35; }
.cart-item-price { font-size: 13px; font-weight: 700; color: var(--dark); }
.cart-item-size  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cart-item-remove { color: var(--text-muted); padding: 4px; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--beige); border-radius: var(--radius-sm);
  padding: 13px; margin-bottom: 12px;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 3px 0; color: var(--text-muted);
}
.cart-summary-row.total {
  font-weight: 700; font-size: 15px; color: var(--dark);
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px;
}

.cart-empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.cart-empty svg { opacity: .18; margin: 0 auto 14px; }
.cart-empty p { margin-bottom: 20px; font-size: 14px; }

/* ============ CHECKOUT OVERLAY ============ */
.checkout-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.48);
  z-index: 400; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.checkout-overlay.open { opacity: 1; visibility: visible; }

.checkout-sheet {
  background: var(--white); border-radius: 20px 20px 0 0;
  width: 100%; max-height: 94vh; overflow-y: auto;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  -webkit-overflow-scrolling: touch;
}
.checkout-overlay.open .checkout-sheet { transform: translateY(0); }

.checkout-drag { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 12px auto 0; }

@media (min-width: 640px) {
  .checkout-overlay { align-items: center; justify-content: center; }
  .checkout-sheet {
    border-radius: 16px; max-width: 460px;
    max-height: 88vh; padding-bottom: 24px;
  }
  .checkout-drag { display: none; }
}

/* ============ OVERLAY ============ */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.32);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: all var(--transition); backdrop-filter: blur(1px);
}
.overlay.active { opacity: 1; visibility: visible; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: var(--white);
  transition: border-color var(--transition); outline: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--dark); }
.form-input::placeholder { color: var(--gray); }
textarea.form-input { resize: none; }

/* ============ PRODUCT PAGE ============ */
.product-page { padding: 20px 0 72px; }
.product-layout { display: grid; gap: 28px; }
@media (min-width: 768px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 52px; } }

.gallery-main {
  aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; background: var(--beige); margin-bottom: 10px;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 60px; height: 80px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  background: var(--beige);
}
.gallery-thumb.active { border-color: var(--dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; display: flex; gap: 6px; }
.product-breadcrumb a { color: var(--text-muted); }
.product-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.product-price { font-size: 1.65rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.02em; }
.product-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.product-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-xs); }

.product-attrs { border-top: 1px solid var(--border); padding: 16px 0; margin: 8px 0; }
.product-attr { display: flex; gap: 16px; padding: 7px 0; font-size: 14px; }
.product-attr-label { color: var(--text-muted); min-width: 80px; font-size: 13px; }
.product-attr-value { font-weight: 500; font-size: 13px; }

.product-description { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.product-trust {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--beige); border-radius: var(--radius-sm);
  padding: 13px 16px; margin-bottom: 20px;
}
.product-trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; }
.product-trust-item svg { color: var(--success); flex-shrink: 0; }

.product-cta { display: flex; gap: 10px; }
.btn-order { flex: 1; }
.btn-wish-lg {
  width: 50px; height: 50px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all var(--transition);
  color: var(--text-muted);
}
.btn-wish-lg:hover { border-color: var(--dark); }
.btn-wish-lg.active { border-color: #e74c3c; color: #e74c3c; }
.btn-wish-lg.active svg { fill: #e74c3c; }

/* Sticky order bar — desktop-only now */
.sticky-order { display: none; }

/* Order panel (single product) */
.order-product-preview {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--beige); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 22px;
}
.order-product-preview img { width: 68px; height: 90px; object-fit: contain; border-radius: var(--radius-xs); flex-shrink: 0; }
.order-preview-info .title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.order-preview-info .price { font-size: 18px; font-weight: 700; }
.order-summary { border-top: 1px solid var(--border); padding: 14px 0; margin-bottom: 20px; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-muted); }
.order-row.total { font-weight: 700; font-size: 15px; color: var(--dark); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 10px; color: var(--dark); }
.empty-state p { margin-bottom: 24px; font-size: 14px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 40px 0; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; border: 1.5px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.page-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
@media (hover: hover) { .page-btn:hover:not(.active) { border-color: var(--dark); color: var(--dark); } }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark); color: var(--white); padding: 52px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .logo { color: var(--white); display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-links a:hover { background: rgba(255,255,255,.18); color: white; }

.footer-links h4 { color: rgba(255,255,255,.32); margin-bottom: 14px; }
.footer-links a {
  display: block; font-size: 13px; color: rgba(255,255,255,.58);
  padding: 4px 0; transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-trust { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.footer-trust span { font-size: 12px; color: rgba(255,255,255,.42); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.22); text-align: center; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 10px);
  left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--dark); color: var(--white);
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; z-index: 500;
  opacity: 0; transition: all 0.26s ease; white-space: nowrap;
  pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { .toast { bottom: 28px; } }

/* ============ SUCCESS STATE ============ */
.order-success { text-align: center; padding: 36px 20px; }
.order-success .check-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #E8F5E9; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--success);
}
.order-success h3 { margin-bottom: 8px; }
.order-success p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.order-number-display {
  background: var(--beige); border-radius: var(--radius-sm);
  padding: 11px 16px; margin: 14px 0;
  font-size: 13px; color: var(--text-muted);
}
.order-number-display strong { font-size: 15px; color: var(--dark); display: block; }

/* ============ BREADCRUMB ============ */
.breadcrumb { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; padding: 12px 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span { color: var(--gray); }

/* ============ SKELETON ============ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--beige) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ UTILITIES ============ */
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
