/* =====================================================
   IMPORT FONT (Readable, Modern, Premium)
===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* =====================================================
   COLOR SYSTEM (REALISTIC LUXURY)
===================================================== */
:root {
  --bg-black: #0c0d10;
  --panel-black: #15171c;
  --soft-black: #1d2027;

  --gold-main: #c9a24d;
  --gold-hover: #e1be6a;
  --gold-soft: rgba(201, 162, 77, 0.25);

  --text-main: #f4f4f5;
  --text-muted: #b6b7bb;

  --border-soft: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   RESET
===================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-main);
  line-height: 1.6;
}

/* =====================================================
   HEADER & BRANDING
===================================================== */
header {
  background: #000;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT BRAND AREA */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* LOGO PLACEHOLDER */
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* SITE NAME */
.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand h1 span {
  color: var(--gold-main);
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--gold-main);
}

/* =====================================================
   CART ICON + BADGE
===================================================== */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.cart-link:hover { color: var(--gold-main); }

.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-main);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  text-align: center;
  padding: 70px 20px 50px;
  max-width: 900px;
  margin: auto;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 10px;
}

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

/* =====================================================
   PRODUCTS GRID
===================================================== */
.products {
  max-width: 1400px;
  margin: auto;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr; /* single product for now */
  gap: 36px;
}

/* =====================================================
   PRODUCT CARD
===================================================== */
.product-card {
  background: var(--panel-black);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  /* Amazon-like layout feel */
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Right panel */
.product-card .info {
  text-align: left;
}

.product-card .title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: capitalize;
}

.meta {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.price {
  color: var(--gold-main);
  font-size: 1.2rem;
  font-weight: 600;
}

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

/* =====================================================
   OPTIONS & INPUTS
===================================================== */
label {
  display: block;
  margin-top: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

select,
input[type="number"],
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: var(--soft-black);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.9rem;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--gold-main);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Row: Add To Cart + Amazon (space between + same size) */
.product-actions {
  display: flex;
  gap: 12px;          /* ✅ space between buttons */
  margin-top: 14px;
}

.product-actions .btn {
  flex: 1;            /* ✅ same size buttons */
  width: auto;
}

/* Buy Direct below row */
.buy-direct {
  width: 100%;
  margin-top: 12px;
}

/* Button themes */
.btn.gold {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-hover));
  color: #000;
  border: none;
}

.btn.gold:hover { filter: brightness(1.05); }

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

.btn.outline:hover { background: var(--gold-soft); }

/* =====================================================
   AMAZON-STYLE PRODUCT GALLERY (INDEX)
===================================================== */
.product-gallery{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb{
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  display: block;
}

.thumb img{
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.thumb.is-active{
  border-color: var(--gold-main);
  box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.25);
}

.main-image{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #0b0c10;
}

.main-product-image{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #000;
  text-align: center;
  padding: 26px 20px;
  margin-top: 60px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer span { color: var(--gold-main); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 980px) {
  .product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 14px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .product-gallery{
    grid-template-columns: 1fr;
  }

  .thumbs{
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .thumb{
    min-width: 72px;
  }

  .product-actions {
    flex-direction: column;
  }
}
