:root {
  --mg-black: #0d0d0d;
  --mg-charcoal: #1a1a1a;
  --mg-silver: #b7b7b7;
  --mg-white: #ffffff;
  --mg-accent: #d4af37; /* subtle gold accent for premium feel */
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--mg-black);
  background: var(--mg-white);
}

a { text-decoration: none; }
a {
  color: var(--mg-black);
}
a:hover {
  color: var(--mg-accent);
}
.breadcrumb-item a {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #888;
}

.navbar-mg {
  background: var(--mg-black);
}
.navbar-mg .navbar-brand img { height: 42px; }
/* Logo is solid black - invert it to white so it's visible on dark backgrounds */
.navbar-mg .navbar-brand img,
.footer-mg img,
.admin-sidebar img {
  filter: brightness(0) invert(1);
}
.navbar-mg .navbar-toggler {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}
.navbar-mg .navbar-collapse {
  background: var(--mg-black);
}
@media (max-width: 991.98px) {
  .navbar-mg .navbar-collapse {
    padding: 1rem 0;
  }
  .navbar-mg .navbar-nav {
    margin-bottom: 1rem;
  }
}
.navbar-mg .nav-link {
  color: var(--mg-silver) !important;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .85rem;
}
.navbar-mg .nav-link:hover,
.navbar-mg .nav-link.active { color: var(--mg-white) !important; }
.navbar-mg .btn-cart {
  background: transparent;
  border: 1px solid var(--mg-silver);
  color: var(--mg-white);
}
.navbar-mg .btn-cart:hover { background: var(--mg-white); color: var(--mg-black); }

/* Forceful, unambiguous rules so nothing can silently hide the nav */
.navbar-mg .navbar-collapse > .navbar-nav,
.navbar-mg .navbar-collapse > div,
.navbar-mg .navbar-nav .nav-item,
.navbar-mg .navbar-nav .nav-link,
.navbar-mg .navbar-collapse .nav-link,
.navbar-mg .navbar-collapse .btn-cart {
  visibility: visible !important;
  opacity: 1 !important;
}
.navbar-mg .navbar-collapse > div.d-flex {
  display: flex !important;
}
@media (min-width: 992px) {
  .navbar-mg .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
  }
  .navbar-mg .navbar-toggler { display: none !important; }
}
@media (max-width: 991.98px) {
  .navbar-mg .navbar-collapse:not(.show) { display: none !important; }
  .navbar-mg .navbar-collapse.show {
    display: block !important;
    width: 100% !important;
  }
  .navbar-mg .navbar-toggler { display: block !important; }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 78vh;
  background: var(--mg-black) url('../img/hero.png') center right / cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 15%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}
.hero-content .accent { color: var(--mg-accent); }
.hero-content p { color: var(--mg-silver); font-size: 1.15rem; max-width: 480px; }
.btn-mg-primary {
  background: var(--mg-white);
  color: var(--mg-black);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .8rem 2.2rem;
  transition: all .2s ease;
}
.btn-mg-primary:hover { background: var(--mg-accent); color: var(--mg-black); }
.btn-mg-outline {
  border: 1px solid var(--mg-white);
  color: var(--mg-white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .8rem 2.2rem;
  background: transparent;
}
.btn-mg-outline:hover { background: var(--mg-white); color: var(--mg-black); }

/* Section headings */
.section-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--mg-accent);
  margin-top: 10px;
}

/* Product cards */
.product-card {
  position: relative;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.product-card .img-wrap {
  background: #f5f5f5;
  height: 230px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-card .badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--mg-black); color: #fff;
  font-size: .7rem; padding: 4px 10px; border-radius: 3px;
  text-transform: uppercase;
}
.product-card .card-body { padding: 1.1rem; }
.product-card .cat-label {
  font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: #999;
}
.product-card h3 {
  font-size: 1rem; font-weight: 700; margin: .3rem 0;
}
.price-current { font-weight: 800; font-size: 1.1rem; }
.price-compare { text-decoration: line-through; color: #999; font-size: .9rem; margin-left: 6px; }

/* Footer */
.footer-mg {
  background: var(--mg-black);
  color: var(--mg-silver);
  padding: 3rem 0 1.5rem;
}
.footer-mg h5 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: .95rem; margin-bottom: 1rem; }
.footer-mg a { color: var(--mg-silver); }
.footer-mg a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }

/* Product detail */
.product-gallery-main {
  background: #f5f5f5; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; height: 420px;
}
.product-gallery-main img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; object-position: center; }
.qty-input { width: 90px; }

/* Cart & checkout */
.cart-table th { text-transform: uppercase; font-size: .75rem; letter-spacing: 1px; color: #888; border-bottom: 2px solid #eee; }
.cart-table td { vertical-align: middle; border-bottom: 1px solid #f0f0f0; }
.summary-box {
  background: #f8f8f8; border-radius: 8px; padding: 1.5rem;
}
.checkout-step {
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1.5rem;
}

/* Auth pages */
.auth-wrap {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  background: #f8f8f8;
}
.auth-card {
  background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
  max-width: 440px; width: 100%;
}

/* Account page */
.account-nav .nav-link {
  color: var(--mg-black);
  border-radius: 4px;
  padding: .6rem 1rem;
}
.account-nav .nav-link.active { background: var(--mg-black); color: #fff; }

/* Badges for order status */
.status-badge { text-transform: uppercase; font-size: .7rem; letter-spacing: .5px; padding: 4px 10px; border-radius: 3px; }
.status-pending { background:#fff3cd; color:#856404; }
.status-processing { background:#cce5ff; color:#004085; }
.status-shipped { background:#d1ecf1; color:#0c5460; }
.status-delivered { background:#d4edda; color:#155724; }
.status-cancelled { background:#f8d7da; color:#721c24; }
.status-awaiting_quote { background:#ffe5d0; color:#8a4b08; }
.status-ready_for_collection { background:#e0f2e9; color:#1e6b46; }
.status-payment-pending { background:#fff3cd; color:#856404; }
.status-payment-paid { background:#d4edda; color:#155724; }
.status-payment-failed { background:#f8d7da; color:#721c24; }
.status-payment-refunded { background:#e2d9f3; color:#4a2f7a; }

/* Admin */
.admin-sidebar { background: var(--mg-black); min-height: 100vh; color: #fff; }
.admin-sidebar a { color: var(--mg-silver); display: block; padding: .7rem 1.2rem; border-radius: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #222; color: #fff; }
.admin-topbar { background: #fff; border-bottom: 1px solid #eee; }
.stat-card { border-radius: 8px; padding: 1.4rem; color: #fff; }


/* Delivery method selector (checkout) */
.delivery-options { display: flex; flex-direction: column; gap: .6rem; }
.delivery-option {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1px solid #ddd; border-radius: 6px; padding: .9rem 1rem;
  cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.delivery-option:hover { border-color: #999; }
.delivery-option.selected { border-color: var(--mg-black); box-shadow: 0 0 0 1px var(--mg-black); }
.pickup-info {
  background: #f8f8f8; border-left: 3px solid var(--mg-accent);
  border-radius: 4px; padding: 1rem 1.2rem;
}
.thumb-img.active { border-color: #c9a227 !important; outline: 2px solid #c9a227; }

/* Product image zoom + lightbox */
.product-gallery-main.zoomable { overflow: hidden; cursor: zoom-in; }
.product-gallery-main.zoomable img { transition: transform .2s ease; }
@media (hover: hover) { .product-gallery-main.zoomable:hover img { transform: scale(1.8); } }
.mg-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.mg-lightbox img { max-width: 100%; max-height: 100%; background: #fff; }
.mg-lightbox button { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; }
/* Free shipping progress */
.ship-progress { background:#f6f1de; border:1px solid #e6d9a6; border-radius:8px; padding:12px 14px; margin-bottom:16px; font-size:.9rem; }
.ship-progress .bar { height:8px; border-radius:4px; background:#e9e3c8; overflow:hidden; margin-top:8px; }
.ship-progress .bar > span { display:block; height:100%; background:#c9a227; transition:width .3s; }

/* Option swatches with a picture (e.g. sticker designs) */
.variant-btn.variant-swatch { display:flex; flex-direction:column; align-items:center; gap:4px; width:92px; padding:6px; font-size:.75rem; line-height:1.2; white-space:normal; }
.variant-btn.variant-swatch img { width:100%; height:92px; object-fit:contain; background:#fff; border-radius:4px; }
.variant-btn.variant-swatch.btn-dark img { outline:2px solid #c9a227; }
