/* ========== CSS Variables ========== */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-light: #1a1a24;
  --accent: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ========== Utility Classes ========== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-only {
  display: none;
}

/* ========== Buttons ========== */
.btn-primary {
  background: var(--gradient);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-text {
  color: var(--accent);
  font-weight: 500;
  background: none;
  border: none;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ========== Age Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.age-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.age-modal-content {
  padding: 3rem 2rem;
  text-align: center;
}

.age-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.age-modal h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.age-modal p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-warning {
  font-size: 0.8rem;
  color: var(--warning);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-dark);
}

.header-top {
  background: var(--bg-card);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.free-shipping {
  color: var(--accent);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
}

.language-selector select option {
  background: var(--bg-card);
}

.header-top-right a {
  color: var(--text-secondary);
}

.header-top-right a:hover {
  color: var(--accent);
}

.header-main {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header-main-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  background: var(--bg-light);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  color: var(--accent);
}

.icon-btn .icon {
  font-size: 1.5rem;
}

.icon-btn .label {
  font-size: 0.75rem;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.hidden {
  display: none;
}

.user-menu {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 150px;
  display: none;
  box-shadow: var(--shadow);
}

.dropdown.active {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.header-nav {
  background: var(--bg-card);
  padding: 0.75rem 0;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: var(--shadow);
}

.hero-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-card-image {
  font-size: 8rem;
  margin: 1rem 0;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ========== Features ========== */
.features {
  padding: 3rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========== Sections ========== */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--bg-card);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2, .section-title {
  font-family: var(--font-display);
  font-size: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.view-all {
  color: var(--accent);
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

/* ========== Products Grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.product-image {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--error);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-info {
  padding: 1.25rem;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-price .current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price .compare {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .btn-primary {
  width: 100%;
  padding: 0.75rem;
}

/* ========== Categories Grid ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.category-card h4 {
  font-size: 0.9rem;
  font-weight: 500;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========== Blog Grid ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-image {
  height: 180px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Products Page ========== */
.page {
  display: none;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page.active {
  display: block;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.filters-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 180px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.filter-options input[type="checkbox"] {
  accent-color: var(--accent);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-inputs input {
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-count {
  color: var(--text-secondary);
}

.sort-select select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination button:hover, .pagination button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Product Detail ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-gallery {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12rem;
  min-height: 400px;
}

.product-details h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-details .brand {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-details .price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-details .current-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.product-details .compare-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-details .stock {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.product-details .stock.in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.product-details .stock.low-stock {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.product-details .stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-selector label {
  color: var(--text-secondary);
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.quantity-controls button {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.quantity-controls input {
  width: 60px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.product-description {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.product-description h3 {
  margin-bottom: 1rem;
}

.product-description p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== Cart Page ========== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cart-item-info h4 {
  margin-bottom: 0.25rem;
}

.cart-item-info .price {
  color: var(--accent);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-quantity button {
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border-radius: 8px;
  color: var(--text-primary);
}

.cart-item-quantity span {
  width: 40px;
  text-align: center;
}

.cart-item-remove {
  color: var(--error);
  font-size: 1.25rem;
}

.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 180px;
}

.cart-summary h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.cart-summary .btn-primary {
  width: 100%;
  margin-top: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.cart-empty h2 {
  margin-bottom: 0.5rem;
}

.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== Checkout Page ========== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
}

.checkout-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.checkout-form h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* ========== Auth Pages ========== */
.auth-card {
  max-width: 450px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card .btn-primary {
  margin-top: 1rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.auth-link a {
  color: var(--accent);
  font-weight: 500;
}

/* Password Input */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}

.password-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: var(--accent);
}

.payment-option input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.payment-option input[type="radio"]:checked + .payment-label {
  color: var(--accent);
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.payment-icon {
  font-size: 1.5rem;
}

/* ========== Track Order ========== */
.track-card {
  max-width: 500px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.track-card h1 {
  margin-bottom: 2rem;
}

#track-result {
  margin-top: 2rem;
  text-align: left;
}

.track-status {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.track-status .status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.track-status .status-badge.pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.track-status .status-badge.processing { background: rgba(0, 212, 255, 0.1); color: var(--accent); }
.track-status .status-badge.shipped { background: rgba(124, 58, 237, 0.1); color: var(--accent-secondary); }
.track-status .status-badge.delivered { background: rgba(16, 185, 129, 0.1); color: var(--success); }

/* ========== Footer ========== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.age-notice {
  color: var(--warning);
}

/* ========== Toast Notifications ========== */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--accent); }

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

/* ========== Loading States ========== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== RTL Support ========== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .hero-content {
  direction: rtl;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: 1001;
    border-radius: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .filters-sidebar.active {
    left: 0;
  }
  .mobile-only {
    display: flex;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-top-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  .search-bar {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
  }
  .header-main-content {
    flex-wrap: wrap;
  }
  .icon-btn .label {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-nav {
    display: none;
  }
  .header-nav.active {
    display: block;
  }
  .nav-links {
    flex-direction: column;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  .cart-item-quantity, .cart-item-remove {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .age-buttons {
    flex-direction: column;
  }
}


/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Contact Page */
.contact-grid {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}


/* Password hint */
.password-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}


/* Verification Forms */
.verification-header {
  text-align: center;
  margin-bottom: 2rem;
}

.verification-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.verification-header h2 {
  margin-bottom: 0.5rem;
}

.verification-header p {
  color: var(--text-muted);
}

.code-input {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  padding: 1rem;
}

.resend-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resend-link a {
  color: var(--accent);
  text-decoration: none;
}

.resend-link a:hover {
  text-decoration: underline;
}


/* Account Page Styles */
.account-header {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-msg {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.account-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.account-card-header {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.account-icon {
  font-size: 1.5rem;
}

.account-card-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.account-card-body {
  padding: 1.5rem;
}

.account-card-body p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.account-card-body p strong {
  color: var(--text);
}

.btn-secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.account-actions {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #ef4444;
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
}
