/* ========= THEME ========= */
:root{
  --bg:#0e0e0e;          /* page background */
  --panel:#141414;       /* cards/panels */
  --panel-2:#1b1b1b;     /* table body */
  --line:#2b2b2b;        /* borders */

  --accent:#8B0000;      /* ruby red */
  --accent-soft:#a01823; /* hover/soft red */
  --gold:#FFD665;        /* warmer gold for better contrast */
  --text:#f0f0f0;
}

/* ========= GLOBAL STYLES ========= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* nicer focus for keyboard users */
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 2px; }

button, .btn, .btn-small, .btn-primary {
  font-family: 'Inter', sans-serif;
  background: var(--gold);
  color: #1e1e1e;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform .05s ease;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover, .btn-small:hover, .btn-primary:hover {
  background: #e0c000;
  color: #fff;
}
button:active, .btn:active { transform: scale(.98); }

/* ========= HERO SECTION (fixed) ========= */
.hero {
  text-align: center;
  padding: 96px 2rem 40px; /* extra top so it never clips under nav */
  color: #fff;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 60% -120px, rgba(139,0,0,.35), transparent),
    linear-gradient(180deg, rgba(139,0,0,.20), rgba(0,0,0,0));
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero p {
  font-size: 1.1rem;
  opacity: .9;
  margin: 0 auto 2rem;
  max-width: 900px;
}
@media (min-width: 900px){
  .hero h1 { font-size: 3.25rem; }
}

/* ========= PRODUCT GRID ========= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.product {
  background: var(--panel);
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--gold);
  text-align: center;
  transition: transform 0.2s ease;
}
.product:hover { transform: scale(1.04); }
.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.product h2 { font-size: 1.1rem; color: var(--gold); margin-bottom: .5rem; }
.product p  { font-size: .95rem; color: #f0e1a0; }

/* ========= CART TABLE ========= */
.cart-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px 20px;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
  text-align: center;
}
.cart-container h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.empty-cart { font-size: 1.3rem; color: var(--gold); margin-bottom: 20px; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.cart-table th, .cart-table td {
  padding: 15px;
  border: 1px solid var(--gold);
  text-align: center;
}
.cart-table th {
  background: var(--panel);
  color: var(--gold);
  font-weight: bold;
}
.cart-product-image {
  width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
}
.quantity-controls { display: flex; justify-content: center; align-items: center; gap: 10px; }
.quantity-controls form { display: inline-block; margin: 0; }

.cart-total-label, .cart-total-amount {
  font-weight: bold; color: var(--gold); font-size: 1.1rem; text-align: right;
}
.checkout-btn {
  background: #14cc4a; /* toned down green */
  color: #000; font-weight: bold; font-size: 1.2rem;
  padding: 14px 22px; border-radius: 28px; display: inline-block;
  transition: background .2s ease, transform .1s ease;
}
.checkout-btn:hover { background: #12b643; transform: scale(1.04); }

/* ========= FORMS ========= */
input[type="text"], input[type="password"], input[type="email"], input[type="date"], textarea {
  background: #1e1e1e;
  border: 1px solid var(--gold);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 8px;
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: #e0c000; }

/* ========= PRICING SECTION ========= */
.pricing-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.pricing-section h2 {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
}
.pricing-section h3 {
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.pricing-table tr:nth-child(even) { background-color: #1c1c1c; }
.pricing-table tr:nth-child(odd)  { background-color: #222; }
.pricing-table td {
  padding: 10px;
  border: 1px solid #333;
  color: var(--gold);
}
.note { font-size: .9rem; color: #ccc; margin: 10px 0 30px; text-align: center; }

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .cart-table { font-size: .9rem; }
  .cart-product-image { width: 60px; height: 60px; }
}
