/* ============================================================
   REELUB STORES — Premium Mixed Store CSS
   Modern Professional E-Commerce Design
   ============================================================ */

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

:root {
  --p:       #F47920;
  --p-dark:  #d4631a;
  --p-light: #fff3e8;
  --accent:  #2D2D2D;
  --accent-light: #f5f5f5;
  --text:    #2D2D2D;
  --text2:   #555555;
  --text3:   #999999;
  --border:  #e8e8e8;
  --bg:      #f7f7f7;
  --white:   #ffffff;
  --success: #2e7d32;
  --danger:  #c62828;
  --warning: #f57f17;
  --shadow1: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow2: 0 3px 6px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.08);
  --shadow3: 0 10px 20px rgba(0,0,0,.10), 0 6px 6px rgba(0,0,0,.06);
  --r:  8px;
  --r2: 12px;
  --r3: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
ul { list-style: none; }

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar {
  background: #F47920;
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: .4rem 0;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.5rem; }

/* ── Header ───────────────────────────────────────────────── */
.header {
  background: #2D2D2D;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow2);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo */
.header-logo { flex-shrink: 0; }
.header-logo img { height: 56px; max-width: 200px; object-fit: contain; }
.header-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--p);
  letter-spacing: -.5px;
  white-space: nowrap;
}

/* Search Bar */
.header-search { flex: 1; max-width: 640px; }
.header-search form {
  display: flex;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow1);
}
.search-cat-select {
  border: none;
  border-right: 1px solid var(--border);
  background: #f8f9fa;
  padding: 0 .75rem;
  font-size: .8rem;
  color: var(--text2);
  cursor: pointer;
  outline: none;
  display: none;
}
.header-search input {
  flex: 1;
  border: none;
  padding: 0 1rem;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  min-width: 0;
  height: 42px;
}
.search-submit-btn {
  background: var(--p);
  color: #fff;
  border: none;
  padding: 0 1.25rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  cursor: pointer;
}
.search-submit-btn:hover { background: #F47920; }

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow3);
  z-index: 600;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
}
.search-dropdown a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #fafafa;
  transition: .1s;
}
.search-dropdown a:hover { background: #f5f5f5; }
.search-dropdown a img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-dropdown-footer {
  padding: .75rem 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--p);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .4rem .65rem;
  color: #fff;
  border-radius: var(--r);
  background: none;
  border: none;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  position: relative;
}
.header-action-btn:hover { background: rgba(255,255,255,.15); }
.header-action-btn i { font-size: 1.3rem; }
.header-action-btn span { font-size: .68rem; }
.cart-count-badge {
  position: absolute;
  top: .2rem;
  right: .3rem;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Navigation Bar ───────────────────────────────────────── */
.header-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 42px;
  gap: .1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: .4rem .85rem;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  transition: .15s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-link:hover { color: var(--p); background: #fff5ec; }
.nav-link--sale { color: var(--danger) !important; font-weight: 700; }
.nav-link--all { color: var(--p); font-weight: 700; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Announcement Bar ─────────────────────────────────────── */
.announce-bar {
  font-size: .82rem;
  padding: .5rem 1rem;
  text-align: center;
  font-weight: 500;
}

/* ── Flash ────────────────────────────────────────────────── */
.flash {
  padding: .8rem 1.25rem;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flash--success { background: #e8f5e9; color: #1b5e20; border-bottom: 2px solid #a5d6a7; }
.flash--error   { background: #ffebee; color: #b71c1c; border-bottom: 2px solid #ef9a9a; }
.flash--warning { background: #fff8e1; color: #e65100; border-bottom: 2px solid #ffe082; }

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #1a237e;
  height: 440px;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 600px;
}
.slide-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.slider-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: .3s;
}
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: .2s;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.35); }

/* ── Home Sections ────────────────────────────────────────── */
.home-section { padding: 2rem 0; }
.home-section + .home-section { border-top: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.section-head-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-head-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
}
.section-head-title::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--p);
  border-radius: 2px;
}
.section-view-all {
  font-size: .82rem;
  font-weight: 600;
  color: var(--p);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.section-view-all:hover { text-decoration: underline; }

/* ── Categories ───────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--r2);
  padding: 1rem .75rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.cat-card:hover {
  border-color: var(--p);
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.cat-card-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.cat-card-icon {
  width: 56px;
  height: 56px;
  background: var(--p-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--p);
}
.cat-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Products Grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--r2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: .2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow2);
  border-color: #bdbdbd;
  transform: translateY(-2px);
}
.product-card-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #f9f9f9;
}
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  z-index: 1;
}
.product-badge--sale { background: var(--danger); color: #fff; }
.product-badge--new  { background: var(--success); color: #fff; }
.wishlist-btn-card {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow1);
  font-size: .9rem;
  color: var(--text3);
  border: none;
  transition: .15s;
  z-index: 1;
}
.wishlist-btn-card:hover, .wishlist-btn-card.wishlisted { color: #e53935; }
.product-card-body { padding: .75rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.product-card-brand { font-size: .72rem; color: var(--p); font-weight: 600; text-transform: uppercase; }
.product-card-name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
}
.stars { color: #f9a825; letter-spacing: -.5px; }
.rating-count { color: var(--text3); }
.product-card-price {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.price-now { font-size: 1.05rem; font-weight: 800; color: var(--p); }
.price-was { font-size: .78rem; color: var(--text3); text-decoration: line-through; }
.price-save { font-size: .72rem; color: var(--success); font-weight: 600; }
.add-to-cart-btn {
  width: 100%;
  padding: .55rem;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 0 0 var(--r2) var(--r2);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.add-to-cart-btn:hover { background: #F47920; }

/* ── Deal Banner ──────────────────────────────────────────── */
.deal-banner {
  background: linear-gradient(135deg, #ff6d00 0%, #ff8f00 100%);
  border-radius: var(--r2);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0;
  color: #fff;
}
.deal-banner h3 { font-size: 1.4rem; font-weight: 800; }
.deal-banner p { opacity: .9; margin-top: .25rem; }

/* ── Product Detail ───────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 2.5rem;
  background: var(--white);
  border-radius: var(--r2);
  padding: 2rem;
  box-shadow: var(--shadow1);
  border: 1px solid var(--border);
}
.gallery-main {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fafafa;
  aspect-ratio: 1;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: .15s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--p); }
.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.product-meta { font-size: .82rem; color: var(--text3); margin-bottom: .75rem; }
.product-meta a { color: var(--p); }
.product-price-box { background: #fffbf0; border-radius: var(--r); padding: 1rem; margin: 1rem 0; }
.price-main { font-size: 2rem; font-weight: 800; color: var(--p); }
.price-main-original { font-size: .9rem; color: var(--text3); text-decoration: line-through; margin-left: .5rem; }
.price-discount-badge {
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-left: .5rem;
}
.tab-btn {
  padding: .7rem 1.5rem;
  border: none;
  background: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text3);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: .15s;
}
.tab-btn--active, .tab-btn:hover { color: var(--p); border-bottom-color: var(--p); }
.product-description { line-height: 1.9; color: var(--text2); }
.product-description h2, .product-description h3 { margin: 1rem 0 .5rem; color: var(--text); }
.product-description ul { padding-left: 1.25rem; margin: .5rem 0; }
.product-description p { margin-bottom: .6rem; }

/* ── Shop Listing ─────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.shop-filters {
  background: var(--white);
  border-radius: var(--r2);
  padding: 1.25rem;
  border: 1px solid var(--border);
  position: sticky;
  top: 116px;
}
.shop-filters h3 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 1rem; }
.filter-group > label { font-size: .8rem; font-weight: 700; display: block; margin-bottom: .5rem; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text3);
  padding: .75rem 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); transition: .15s; }
.breadcrumb a:hover { color: var(--p); }
.breadcrumb-sep { opacity: .5; }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.cart-items-wrap { background: var(--white); border-radius: var(--r2); border: 1px solid var(--border); overflow: hidden; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r); flex-shrink: 0; border: 1px solid var(--border); }
.cart-item-info { flex: 1; }
.cart-item-info a { font-size: .9rem; font-weight: 600; color: var(--text); display: block; margin-bottom: .25rem; }
.cart-item-price { font-size: .82rem; color: var(--text3); }
.cart-item-sub { font-weight: 800; font-size: 1.05rem; color: var(--danger); }
.cart-summary-box {
  background: var(--white);
  border-radius: var(--r2);
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: 116px;
}
.cart-summary-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--p); color: var(--p); }
.coupon-form { display: flex; gap: .5rem; }

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 900;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow3);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { right: 0; }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #2D2D2D;
  color: #fff;
}
.cart-drawer-head h3 { font-size: 1rem; font-weight: 700; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-drawer-foot { padding: 1.1rem 1.25rem; border-top: 1px solid var(--border); background: #fafafa; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text3); }
.cart-empty i { font-size: 4rem; opacity: .12; display: block; margin-bottom: 1rem; }

/* ── Mobile Menu ──────────────────────────────────────────── */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 700; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 800;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: var(--shadow3);
}
.mobile-drawer.open { left: 0; }

/* ── Auth ─────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card {
  background: var(--white);
  border-radius: var(--r2);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow2);
  border: 1px solid var(--border);
}
.auth-card h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; text-align: center; color: var(--text); }

/* ── Account ──────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.account-sidebar {
  background: var(--white);
  border-radius: var(--r2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 116px;
}
.account-sidebar-header { background: #2D2D2D; color: #fff; padding: 1.25rem; text-align: center; }
.account-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 1px solid #f5f5f5;
  transition: .15s;
}
.account-nav-link:hover { background: var(--p-light); color: var(--p); }
.account-nav-link.active { background: var(--p-light); color: var(--p); font-weight: 700; border-left: 3px solid var(--p); }
.account-main { min-width: 0; }
.stat-card-sm { background: var(--white); border-radius: var(--r2); padding: 1.25rem; border: 1px solid var(--border); text-align: center; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-lbl { font-size: .78rem; color: var(--text3); margin-top: .2rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 600;
  border: none;
  transition: .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary { background: var(--p); color: #fff; }
.btn--primary:hover { background: #F47920; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #e65100; }
.btn--outline { background: transparent; border: 2px solid var(--p); color: var(--p); }
.btn--outline:hover { background: var(--p); color: #fff; }
.btn--ghost { background: transparent; color: var(--text2); }
.btn--ghost:hover { background: var(--bg); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1fba56; }
.btn--sm { padding: .35rem .85rem; font-size: .8rem; }
.btn--lg { padding: .8rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ────────────────────────────────────────────────── */
.form-control, .fg input, .fg select, .fg textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .875rem;
  color: var(--text);
  background: #fff;
  transition: .2s;
}
.form-control:focus, .fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.fg { margin-bottom: 1rem; }
.fg label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.form-hint { font-size: .75rem; color: var(--text3); margin-top: .3rem; }
.form-control--sm { padding: .4rem .7rem; font-size: .82rem; }
.req { color: var(--danger); }

/* ── Cards ────────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--r2); box-shadow: var(--shadow1); border: 1px solid var(--border); overflow: hidden; }
.card-body { padding: 1.25rem; }

/* ── Badges ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 4px; font-size: .72rem; font-weight: 700; }
.badge--success { background: #e8f5e9; color: #1b5e20; }
.badge--danger  { background: #ffebee; color: #b71c1c; }
.badge--warning { background: #fff8e1; color: #e65100; }
.badge--info    { background: #e3f2fd; color: #0d47a1; }
.badge--gray    { background: #f5f5f5; color: #616161; }
.badge--primary { background: var(--p-light); color: var(--p); }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; padding: .7rem 1rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text3); border-bottom: 2px solid var(--border); background: #fafafa; white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.table tr:hover td { background: #fafbfe; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .35rem; padding: 2rem 0; }
.page-btn { padding: .45rem .85rem; border-radius: var(--r); border: 1px solid var(--border); background: var(--white); font-size: .875rem; font-weight: 600; color: var(--text2); transition: .15s; cursor: pointer; }
.page-btn:hover { border-color: var(--p); color: var(--p); }
.page-btn--active { background: var(--p); color: #fff; border-color: var(--p); }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text3); }
.empty-state i { font-size: 3rem; opacity: .15; display: block; margin-bottom: 1rem; }
.empty-state h3, .empty-state h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: .85rem 1rem; border-radius: var(--r); margin-bottom: 1rem; font-size: .875rem; }
.alert--error   { background: #ffebee; color: #b71c1c; border-left: 4px solid var(--danger); }
.alert--success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--success); }
.alert--warning { background: #fff8e1; color: #e65100; border-left: 4px solid var(--warning); }
.alert--info    { background: #e3f2fd; color: #0d47a1; border-left: 4px solid var(--p); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: #1e1e1e; color: #9fa8da; padding: 3rem 0 0; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-col {}
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #c5cae9; margin-bottom: 1rem; }
.footer-link { display: block; font-size: .85rem; color: #9fa8da; padding: .3rem 0; transition: .15s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: #c5cae9; display: flex; align-items: center; justify-content: center; transition: .15s; }
.footer-social a:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Brands Strip ─────────────────────────────────────────── */
.brands-strip { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.brand-item { padding: .75rem 1.5rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--border); transition: .2s; display: flex; align-items: center; }
.brand-item:hover { border-color: var(--p); box-shadow: var(--shadow1); }
.brand-item img { height: 32px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: .2s; }
.brand-item:hover img { filter: none; opacity: 1; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.testimonial-card { background: var(--white); border-radius: var(--r2); padding: 1.25rem; border: 1px solid var(--border); }
.stars { color: #f9a825; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ── #backToTop ───────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow2);
  z-index: 200;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .account-layout, .cart-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .cart-summary-box { position: static; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { height: 56px; }
  .header-search { display: none; }
  .header-search.open { display: block; position: absolute; top: 56px; left: 0; right: 0; padding: .6rem 1rem; background: var(--p); z-index: 600; max-width: 100%; }
  .search-cat-select { display: none; }
  .hero-slider { height: 280px; }
  .slide-content { padding: 0 1rem; }
  .slide-content p { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 .75rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .product-card-body { padding: .6rem; }
  .product-card-name { font-size: .8rem; }
  .price-now { font-size: .95rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slider { height: 220px; }
  .auth-card { padding: 1.5rem 1rem; }
}
