﻿:root {
  --bg: #0d0d0d;
  --panel: #151515;
  --panel-2: #1f1f1f;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --accent: #e60023;
  --accent-2: #25d366;
  --gold: #ffd700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

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

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

.zoomable {
  cursor: zoom-in;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #000;
  border-bottom: 1px solid #222;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  background: #111;
}

.page {
  padding: 20px;
}

.home-banner {
  padding: 0 20px 20px;
}

.home-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  background: #333;
}

.card h3 {
  margin: 12px 0 6px;
  min-height: 44px;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  color: var(--gold);
  font-weight: bold;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.btn.secondary {
  background: #2a2a2a;
}

.btn.whatsapp {
  background: var(--accent-2);
}

.stock-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
}

.stock-badge.in {
  background: #1db954;
  color: white;
}

.stock-badge.out {
  background: #e63946;
  color: white;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.gallery {
  background: var(--panel);
  padding: 16px;
  border-radius: 14px;
}

.main-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  background: #333;
}

.thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}

.thumb {
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--gold);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(95vw, 1100px);
  max-height: 90vh;
  padding: 10px;
}

.image-lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}

.image-lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.product-info {
  background: var(--panel);
  padding: 18px;
  border-radius: 14px;
}

.form-row {
  margin: 14px 0;
}

select,
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: var(--text);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid #222;
  text-align: left;
}

.cart-table th {
  background: #101010;
  color: var(--muted);
  font-weight: 600;
}

.cart-summary {
  margin-top: 16px;
  padding: 14px;
  background: var(--panel);
  border-radius: 12px;
}

.empty-state {
  padding: 20px;
  background: var(--panel);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

.footer {
  background: #111;
  color: white;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
  color: var(--gold);
}

.footer-section a {
  color: #ddd;
  display: block;
  margin: 4px 0;
  transition: 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-banner img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 10px;
  background: #000;
  color: #aaa;
  font-size: 14px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.card-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  width: auto;
  flex: 1 1 0;
}

.catalog-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.search-bar input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: var(--text);
  font-size: 15px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-tabs .tab {
  border: 1px solid #333;
  background: #0f0f0f;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.category-tabs .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 700px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card img {
    height: 180px;
  }
}

@media (max-width: 700px) {
  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }
}

.catalog-controls {
  background: var(--panel);
  border-radius: 14px;
  padding: 14px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tabs .tab {
  border: 1px solid #2a2a2a;
  background: #141414;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.category-tabs .tab:hover {
  transform: translateY(-1px);
  border-color: #3a3a3a;
}

.category-tabs .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-tabs .tab {
    white-space: nowrap;
  }
}

.cart-icon {
  font-size: 14px;
  line-height: 1;
}
