/* =========================
   Theme Variables
========================= */
:root {
  /* Dark theme (default) */
  --bg: #0b0b0b;
  --surface: #111;
  --text: #eee;
  --muted: #bdbdbd;
  --accent: #c9a44a;   /* gold */
  --accent-2: #7a6b5a;
  --border: rgba(255, 255, 255, 0.08);
}

body.light {
  /* Light theme overrides */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #222;
  --muted: #666;
  --accent: #c49b4a;
  --accent-2: #a88c62;
  --border: rgba(0, 0, 0, 0.1);
}

/* =========================
   Global Styles
========================= */
body {
  font-family: 'Inter', system-ui, Arial;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.logo-circle {
  background: var(--accent);
  color: #111;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 50%;
}

.brand-text span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand-text small {
  font-size: 0.7rem;
  display: block;
  margin-top: -4px;
  color: var(--text);
}

/* =========================
   Navbar
========================= */
.navbar {
  background: var(--surface) !important;
}
.navbar .nav-link {
  color: var(--text);
  transition: color 0.2s;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--accent);
  font-weight: 600;
}

/* =========================
   Light Theme Overrides for Logo & Navbar (All Screens)
========================= */
body.light .brand-text span,
body.light .brand-text small {
  color: var(--text);
}
body.light .navbar .nav-link {
  color: var(--text);
}
body.light .navbar .nav-link.active,
body.light .navbar .nav-link:hover {
  color: var(--accent);
}

/* =========================
   Navbar Hamburger (Mobile) Light/Dark Theme Fix
========================= */
/* Default (dark theme) */
.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23eee' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: background-image 0.3s ease;
}

/* Light theme override */
body.light .navbar-toggler {
  border-color: var(--border);
}
body.light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* =========================
   Hero Section
========================= */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6)),
              url('home-banner.jpg') center/cover no-repeat;
  padding: 6rem 0;
  color: #fff;
}

body.light .hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.85)),
              url('home-banner.jpg') center/cover no-repeat;
  color: #111;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

body.light .hero h1 {
  text-shadow: none;
}

/* =========================
   Buttons
========================= */
.btn-primary {
  background: var(--accent);
  border: none;
  color: #111;
}
.btn-primary:hover {
  background: var(--accent-2);
}

.btn-outline-light {
  border: 1px solid var(--border);
  color: var(--text);
}
body.light .btn-outline-light {
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================
   Cards (Products, Featured)
========================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  transition: transform 0.25s, background 0.3s;
}
.card:hover {
  transform: translateY(-6px);
}
.card-img-top {
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
.product-card .card-body {
  min-height: 140px;
}
.price {
  font-weight: 700;
  color: var(--accent);
}

/* =========================
   About Section Cards
========================= */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.about-card h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}
.about-card p {
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   Contact Form Styles
========================= */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.contact-card label {
  font-weight: 500;
  color: var(--text);
}
.contact-card .form-control {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(201, 164, 74, 0.3);
  outline: none;
}
.contact-card button.btn-primary {
  background: var(--accent);
  border: none;
  color: #111;
  transition: background 0.3s;
}
.contact-card button.btn-primary:hover {
  background: var(--accent-2);
}

/* =========================
   Footer
========================= */
footer {
  background: var(--surface);
  color: var(--muted);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
footer h5, footer h6 {
  color: var(--text);
}
footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent);
}
.footer-icon {
  color: var(--text);
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-icon:hover {
  color: var(--accent);
}
.footer-bottom {
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* =========================
   Product Detail
========================= */
.product-gallery img {
  width: 100%;
  border-radius: 8px;
}

/* =========================
   Cart
========================= */
.table {
  color: var(--text);
}
.table thead th {
  border-bottom: 2px solid var(--border);
}
.qty-input {
  width: 70px;
}

/* =========================
   Forms
========================= */
form#contact-form .form-control {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
body.light form#contact-form .form-control {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* =========================
   Badges & Misc
========================= */
.badge-gold {
  background: var(--accent);
  color: #111;
}
.container h1 {
  font-family: 'Playfair Display', serif;
}

/* =========================
   Responsive Tweaks
========================= */

/* Phones (portrait & small devices) */
@media (max-width: 576px) {
  .hero { 
    padding: 3rem 1rem; 
    text-align: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .navbar .nav-link {
    display: block;
    text-align: center;
    padding: 0.5rem 0;
  }
  .brand-text span,
  .brand-text small {
    color: var(--text);
  }
  .about-card,
  .contact-card {
    padding: 1rem;
  }
  .card-img-top {
    height: 160px;
  }
  .footer-bottom {
    font-size: 0.8rem;
    text-align: center;
  }
  #search, #sort {
    width: 100% !important;
  }
}

/* Tablets (landscape, mid screens) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .card-img-top {
    height: 200px;
  }
  .product-card .card-body {
    min-height: auto;
  }
  footer {
    text-align: center;
  }
  .brand-text span,
  .brand-text small {
    color: var(--text);
  }
  .navbar .nav-link {
    color: var(--text);
  }
}

/* Large desktops (wider screens) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}
