/* ============================================================
   SPORTS CAMERA — STYLESHEET
   Color Palette:
     --bg-dark:    #2B2933  (primary background)
     --bg-mid:     #3C3A44  (cards / sections)
     --accent:     #6B5558  (buttons / highlights / mauve)
     --light:      #CECDD1  (text / light elements)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:    #2B2933;
  --bg-mid:     #3C3A44;
  --bg-card:    #343240;
  --accent:     #7A5E62;
  --accent-light: #9B7C80;
  --accent-glow: rgba(122, 94, 98, 0.35);
  --light:      #CECDD1;
  --light-muted: #9896A0;
  --white:      #F2F1F5;
  --border:     rgba(206,205,209,0.12);
  --border-hover: rgba(206,205,209,0.28);

  --dji-color:      #4A90E2;
  --gopro-color:    #1ABF8C;
  --insta360-color: #E07B54;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 30px var(--accent-glow);

  --transition: 0.25s ease;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--light);
  border: 1.5px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--light-muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-hover); color: var(--light); }

.btn--full { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: transparent;
  transition: all var(--transition);
  position: relative;
}
.btn-icon:hover { background: var(--border); color: var(--white); }
.btn-icon svg { width: 20px; height: 20px; }

/* ---------- Section Titles ---------- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.section-sub {
  color: var(--light-muted);
  font-size: 0.95rem;
  margin-bottom: 44px;
  max-width: 540px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(43, 41, 51, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: -0.02em;
}
.navbar__logo strong { color: var(--accent-light); }
.logo-icon {
  width: 30px;
  height: 30px;
  color: var(--accent-light);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-muted);
  transition: color var(--transition);
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  transition: width var(--transition);
}
.navbar__links a:hover { color: var(--white); }
.navbar__links a:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
  position: relative;
  display: none; /* hidden until logged in */
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: scale(0.8);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

.btn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light);
  border-radius: 1px;
  transition: all var(--transition);
}

/* Search bar */
.search-bar {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  border-top: 1px solid transparent;
}
.search-bar.open {
  height: 64px;
  border-top-color: var(--border);
}
.search-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--light-muted); }
.search-close {
  color: var(--light-muted);
  font-size: 1rem;
  padding: 6px 10px;
  transition: color var(--transition);
}
.search-close:hover { color: var(--white); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.mobile-nav.open { max-height: 300px; }
.mobile-nav__link {
  padding: 14px 24px;
  font-size: 0.95rem;
  color: var(--light-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav__link:hover { color: var(--white); background: var(--border); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.shape-1 {
  width: 500px; height: 500px;
  background: rgba(122, 94, 98, 0.18);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 350px; height: 350px;
  background: rgba(74, 144, 226, 0.1);
  bottom: -80px; left: 10%;
}
.shape-3 {
  width: 250px; height: 250px;
  background: rgba(26, 191, 140, 0.08);
  top: 50%; left: 40%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), #C4A0A4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--light-muted);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats {
  display: flex;
  gap: 36px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat span { font-size: 0.78rem; color: var(--light-muted); margin-top: 4px; }

/* Hero camera visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__camera-ring {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  animation: spin-slow linear infinite;
}
.ring-outer {
  width: 320px; height: 320px;
  border-style: dashed;
  border-color: rgba(206,205,209,0.1);
  animation-duration: 40s;
}
.ring-mid {
  width: 260px; height: 260px;
  border-color: rgba(122, 94, 98, 0.25);
  animation-duration: 25s;
  animation-direction: reverse;
}
.ring-inner {
  width: 200px; height: 200px;
  border-color: rgba(122, 94, 98, 0.15);
  animation-duration: 15s;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero__cam-icon {
  width: 140px;
  height: 140px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(0,0,0,0.3);
  border: 1.5px solid var(--border-hover);
  color: var(--accent-light);
  animation: float 4s ease-in-out infinite;
}
.hero__cam-icon svg { width: 80px; height: 80px; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands {
  padding: 90px 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.brand-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  transition: opacity var(--transition);
}
.brand-card--dji::before { background: var(--dji-color); }
.brand-card--gopro::before { background: var(--gopro-color); }
.brand-card--insta360::before { background: var(--insta360-color); }

.brand-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.brand-card__logo {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.brand-card--dji .brand-card__logo { color: var(--dji-color); }
.brand-card--gopro .brand-card__logo { color: var(--gopro-color); }
.brand-card--insta360 .brand-card__logo { color: var(--insta360-color); }

.brand-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.brand-card__tagline {
  font-size: 0.85rem;
  color: var(--light-muted);
  margin-bottom: 18px;
}
.brand-card__count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--light);
}

/* ============================================================
   GALLERY / SHOP
   ============================================================ */
.gallery {
  padding: 90px 0;
}

/* Filters */
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.filters__brand {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
}
.filter-btn--active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.sort-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--light);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239896A0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select:focus { border-color: var(--accent); }
.sort-select option { background: var(--bg-mid); color: var(--light); }

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Product card */
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--new   { background: var(--accent); color: var(--white); }
.badge--sale  { background: #e07b54; color: var(--white); }
.badge--hot   { background: #1ABF8C; color: #0a1f19; }

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(43,41,51,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--light-muted);
  transition: all var(--transition);
  cursor: pointer;
  opacity: 0;
}
.product-card__wishlist svg { width: 16px; height: 16px; }
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover, .product-card__wishlist.active {
  color: #e07b54;
  border-color: #e07b54;
  background: rgba(224,123,84,0.15);
}

/* Camera image / visual area */
.product-card__image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #f0eff4;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Real product image */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.35s ease;
  display: block;
}
.product-card:hover .product-img { transform: scale(1.07); }

/* Brand dot in image */
.product-card__image::after {
  content: attr(data-brand);
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0.8;
}
.product-card__image[data-brand="DJI"]::after     { background: rgba(74,144,226,0.18); color: var(--dji-color); }
.product-card__image[data-brand="GoPro"]::after   { background: rgba(26,191,140,0.18); color: var(--gopro-color); }
.product-card__image[data-brand="Insta360"]::after { background: rgba(224,123,84,0.18); color: var(--insta360-color); }

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.brand-tag--dji     { color: var(--dji-color); }
.brand-tag--gopro   { color: var(--gopro-color); }
.brand-tag--insta360 { color: var(--insta360-color); }

.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-tag {
  background: rgba(206,205,209,0.07);
  border: 1px solid var(--border);
  color: var(--light-muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.stars { color: #F5C842; font-size: 0.8rem; letter-spacing: 1px; }
.rating-count { font-size: 0.75rem; color: var(--light-muted); }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__price {
  display: flex;
  flex-direction: column;
}
.price-original {
  font-size: 0.75rem;
  color: var(--light-muted);
  text-decoration: line-through;
}
.price-current {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.product-card__add {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-card__add:hover {
  background: var(--accent-light);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}
.product-card__add svg { width: 18px; height: 18px; }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--light-muted);
}
.no-results svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--border-hover);
}
.no-results p { margin-bottom: 24px; font-size: 1rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 90px 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.feature-card__icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.875rem; color: var(--light-muted); line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 70px 0 0;
  background: var(--bg-dark);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer__brand .navbar__logo { margin-bottom: 16px; display: inline-flex; }
.footer__brand p { font-size: 0.875rem; color: var(--light-muted); max-width: 260px; line-height: 1.7; }

.footer__links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__links a {
  display: block;
  font-size: 0.875rem;
  color: var(--light-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent-light); }

.footer__newsletter h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.footer__newsletter p { font-size: 0.875rem; color: var(--light-muted); margin-bottom: 18px; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  min-width: 0;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--light-muted); }
.newsletter-form .btn { padding: 10px 20px; white-space: nowrap; }

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--light-muted);
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.cart-overlay.visible,
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ── My Orders Panel ────────────────────────────────────────── */
.orders-btn { position: relative; }

.orders-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}
.orders-panel__tabs {
  display: flex;
  gap: 2px;
  flex: 1;
}
.orders-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 14px 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.orders-tab:hover { color: var(--white); }
.orders-tab.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.orders-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-mid);
  border-left: 1px solid var(--border);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.orders-panel.open { transform: translateX(0); }

.orders-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.orders-panel__footer {
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-mid);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.orders-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}
.order-card__id {
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  margin-right: 8px;
}
.order-card__date {
  font-size: .78rem;
  color: var(--muted);
}
.order-card__items {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-item__img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-dark);
}
.order-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-item__name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item__meta {
  font-size: .75rem;
  color: var(--muted);
}
.order-item__subtotal {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.order-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
}
.order-card__label {
  font-size: .8rem;
  color: var(--muted);
}
.order-card__total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
/* ── Simple Footer ── */
.footer-simple {
  text-align: center;
  padding: 20px 16px;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-simple__sep { margin: 0 8px; }

/* ── Account Settings Panel ── */
.acct-settings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.acct-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acct-section__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.acct-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.acct-avatar-wrap {
  flex-shrink: 0;
}
.acct-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.acct-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.acct-avatar-placeholder svg { width: 36px; height: 36px; }
.acct-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acct-hint {
  font-size: .75rem;
  color: var(--muted);
}
.acct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acct-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acct-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.acct-field input {
  padding: 8px 10px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.acct-field input:focus { border-color: var(--accent-light); }
.acct-field input::placeholder { color: var(--muted); }
.acct-field-row {
  display: flex;
  gap: 10px;
}
.acct-field-row .acct-field { flex: 1; }
.btn--sm {
  padding: 7px 16px;
  font-size: .83rem;
  align-self: flex-start;
}

/* ── Order date groups ── */
.order-date-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--white);
  gap: 10px;
  margin-bottom: 0;
  transition: background .18s;
  text-align: left;
}
.order-date-header:hover { background: var(--bg-mid); }
.order-date-header[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.order-date-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-date-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .22s;
}
.order-date-header[aria-expanded="true"] .order-date-chevron {
  transform: rotate(90deg);
}
.order-date-header__date {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}
.order-date-header__count {
  font-size: .78rem;
  color: var(--muted);
}
.order-date-header__total {
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.order-date-body {
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.order-date-body[hidden] { display: none; }
.order-date-body .order-card {
  border-radius: 8px;
}

.order-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding: 4px 0 8px;
}
.order-section-title span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.op-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  user-select: none;
  transition: background .15s;
}
.op-history-toggle:hover { background: var(--bg-dark); }
.op-history-arrow {
  font-size: .75rem;
  color: var(--muted);
  transition: transform .25s;
}
.op-history-list {
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-mid);
  border-left: 1px solid var(--border);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar__header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-sidebar__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.cart-sidebar__header span { color: var(--light-muted); font-weight: 400; }
.cart-close {
  color: var(--light-muted);
  font-size: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cart-close:hover { background: var(--border); color: var(--white); }

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--light-muted);
  gap: 14px;
  padding: 40px 0;
}
.cart-empty svg { width: 60px; height: 60px; opacity: 0.4; }
.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: #f0eff4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__brand { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--light-muted); }
.cart-item__name { font-size: 0.9rem; font-weight: 600; color: var(--white); margin: 3px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__qty-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--light);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.qty-val { font-size: 0.9rem; font-weight: 600; color: var(--white); min-width: 20px; text-align: center; }
.cart-item__price { font-size: 1rem; font-weight: 700; color: var(--white); }
.cart-item__remove {
  color: var(--light-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  cursor: pointer;
  padding: 4px;
}
.cart-item__remove:hover { color: #e07b54; }

.cart-sidebar__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
.cart-total span { font-size: 0.9rem; color: var(--light-muted); }
.cart-total strong { font-size: 1.3rem; color: var(--white); font-weight: 800; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(6px);
}
.modal-overlay.visible { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 1201;
  width: 900px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg-mid);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-xl);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-hover), 0 0 80px rgba(0,0,0,0.5);
}
.product-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--light-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--white); }

.product-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
  background: #f0eff4;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 36px;
  display: block;
}

.modal-info {
  padding: 40px 36px;
}
.modal-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.modal-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.modal-desc { font-size: 0.9rem; color: var(--light-muted); line-height: 1.7; margin-bottom: 24px; }

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.modal-spec {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.modal-spec__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--light-muted); margin-bottom: 3px; }
.modal-spec__val { font-size: 0.9rem; font-weight: 600; color: var(--white); }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.modal-price-block {}
.modal-price-original { font-size: 0.8rem; color: var(--light-muted); text-decoration: line-through; }
.modal-price-current { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -0.04em; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1280px: tighten container ── */
@media (max-width: 1280px) {
  .container { padding: 0 20px; }
}

/* ── 1100px: 2-col grids ── */
@media (max-width: 1100px) {
  .brand-cards       { grid-template-columns: repeat(2, 1fr); }
  .features__grid    { grid-template-columns: repeat(2, 1fr); }
  .footer__inner     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .products-grid     { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ── 900px: stack hero, collapse modal ── */
@media (max-width: 900px) {
  /* Hero */
  .hero { padding: 72px 0 60px; min-height: auto; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__visual { order: -1; }
  .hero__camera-ring { width: 220px; height: 220px; }
  .ring-outer  { width: 200px; height: 200px; }
  .ring-mid    { width: 164px; height: 164px; }
  .ring-inner  { width: 128px; height: 128px; }
  .hero__cam-icon { width: 100px; height: 100px; }
  .hero__cam-icon svg { width: 60px; height: 60px; }
  .hero__sub  { margin-left: auto; margin-right: auto; }
  .hero__cta  { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero__stats { justify-content: center; }

  /* Brands */
  .brands { padding: 60px 0; }
  .brand-card { padding: 28px 24px; }

  /* Gallery */
  .gallery { padding: 60px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  /* Product modal */
  .product-modal { width: min(560px, calc(100vw - 24px)); }
  .product-modal__inner { grid-template-columns: 1fr; }
  .modal-visual {
    aspect-ratio: auto;
    height: 220px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-info { padding: 24px 22px 28px; }
  .modal-name { font-size: 1.4rem; }

  /* Features / Footer */
  .features { padding: 60px 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ── 768px: mobile nav, single-column layouts ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar__links { display: none; }
  .btn-hamburger { display: flex; }
  .mobile-nav    { display: flex; }
  /* Shrink auth button to icon-only on mid-small */
  .btn--auth { padding: 7px 10px; font-size: 0; gap: 0; }
  .btn--auth svg { margin-right: 0 !important; width: 18px; height: 18px; }
  /* Logged-in pill still shows avatar + name but smaller */
  .auth-user-pill { padding: 5px 10px 5px 6px; font-size: 0.78rem; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero__tag { font-size: 0.72rem; }
  .hero__cta .btn { padding: 11px 22px; font-size: 0.88rem; }

  /* Brands */
  .brand-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Gallery filters */
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filters__brand { flex-wrap: wrap; }
  .sort-select { width: 100%; }
  .section-sub { margin-bottom: 28px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

  /* Features */
  .features__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-card { padding: 28px 22px; }

  /* Footer */
  .footer { padding: 60px 0 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  /* Cart */
  .cart-sidebar { width: 100%; max-width: 100%; border-radius: 0; }

  /* Product modal */
  .product-modal { width: 100%; max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; bottom: 0; top: auto; transform: none; left: 0; }
  .product-modal.open { transform: none; }
  .modal-overlay.visible ~ .product-modal { bottom: 0; }
}

/* ── 600px: tighten further ── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero { padding: 48px 0 40px; }
  .hero__cta { flex-direction: column; align-items: center; gap: 10px; }
  .hero__cta .btn { width: 100%; max-width: 280px; }

  .brand-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brand-card { padding: 22px 18px; }
  .brand-card__logo { font-size: 1.6rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card__body { padding: 14px; }
  .price-current { font-size: 1.1rem; }

  .section-title { margin-bottom: 6px; }

  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form .btn { width: 100%; }
}

/* ── 480px: single-column mobile ── */
@media (max-width: 480px) {
  /* Navbar */
  .navbar__inner { height: 58px; }
  .navbar__logo { font-size: 1rem; }
  .logo-icon { width: 24px; height: 24px; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero__camera-ring { width: 180px; height: 180px; }
  .ring-outer  { width: 164px; height: 164px; }
  .ring-mid    { width: 132px; height: 132px; }
  .ring-inner  { width: 102px; height: 102px; }
  .hero__cam-icon { width: 80px; height: 80px; }
  .hero__cam-icon svg { width: 48px; height: 48px; }
  .hero__stats { flex-direction: column; gap: 16px; align-items: center; }
  .stat strong { font-size: 1.3rem; }

  /* Brands */
  .brands { padding: 44px 0; }
  .brand-cards { grid-template-columns: 1fr; gap: 12px; }

  /* Gallery */
  .gallery { padding: 44px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .filters__brand { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: 0.8rem; }

  /* Features */
  .features { padding: 44px 0; }
  .features__grid { grid-template-columns: 1fr; gap: 14px; }

  /* Modal */
  .modal-specs-grid { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .modal-footer .btn { width: 100%; }
  .modal-info { padding: 20px 18px 24px; }

  /* Cart */
  .cart-sidebar__header { padding: 18px 16px; }
  .cart-sidebar__footer { padding: 16px; }

  /* Auth modal */
  .auth-modal { padding: 28px 18px 24px; border-radius: var(--radius-lg); }
  .auth-field-row { grid-template-columns: 1fr; }
  .auth-avatar-upload { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Footer */
  .footer { padding: 44px 0 0; }
  .footer__brand p { font-size: 0.85rem; }

  /* Sections spacing */
  .brands, .gallery, .features { padding-top: 44px; padding-bottom: 44px; }
  .section-title { font-size: 1.5rem; }
}


/* ============================================================
   AUTH BUTTON (navbar)
   ============================================================ */
.btn--auth {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--auth:hover {
  background: var(--accent);
  color: #fff;
}
.btn--auth.logged-in { background: var(--accent); color: #fff; }

/* Mobile nav login button */
.mobile-nav__login {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--light);
  font-weight: 600;
}

/* ============================================================
   AUTH OVERLAY
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.auth-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 1600;
  width: min(460px, calc(100vw - 32px));
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  background: var(--bg-mid);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px 36px 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.auth-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.auth-modal__close:hover { color: var(--light); background: var(--bg-card); }

/* Logo inside modal */
.auth-modal__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light);
}
.auth-modal__logo .logo-icon { width: 28px; height: 28px; color: var(--accent); }

.auth-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 6px;
}
.auth-modal__sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Panel switching */
.auth-panel { display: block; }
.auth-panel--hidden { display: none; }

/* ============================================================
   AUTH FORM
   ============================================================ */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.03em;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-dark);
  color: var(--light);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 94, 98, 0.25);
}
.auth-field input.error { border-color: #e05454; }
.auth-field input::placeholder { color: var(--muted); }

/* Password field wrapper */
.auth-field__pw {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field__pw input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--light); }
.pw-toggle svg { width: 18px; height: 18px; }

/* Inline error messages */
.auth-field__err {
  font-size: 0.78rem;
  color: #e07b7b;
  min-height: 16px;
}

/* Row: remember + forgot */
.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

/* Checkbox */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Text links inside auth */
.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.auth-link:hover { opacity: 0.75; }

.auth-modal__switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 20px;
}

/* User greeting pill (post-login) */
.auth-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.auth-user-pill:hover { opacity: 0.85; }
.auth-user-pill__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

/* ---- Avatar Upload ---- */
.auth-avatar-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--bg-dark);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.auth-avatar-upload:hover { border-color: var(--accent); }

.auth-avatar-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.auth-avatar-preview:hover { border-color: var(--accent); }
.auth-avatar-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.auth-avatar-placeholder { width: 36px; height: 36px; color: var(--muted); }

.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  border-radius: 50%;
}
.auth-avatar-preview:hover .auth-avatar-overlay { opacity: 1; }

.auth-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.auth-avatar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light);
}
.auth-avatar-hint {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.auth-avatar-hint em { font-style: normal; color: var(--muted); }
.auth-avatar-change { font-size: 0.8rem; margin-top: 2px; }

/* Has image: hide placeholder */
.auth-avatar-preview.has-image .auth-avatar-placeholder { display: none; }
.auth-avatar-preview.has-image .auth-avatar-img { display: block !important; }

/* ---- Section divider ---- */
.auth-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 4px 0 2px;
}
.auth-section-divider::before,
.auth-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-section-opt {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ---- Two-column field row ---- */
.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-field--sm input { min-width: 0; }

/* ---- Select input ---- */
.auth-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-dark);
  color: var(--light);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CECDD1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.auth-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 94, 98, 0.25);
}
.auth-select option { background: var(--bg-mid); color: var(--light); }

/* ============================================================
   NEW FEATURE STYLES (v2)
   ============================================================ */

/* ── Price range filter ── */
.filters__price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-range-label { color: var(--muted); font-size: .85rem; }
.price-range-sep   { color: var(--muted); }
.price-input {
  width: 88px;
  padding: 7px 10px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
}
.price-input:focus { border-color: var(--accent-light); }
.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.filters__search { display: flex; align-items: center; gap: 6px; }
.filter-search-input {
  width: 180px;
  padding: 7px 10px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
}
.filter-search-input::placeholder { color: var(--muted); }
.filter-search-input:focus { border-color: var(--accent-light); }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pagination__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.pagination__btn:disabled { opacity: .35; cursor: not-allowed; }
.pagination__btn svg { width: 16px; height: 16px; }
.pagination__pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination__page {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pagination__page:hover { background: rgba(122,94,98,.3); border-color: var(--accent-light); }
.pagination__page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Stock badges ── */
.stock-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .03em;
  margin-top: 4px;
}
.stock-badge--low  { background: rgba(234,179,8,.15); color: #eab308; }
.stock-badge--out  { background: rgba(239,68,68,.15);  color: #ef4444; }
.stock-badge--ok   { background: rgba(34,197,94,.12);  color: #22c55e; }

/* ── Notification bell ── */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* ── Admin dash button ── */
.admin-dash-btn svg rect { rx: 1px; }

/* ── Notification Dropdown ── */
.notif-dropdown {
  position: fixed;
  top: 68px;
  right: 16px;
  width: 340px;
  max-height: 440px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.notif-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.notif-dropdown__title { font-weight: 600; font-size: .95rem; }
.notif-mark-all { font-size: .8rem; }
.notif-dropdown__list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.notif-empty {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 32px 16px;
}
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item.unread { background: rgba(122,94,98,.12); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}
.notif-item__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(122,94,98,.25);
  display: flex; align-items: center; justify-content: center;
}
.notif-item__icon svg { width: 16px; height: 16px; }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title { font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
.notif-item__msg { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item__time { font-size: .72rem; color: var(--muted); margin-top: 3px; }

/* ── Auth extra panels ── */
.auth-success-icon {
  display: flex;
  justify-content: center;
  margin: 12px 0 20px;
  color: var(--accent-light);
}

/* ── Admin Modal ── */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.admin-overlay.open { opacity: 1; pointer-events: all; }

.admin-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -44%);
  width: min(960px, 96vw);
  max-height: 86vh;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  z-index: 3600;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  overflow: hidden;
}
.admin-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.admin-modal__header h2 { font-size: 1.15rem; font-weight: 700; }
.admin-modal__tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.admin-tab {
  padding: 12px 20px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.admin-tab:hover { color: var(--light); }
.admin-tab--active { color: var(--accent-light); border-bottom-color: var(--accent-light); }
.admin-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Admin toolbar */
.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .875rem;
  outline: none;
}
.admin-search:focus { border-color: var(--accent-light); }
.admin-role-filter {
  padding: 8px 10px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--light);
  font-size: .875rem;
  cursor: pointer;
  outline: none;
}

/* Admin table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }

/* Role pills */
.role-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.role-pill--customer   { background: rgba(99,102,241,.2); color: #818cf8; }
.role-pill--admin      { background: rgba(234,179,8,.2);  color: #eab308; }
.role-pill--superadmin { background: rgba(239,68,68,.2);  color: #f87171; }

/* Order status pills */
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.status-pill--pending    { background: rgba(234,179,8,.2);  color: #eab308; }
.status-pill--processing { background: rgba(59,130,246,.2); color: #60a5fa; }
.status-pill--shipped    { background: rgba(168,85,247,.2); color: #c084fc; }
.status-pill--delivered  { background: rgba(34,197,94,.2);  color: #4ade80; }
.status-pill--cancelled  { background: rgba(239,68,68,.2);  color: #f87171; }
.status-pill--payment    { background: rgba(16,185,129,.15); color: #34d399; }

/* ── Checkout Modal ─────────────────────────────────────────── */
.co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.co-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.co-modal {
  background: var(--bg-card);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.97);
  transition: transform .25s;
}
.co-overlay.open .co-modal {
  transform: translateY(0) scale(1);
}
.co-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.co-modal__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.co-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.co-modal__footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.co-modal__footer .btn { flex: 1; }

/* sections */
.co-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-section__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.co-section__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .85rem;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

/* payment methods */
.co-payment-methods {
  display: flex;
  gap: 10px;
}
.co-pm-option {
  flex: 1;
  cursor: pointer;
}
.co-pm-option input { display: none; }
.co-pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color .15s, background .15s;
  text-align: center;
}
.co-pm-option.active .co-pm-card {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb, 99,102,241),.08);
}
.co-pm-icon { font-size: 1.5rem; line-height: 1; }
.co-pm-label { font-size: .85rem; font-weight: 700; color: var(--white); }
.co-pm-sub   { font-size: .72rem; color: var(--muted); }

/* address display */
.co-addr-display {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--light);
}

/* address form */
.co-addr-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.co-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.co-form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

/* same address checkbox */
.co-same-addr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--light);
  cursor: pointer;
}
.co-same-addr-label input { cursor: pointer; accent-color: var(--accent); }

/* order summary */
.co-summary-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.co-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-summary-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.co-summary-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.co-summary-name { font-size: .85rem; font-weight: 600; color: var(--white); }
.co-summary-meta { font-size: .75rem; color: var(--muted); }
.co-summary-price { font-size: .88rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.co-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 600px) {
  .co-modal { max-width: 100%; border-radius: 20px 20px 0 0; align-self: flex-end; }
  .co-payment-methods { flex-direction: column; }
  .co-form-row { grid-template-columns: 1fr; }
}

/* Admin action buttons */
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn--xs {
  padding: 4px 10px;
  font-size: .75rem;
  border-radius: 6px;
}

/* Admin pagination */
.admin-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.admin-pagination .pagination__btn,
.admin-pagination .pagination__page { min-width: 32px; width: 32px; height: 32px; font-size: .8rem; }

/* Verified badge */
.verified-badge { color: #4ade80; }
.unverified-badge { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .notif-dropdown { width: calc(100vw - 16px); right: 8px; }
  .filters__price-range { flex-wrap: wrap; }
  .price-input { width: 76px; }
}

/* ============================================================
   ADMIN DASHBOARD — Sidebar Panel
   ============================================================ */

/* Full-screen slide-in panel */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: flex;
  flex-direction: row;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateX(2%);
  transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
}
.admin-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-card);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar__logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent-light);
}
.admin-sidebar__title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--light);
  line-height: 1.2;
}
.admin-sidebar__sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Nav items */
.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  overflow-y: auto;
}
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: background .18s, color .18s;
}
.admin-nav__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.admin-nav__item:hover {
  background: rgba(255,255,255,.06);
  color: var(--light);
}
.admin-nav__item--active {
  background: rgba(155,124,128,.15);
  color: var(--accent-light);
}

/* Sidebar footer */
.admin-sidebar__footer {
  padding: 14px 10px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-sidebar__user {
  font-size: .78rem;
  color: var(--muted);
  padding: 4px 6px;
  line-height: 1.5;
}
.admin-sidebar__user strong {
  display: block;
  color: var(--light);
  font-weight: 600;
  font-size: .84rem;
}
.admin-sidebar__close-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  transition: background .18s, color .18s;
}
.admin-sidebar__close-btn svg {
  width: 16px;
  height: 16px;
}
.admin-sidebar__close-btn:hover {
  background: rgba(239,68,68,.12);
  color: #f87171;
}

/* ── Main content area ── */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.admin-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  background: var(--bg-mid);
}
.admin-main__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light);
  margin: 0;
}
.admin-main__sub {
  font-size: .8rem;
  color: var(--muted);
  margin: 2px 0 0;
}
.admin-main__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
}

/* ── Loading / Error states ── */
.admin-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.admin-error {
  padding: 20px;
  color: #f87171;
  font-size: .9rem;
}

/* ============================================================
   DASHBOARD — Stat Cards
   ============================================================ */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .2s;
}
.dash-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.dash-card__icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-card--revenue .dash-card__icon { background: rgba(74,222,128,.1); }
.dash-card--orders  .dash-card__icon { background: rgba(96,165,250,.1); }
.dash-card--users   .dash-card__icon { background: rgba(192,132,252,.1); }
.dash-card--products .dash-card__icon { background: rgba(251,191,36,.1); }
.dash-card__label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.dash-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1;
}
.dash-card__sub {
  font-size: .73rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   DASHBOARD — Widget grid
   ============================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dash-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 18px 20px;
  overflow: hidden;
}
.dash-widget--chart { grid-column: 1; }
.dash-widget--status { grid-column: 2; }
.dash-widget--orders { grid-column: 1 / -1; }
.dash-widget--users { grid-column: 1; }
.dash-widget--lowstock { grid-column: 2; }
.dash-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-widget__header h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--light);
  margin: 0;
}

/* ── Bar chart ── */
.dash-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 120px;
  padding-top: 8px;
}
.dash-chart__empty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin: auto;
  align-self: center;
}
.dash-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.dash-bar__fill {
  width: 100%;
  min-height: 4px;
  background: var(--accent-light);
  border-radius: 4px 4px 0 0;
  transition: height .4s ease;
  cursor: default;
  opacity: .85;
}
.dash-bar:hover .dash-bar__fill { opacity: 1; }
.dash-bar__label {
  font-size: .62rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Order status bars ── */
.dash-status-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dash-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-status-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: capitalize;
  min-width: 80px;
}
.dash-status-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
}
.dash-status-fill {
  height: 100%;
  border-radius: 10px;
  min-width: 4px;
  transition: width .5s ease;
  opacity: .8;
}
.dash-status-count {
  font-size: .78rem;
  color: var(--muted);
  min-width: 28px;
  text-align: right;
}

/* ── Recent users list ── */
.dash-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dash-user-row:last-child { border-bottom: none; }
.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dash-user-name {
  font-size: .85rem;
  color: var(--light);
  font-weight: 500;
}
.dash-user-email {
  font-size: .73rem;
  color: var(--muted);
}
.dash-user-row .role-pill {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Auth link style inside panels ── */
.auth-link {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: .78rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — Sidebar dashboard
   ============================================================ */
@media (max-width: 900px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-widget--chart,
  .dash-widget--status,
  .dash-widget--orders,
  .dash-widget--users,
  .dash-widget--lowstock { grid-column: 1; }
}

@media (max-width: 680px) {
  .admin-sidebar {
    width: 60px;
    min-width: 60px;
  }
  .admin-sidebar__brand { padding: 16px 13px; }
  .admin-sidebar__logo { width: 28px; height: 28px; }
  .admin-sidebar__title,
  .admin-sidebar__sub,
  .admin-nav__item span,
  .admin-sidebar__close-btn span,
  .admin-sidebar__user { display: none; }
  .admin-nav__item { justify-content: center; padding: 11px; }
  .admin-sidebar__close-btn { justify-content: center; padding: 10px; }
  .admin-sidebar__brand > div { display: none; }
  .admin-main__header { padding: 14px 16px 12px; }
  .admin-main__body { padding: 16px 16px 24px; }
  .dash-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-card { padding: 14px; gap: 10px; }
  .dash-card__value { font-size: 1.2rem; }
}

@media (max-width: 420px) {
  .dash-cards { grid-template-columns: 1fr; }
}
