/* ============================================================
   ORCINUX - Main Stylesheet
   Futuristic Cyber-Tech Design
   Font: DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ---- Variables ---- */
:root {
  --bg-dark:      #08110F;
  --bg-dark2:     #0d1c18;
  --green-neon:   #83E80F;
  --green-glow:   #83E80F44;
  --cyan:         #00BFAC;
  --cyan-light:   #96C7CC;
  --blue-deep:    #10344C;
  --purple-tech:  #321049;
  --bg-card:      #ffffff;
  --bg-section:   #F5F7FA;
  --text-dark:    #0f1f1c;
  --text-mid:     #3a4a47;
  --text-light:   #6b7c78;
  --border:       #e0e8e6;
  --border-dark:  #1a2e2a;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-glow:  0 0 24px rgba(131,232,15,0.25);
  --shadow-cyan:  0 0 24px rgba(0,191,172,0.25);
  --font:         'DM Sans', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-section);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: var(--font);
  outline: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--green-neon); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-neon);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,191,172,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(0,191,172,0); }
}

.header-search {
  flex: 1;
  max-width: 480px;
}
.search-form {
  display: flex;
  align-items: center;
  background: #0d1c18;
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}
.search-form input::placeholder { color: #4a6060; }
.search-form button {
  background: var(--green-neon);
  border: none;
  color: var(--bg-dark);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
}
.search-form button:hover { background: #9af020; }

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

.btn-cart {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-cart:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--green-neon);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  background: linear-gradient(135deg, var(--blue-deep), var(--purple-tech));
  color: #fff;
  border: 1px solid var(--cyan);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.btn-login:hover {
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
  border-color: var(--green-neon);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--blue-deep) 50%, var(--bg-dark2) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(131,232,15,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,191,172,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(131,232,15,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131,232,15,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(131,232,15,0.1);
  border: 1px solid rgba(131,232,15,0.3);
  color: var(--green-neon);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-neon);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .highlight {
  color: var(--green-neon);
  position: relative;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-neon), var(--cyan));
  border-radius: 2px;
  animation: widthIn 0.8s ease 0.5s both;
  transform-origin: left;
}
@keyframes widthIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero p {
  font-size: 1.15rem;
  color: var(--cyan-light);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-hero-primary {
  background: var(--green-neon);
  color: var(--bg-dark);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-primary:hover {
  background: #9af020;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: var(--cyan);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--cyan);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-outline:hover {
  background: rgba(0,191,172,0.1);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeInUp 0.6s ease 0.4s both;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-stat-item { text-align: center; }
.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-neon);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--cyan-light);
  opacity: 0.8;
}

/* ============================================================
   CATEGORIES NAV
   ============================================================ */
.categories-strip {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-strip::-webkit-scrollbar { display: none; }

.categories-list {
  display: flex;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  white-space: nowrap;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  color: var(--cyan-light);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-link:hover,
.cat-link.active {
  color: var(--green-neon);
  border-bottom-color: var(--green-neon);
}
.cat-link svg { width: 16px; height: 16px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--green-neon), var(--cyan));
  border-radius: 2px;
}
.section-count {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(131,232,15,0.3);
  border-color: rgba(131,232,15,0.3);
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--green-neon);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge.sale { background: #ff4757; color: #fff; }
.product-badge.new  { background: var(--cyan); color: var(--bg-dark); }

.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0f4f2;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0ee, #d0e0dc);
}
.product-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: #a0b8b2;
}

.product-quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8,17,15,0.85);
  color: var(--green-neon);
  text-align: center;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.product-card:hover .product-quick-view { transform: translateY(0); }

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}
.product-price-original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff4757;
  background: rgba(255,71,87,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.product-stock {
  font-size: 0.75rem;
  color: var(--text-light);
}
.product-stock.low { color: #f0a500; }
.product-stock.out { color: #ff4757; }

.btn-add-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-dark), var(--blue-deep));
  color: var(--green-neon);
  border: 1px solid rgba(131,232,15,0.3);
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.btn-add-cart:hover {
  background: var(--green-neon);
  color: var(--bg-dark);
  border-color: var(--green-neon);
  box-shadow: 0 4px 20px rgba(131,232,15,0.3);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #e8eeec 25%, #d4dedd 50%, #e8eeec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skeleton-img  { aspect-ratio: 1; }
.skeleton-text { height: 14px; margin: 8px 12px; }
.skeleton-text.wide  { width: calc(100% - 24px); }
.skeleton-text.mid   { width: 60%; }
.skeleton-text.short { width: 40%; }

/* ============================================================
   PRODUCT MODAL / DETAIL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,17,15,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(131,232,15,0.15);
  position: relative;
}
.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin-right: 1rem;
  margin-top: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--green-neon); color: var(--bg-dark); }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  clear: both;
}

@media (max-width: 640px) {
  .modal-inner { grid-template-columns: 1fr; }
}

.modal-gallery {
  padding: 2rem;
  background: #f5f7fa;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.modal-main-img {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8eeed;
  margin-bottom: 1rem;
  cursor: zoom-in;
}
.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.modal-main-img:hover img { transform: scale(1.08); }

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: #e0e8e4;
}
.modal-thumb:hover,
.modal-thumb.active { border-color: var(--green-neon); }
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-video-container {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
}
.modal-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.btn-show-video {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-dark), var(--blue-deep));
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.btn-show-video:hover {
  background: var(--cyan);
  color: #fff;
  box-shadow: var(--shadow-cyan);
}

.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0,191,172,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,191,172,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}
.modal-product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.modal-price-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.modal-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.modal-price-original {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.modal-discount-tag {
  background: rgba(255,71,87,0.1);
  color: #ff4757;
  border: 1px solid rgba(255,71,87,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.modal-divider {
  height: 1px;
  background: var(--border);
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.modal-meta-row svg { color: var(--green-neon); flex-shrink: 0; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-section);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--green-neon); color: var(--bg-dark); }
.qty-input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
}

.btn-buy-now {
  width: 100%;
  background: var(--green-neon);
  color: var(--bg-dark);
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-buy-now:hover {
  background: #9af020;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-modal-cart {
  width: 100%;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-modal-cart:hover {
  border-color: var(--green-neon);
  color: var(--green-neon);
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,17,15,0.5);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
  color: #fff;
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.cart-close:hover { color: var(--green-neon); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.cart-empty svg { width: 64px; height: 64px; opacity: 0.3; }

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-section);
  flex-shrink: 0;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.9rem; color: var(--cyan); font-weight: 600; margin-top: 0.2rem; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.cart-qty-btn:hover { background: var(--green-neon); color: var(--bg-dark); border-color: var(--green-neon); }
.cart-qty { font-size: 0.875rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: #ff4757; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}
.cart-totals { margin-bottom: 1rem; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.cart-total-row.final {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.btn-checkout {
  width: 100%;
  background: var(--green-neon);
  color: var(--bg-dark);
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-checkout:hover {
  background: #9af020;
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--blue-deep) 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.featured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(131,232,15,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 50%, rgba(0,191,172,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.featured-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}
.featured-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.featured-title .badge-featured {
  background: rgba(131,232,15,0.15);
  border: 1px solid rgba(131,232,15,0.3);
  color: var(--green-neon);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.featured-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.featured-card:hover {
  border-color: rgba(131,232,15,0.4);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--shadow-glow);
}
.featured-card .product-name { color: #e0e0e0; }
.featured-card .product-price { color: var(--green-neon); }
.featured-card .product-category { color: var(--cyan-light); }
.featured-card .product-desc { color: rgba(255,255,255,0.55); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: var(--cyan-light);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-dark);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: #4a7060; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #4a7060;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green-neon); }
.footer-bottom {
  max-width: 1300px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #345040;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  color: #e0e0e0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
  border-left: 3px solid transparent;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left-color: var(--green-neon); }
.toast.error   { border-left-color: #ff4757; }
.toast.info    { border-left-color: var(--cyan); }
.toast-out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* ============================================================
   CHECKOUT FORM
   ============================================================ */
.checkout-page {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-card h3::before {
  content: '';
  width: 4px;
  height: 1.1rem;
  background: var(--green-neon);
  border-radius: 2px;
}
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 3px var(--green-glow);
  outline: none;
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.order-summary {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #e0e0e0;
  position: sticky;
  top: 90px;
}
.order-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.summary-item-name {
  flex: 1;
  color: var(--cyan-light);
  line-height: 1.4;
}
.summary-item-price { color: #e0e0e0; font-weight: 600; white-space: nowrap; }
.summary-divider { height: 1px; background: var(--border-dark); margin: 0.75rem 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--green-neon);
  font-size: 1.1rem;
}
.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, var(--green-neon), #9af020);
  color: var(--bg-dark);
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-pay:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.secure-notice {
  text-align: center;
  font-size: 0.75rem;
  color: #4a7060;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.success-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(131,232,15,0.1);
  border: 2px solid var(--green-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}
.success-icon svg { color: var(--green-neon); width: 40px; height: 40px; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header-search { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .main-content { padding: 2rem 1rem; }
  .modal-gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
