/* ================================================================
   GTL STORE — css/style.css
   Brand: #CCFF00 lemon on #0a0a0a deep dark
   Fully Responsive & Cross-Device Typography System
   ================================================================ */

/* Fonts: Clash Display from Fontshare CDN + DM Sans from Google Fonts */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --brand:        #CCFF00;
  --brand-dim:    #aad900;
  --danger:       #ff4b4b;
  --success:      #00e676;
  --info:         #29b6f6;
  
  /* Fonts & spacing */
  --r:            10px;
  --r-lg:         16px;
  --r-xl:         24px;
  --transition:   .18s ease;
  --font-h:       'Clash Display', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-b:       'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-h:        68px;
  
  /* Dark Mode (Default) */
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #181818;
  --bg-4:         #222222;
  --bg-5:         #2c2c2c;
  --text:         #f4f4f4;
  --text-2:       #aaaaaa;
  --text-3:       #666666;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --brand-ghost:  rgba(204,255,0,0.08);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.4);
  --shadow:       0 6px 24px rgba(0,0,0,.55);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.7);
  --glow:         0 0 28px rgba(204,255,0,.2);
  --navbar-bg:    rgba(10,10,10,.94);
  --navbar-border: rgba(255,255,255,0.08);
}

/* Light Mode */
html[data-theme="light"] {
  --bg:           #ffffff;
  --bg-2:         #f8f8f8;
  --bg-3:         #f0f0f0;
  --bg-4:         #e8e8e8;
  --bg-5:         #e0e0e0;
  --text:         #1a1a1a;
  --text-2:       #555555;
  --text-3:       #999999;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.18);
  --brand-ghost:  rgba(204,255,0,0.12);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow:       0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.16);
  --glow:         0 0 28px rgba(204,255,0,.15);
  --navbar-bg:    rgba(255,255,255,.94);
  --navbar-border: rgba(0,0,0,0.08);
}

/* ── Reset & Baseline ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: clamp(0.875rem, 0.4vw + 0.8rem, 1rem);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: inherit;
  text-decoration: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--navbar-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--navbar-border);
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  transition: all var(--transition);
}

.nav-logo {
  font-family: var(--font-h);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo em {
  color: var(--brand);
  font-style: normal;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 2vw, .85rem);
  flex-shrink: 0;
}

/* Cart & Wishlist Icon Buttons */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.nav-cart:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-badge, .wishlist-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand);
  color: #0a0a0a;
  font-size: .62rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wishlist-badge {
  background: #ff4b4b;
  color: #ffffff;
}

/* Prominent Theme Toggle Pill */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border-radius: 50px;
  border: 1px solid var(--border-hover);
  background: var(--bg-3);
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  user-select: none;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--brand-ghost);
}

.theme-toggle i {
  font-size: .85rem;
  transition: transform .3s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg) scale(1.1);
}

.theme-toggle-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-login-btn {
  background: var(--brand);
  color: #0a0a0a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .45rem 1.1rem;
  border-radius: var(--r);
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.nav-login-btn:hover {
  background: var(--brand-dim);
  box-shadow: var(--glow);
}

.nav-user-widget {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-user-widget.hidden, .nav-login-link.hidden {
  display: none !important;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), rgba(204,255,0,.08));
  border: 2px solid rgba(204,255,0,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: var(--brand);
  font-family: var(--font-h);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(204,255,0,.25);
  border-color: var(--brand);
}

.btn-ghost-sm {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: rgba(255,255,255,.05);
  white-space: nowrap;
}

.btn-ghost-sm:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,.1);
}

/* Burger Menu Toggle */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s ease;
}

/* Mobile Nav Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 195;
  padding: 1.25rem clamp(1rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 1rem;
  font-weight: 600;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav .nav-link:last-child {
  border: none;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .015em;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 46px;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--brand);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--brand-dim);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: .88;
}

.btn-dark {
  background: var(--bg-4);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  background: var(--bg-5);
}

.btn-sm {
  padding: .45rem .9rem;
  font-size: .82rem;
  min-height: 36px;
}

.btn-lg {
  padding: .9rem 2.2rem;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── FORMS & INPUTS ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: .45rem;
}

.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 16px; /* 16px prevents iOS Safari zoom on focus */
  padding: .8rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 46px;
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(204,255,0,.1);
}

.form-input::placeholder {
  color: var(--text-3);
}

.form-input.error {
  border-color: var(--danger);
}

.form-error {
  font-size: .78rem;
  color: #ff8080;
  margin-top: .35rem;
}

.form-hint {
  font-size: .78rem;
  color: var(--text-3);
  margin-top: .35rem;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  background: var(--bg);
  transition: background-color var(--transition);
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(204,255,0,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(204,255,0,.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: .4;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-ghost);
  border: 1px solid rgba(204,255,0,.25);
  color: var(--brand);
  font-size: clamp(.68rem, 1.5vw, .75rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.hero h1 .line-accent {
  color: var(--brand);
  display: block;
}

.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 3.5rem);
  width: 100%;
}

.section--bordered {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: .6rem;
}

.section-sub {
  color: var(--text-2);
  font-size: clamp(.85rem, 1.5vw, .98rem);
  max-width: 480px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── FILTER TABS ─────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
}

.filter-tab {
  padding: .4rem .95rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #0a0a0a;
}

/* ── PRODUCT GRID & CARDS ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  animation: fadeIn .4s ease-out;
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(204,255,0,.15);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-3);
  width: 100%;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.23,1,.320,1);
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--brand);
  color: #0a0a0a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: 4px;
  z-index: 2;
}

.product-card__wishlist-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,10,10,0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 3;
  cursor: pointer;
}

.product-card__wishlist-btn:hover,
.product-card__wishlist-btn.active {
  background: #ff4b4b;
  border-color: #ff4b4b;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255,75,75,0.4);
}

.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: .65rem;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.34,.1,.64,.1);
  border-top: 2px solid var(--brand);
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
}

.product-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
}

.product-card__category {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: .9;
}

.product-card__name {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.28;
  transition: color var(--transition);
}

.product-card:hover .product-card__name {
  color: var(--brand);
}

.product-card__desc {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.48;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .8rem;
  gap: .5rem;
}

.product-card__price {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--brand);
}

.product-card__price sub {
  font-size: .65rem;
  font-weight: 500;
  vertical-align: .2em;
  font-family: var(--font-b);
}

/* ── CART PAGE ──────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cart-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .3rem;
}

.cart-count {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__img {
  width: 90px;
  height: 90px;
  border-radius: var(--r);
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}

.cart-item__name {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.cart-item__cat {
  font-size: .72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.cart-item__price {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--brand);
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.cart-item__line-total {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.qty-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
}

.cart-remove {
  font-size: .75rem;
  color: var(--text-3);
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--transition);
}

.cart-remove:hover {
  color: var(--danger);
}

.order-summary {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  width: 100%;
}

.order-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text-2);
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 1.25rem;
  border-top: 2px solid var(--brand);
  margin-top: .75rem;
}

.summary-total span:first-child {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}

.summary-total-price {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
.checkout-wrapper {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  width: 100%;
}

.checkout-column {
  width: 100%;
}

.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  width: 100%;
}

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  width: 100%;
}

.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: min(440px, 94vw);
  margin: 0 auto;
}

.auth-logo {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-logo em {
  color: var(--brand);
  font-style: normal;
}

.auth-title {
  font-size: 1.6rem;
  margin-bottom: .3rem;
}

.auth-sub {
  color: var(--text-2);
  font-size: .875rem;
  margin-bottom: 1.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-3);
  font-size: .8rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  font-size: .85rem;
  color: var(--text-2);
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--brand);
  font-weight: 600;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3.5rem) 2rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
}

.footer-section-brand .footer-logo {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.footer-section-brand .footer-logo em {
  color: var(--brand);
  font-style: normal;
}

.footer-desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 220px;
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.footer-section-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-links a, .footer-contact a {
  font-size: .85rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--brand);
}

.footer-social {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 1.2rem;
  color: var(--text-2);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.social-icon:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-ghost);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem clamp(1rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}

.footer-bottom p {
  font-size: .78rem;
  color: var(--text-3);
}

/* ── ALERTS & TOASTS ────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--r);
  font-size: .85rem;
  margin-bottom: 1rem;
  width: 100%;
}

.alert-error {
  background: rgba(255,75,75,.12);
  border: 1px solid rgba(255,75,75,.35);
  color: #ff9999;
}

.alert-success {
  background: rgba(0,230,118,.1);
  border: 1px solid rgba(0,230,118,.3);
  color: #80ffbf;
}

.gtl-toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .65rem 1.4rem;
  font-size: .85rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all .28s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtl-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gtl-toast--success {
  border-color: rgba(204,255,0,.4);
  color: var(--brand);
}

.gtl-toast--error {
  border-color: rgba(255,75,75,.4);
  color: #ff9999;
}

/* ── PAGE LOADER ─────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease;
}

.page-loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.hidden {
  display: none !important;
}

/* ── SYSTEM RESPONSIVE BREAKPOINTS ───────────────────────────── */

/* Desktop Large (1280px+) */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Laptops & Small Desktops (1024px to 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets / iPads (768px to 1023px) */
@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .order-summary {
    position: static;
    top: auto;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .checkout-summary {
    position: static;
    top: auto;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-section-social {
    grid-column: 1 / -1;
  }
}

/* Mobile & Small Tablets (768px and below) */
@media (max-width: 768px) {
  .nav-center {
    display: none;
  }
  .burger {
    display: flex;
  }
  .product-card__quick-add {
    transform: translateY(0);
    border-top: none;
    background: rgba(10,10,10,.85);
  }
}

/* Small Tablets / Large Mobile (600px and below) */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
  }
  .product-card__body {
    padding: .85rem .9rem 1rem;
  }
  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
  }
  .product-card__footer .btn {
    width: 100%;
  }
  .checkout-form-row {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-section-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: .85rem;
  }
  .cart-item__img {
    width: 70px;
    height: 70px;
  }
  .cart-item__right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: .5rem;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
  }
  .filter-tabs {
    gap: .35rem;
  }
  .filter-tab {
    padding: .35rem .75rem;
    font-size: .75rem;
  }
  .product-card__badge {
    font-size: .55rem;
    padding: .15rem .45rem;
  }
  .product-card__wishlist-btn {
    width: 32px;
    height: 32px;
    font-size: .85rem;
  }
}

/* Extra Small Phones (360px and below) */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    padding: .6rem 1rem;
    font-size: .8rem;
  }
}
