/* =========================================================
   RoLimiteds — Pixel-Perfect Stylesheet
   Modern Dark Cyberpunk / Ice Theme for Roblox Limiteds
   rolimiteds.store
   ========================================================= */

:root {
  --bg-main: #06090e;
  --bg-card: #0c1017;
  --bg-card-hover: #101622;
  --bg-card-subtle: #080d14;
  --bg-pill: #0e1420;
  --bg-pill-active: #182234;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-card: #151c2a;
  --border-cyan: rgba(56, 189, 248, 0.35);
  
  --accent-cyan: #38bdf8;
  --accent-cyan-bright: #00b4d8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --accent-green-bright: #22c55e;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #041c2c;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.12);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-subtle: #e2e8f0;
  --bg-pill: #e2e8f0;
  --bg-pill-active: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: #cbd5e1;
  --border-cyan: rgba(2, 132, 199, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(2, 132, 199, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────────────────
   1. TOP NOTIFICATION BANNER
   ───────────────────────────────────────────────────────── */
.top-banner {
  background: linear-gradient(90deg, #00b4d8 0%, #38bdf8 50%, #00b4d8 100%);
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.25);
}

.top-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-link {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.banner-link:hover {
  opacity: 0.85;
}

.banner-center {
  text-align: center;
  flex: 1;
}

.banner-right {
  text-align: right;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   2. NAVIGATION BAR
   ───────────────────────────────────────────────────────── */
.site-header {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-gem {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gem-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.logo-text {
  color: var(--text-primary);
}

/* Center Pill Nav Menu */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border-card);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
}

.nav-pill {
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-pill.active {
  background-color: var(--bg-pill-active);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Right Nav Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
}

.icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-cyan);
  background-color: var(--bg-card-hover);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.login-btn {
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
}

.login-btn:hover {
  border-color: var(--accent-cyan);
  background-color: var(--bg-card-hover);
  color: var(--accent-cyan);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-cyan);
  color: #041c2c;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}

.burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 16px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background-color: var(--bg-pill-active);
  color: var(--accent-cyan);
}

/* ─────────────────────────────────────────────────────────
   3. HERO SECTION
   ───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 64px 24px 50px 24px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

/* Frosted Ambient Backdrop */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.16) 0%, rgba(6, 9, 14, 0.88) 65%, var(--bg-main) 100%);
}

.ice-avatar-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 480px;
  background-image: 
    radial-gradient(ellipse at center, rgba(56, 189, 248, 0.22) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.02) 0px, rgba(56, 189, 248, 0.02) 2px, transparent 2px, transparent 12px);
  filter: blur(2px);
  opacity: 0.9;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-cyan {
  width: 380px;
  height: 380px;
  background: rgba(56, 189, 248, 0.15);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.glow-blue {
  width: 500px;
  height: 300px;
  background: rgba(37, 99, 235, 0.12);
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.sparkle {
  color: var(--accent-cyan);
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
}

.hero-brand {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(56, 189, 248, 0.4);
}

.text-accent {
  color: var(--accent-cyan);
}

.hero-subtext {
  font-size: 19px;
  font-weight: 500;
  color: #dbeafe;
  margin-bottom: 38px;
}

/* Counters Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 32px auto;
}

.stat-card {
  padding: 12px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(56, 189, 248, 0.35);
}

.star-rating {
  color: #38bdf8;
  font-size: 32px;
}

.stat-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Checkmarks Row */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-icon {
  width: 17px;
  height: 17px;
  color: var(--accent-cyan);
}

/* ─────────────────────────────────────────────────────────
   4. LARGEST SALES THIS WEEK SECTION
   ───────────────────────────────────────────────────────── */
.featured-sales-section {
  padding: 44px 0 28px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.largest-sales-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.largest-sales-row::-webkit-scrollbar {
  height: 6px;
}

.largest-sales-row::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 3px;
}

.sale-pill-card {
  flex: 0 0 calc(16.666% - 14px);
  min-width: 175px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.sale-pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.08);
}

.sale-thumb-wrap {
  width: 95px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sale-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.sale-pill-card:hover .sale-thumb-wrap img {
  transform: scale(1.08);
}

.sale-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sale-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────
   5. ALL PRODUCTS SECTION & GRID
   ───────────────────────────────────────────────────────── */
.products-section {
  padding: 36px 0 80px 0;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.products-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.highlight-blue {
  color: var(--accent-cyan);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  width: 290px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  transition: var(--transition);
}

.search-wrap input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--accent-cyan-glow);
}

.filter-controls select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-controls select:focus {
  border-color: var(--accent-cyan);
}

/* Products Grid (4 cols on desktop) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card Anatomy matching Screenshot 2-6 */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

/* Diamond / Gem Badge Top Right */
.gem-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  z-index: 5;
}

.gem-badge svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
}

/* Item Image Box */
.card-img-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px;
}

.card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}

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

/* Item Title */
.card-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stock Status Pill */
.card-stock {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green-bright);
  margin-bottom: 16px;
}

/* Bottom Price & Action Row */
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price-col {
  display: flex;
  flex-direction: column;
}

.your-price-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

.price-strike {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.2;
  margin-bottom: 2px;
}

.price-main {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background-color: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.card-action-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.product-card:hover .card-action-btn {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #041c2c;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.product-card:hover .card-action-btn svg {
  transform: translateX(2px);
}

/* Empty Search State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state.hidden {
  display: none;
}

.btn-reset {
  margin-top: 14px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-cyan);
  color: #041c2c;
  font-weight: 700;
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────
   6. CART DRAWER
   ───────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-card);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.close-cart-btn {
  font-size: 24px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.close-cart-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-secondary);
}

.empty-cart-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cart-empty p {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.cart-empty span {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.cart-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
}
.cart-item-remove:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-card);
  background-color: var(--bg-card-subtle);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-total-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-cyan);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00b4d8 0%, #38bdf8 100%);
  color: #041c2c;
  font-size: 15.5px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.checkout-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.cart-guarantee {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────
   7. MODALS (CHECKOUT & INFO)
   ───────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 26px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 10;
}
.modal-close:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Checkout Modal Specifics */
.checkout-modal-card {
  width: 780px;
  max-width: 95vw;
  padding: 32px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.checkout-item-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.checkout-thumb-box {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.checkout-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

.modal-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px 0;
}

.modal-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-sale-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stock-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-green-bright);
  background-color: rgba(34, 197, 94, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.item-perks {
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.checkout-form-side h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.checkout-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-with-icon {
  display: flex;
  gap: 8px;
}

.input-with-icon input,
.form-group input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.input-with-icon input:focus,
.form-group input[type="email"]:focus {
  border-color: var(--accent-cyan);
}

.verify-user-btn {
  padding: 0 16px;
  background-color: var(--bg-pill-active);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.verify-user-btn:hover {
  background-color: var(--accent-cyan);
  color: #041c2c;
}

.form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pay-option input {
  display: none;
}

.pay-logo {
  font-size: 18px;
}

.pay-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pay-option:has(input:checked) {
  border-color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.08);
}

.pay-option:has(input:checked) .pay-name {
  color: var(--text-primary);
}

.submit-order-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #00b4d8 0%, #38bdf8 100%);
  color: #041c2c;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.submit-order-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Info Modal */
.info-modal-card {
  width: 600px;
  max-width: 95vw;
  padding: 32px;
}

.info-modal-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.info-modal-content p, 
.info-modal-content li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.info-modal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: #0f172a;
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────
   8. FOOTER
   ───────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-slogan {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-group h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.footer-links-group a:hover {
  color: var(--accent-cyan);
}

.support-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-support {
  padding: 8px 16px;
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.btn-support:hover {
  background-color: var(--accent-cyan);
  color: #041c2c;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 11.5px;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────
   9. RESPONSIVE QUERIES
   ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sale-pill-card {
    flex: 0 0 calc(25% - 14px);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-pills {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sale-pill-card {
    flex: 0 0 calc(40% - 14px);
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-item-preview {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .checkout-thumb-box {
    width: 90px;
    height: 90px;
    margin-bottom: 0;
  }
  .hero-brand {
    font-size: 44px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .top-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .banner-right {
    display: none;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .sale-pill-card {
    flex: 0 0 75%;
  }
  .hero-brand {
    font-size: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
