:root {
  --primary-color: #0A192F; /* Midnight Navy */
  --secondary-color: #F7D794; /* Creamy Gold */
  --accent-color: #636E72; /* Slate Gray */
  --bg-color: #FDFDFD; /* Pure Snow */
  --text-color: #2D3436; /* Charcoal */
  --light-gray: #f8f9fa;
  --white: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
}

/* Typography styles */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
  background-color: var(--text-color);
  border-color: var(--text-color);
  color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 0;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Header & Navbar */
.topbar {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 0.9rem;
  padding: 5px 0;
}

.topbar a {
  color: var(--secondary-color);
  text-decoration: none;
}

.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color) !important;
  font-weight: 700;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-slider {
  position: relative;
}

.hero-slide {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  color: var(--secondary-color);
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Categories */
.category-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255,255,255,0.9);
  padding: 10px 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 600;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-discount { background-color: var(--primary-color); color: var(--secondary-color); }
.badge-new { background-color: var(--accent-color); color: var(--white); }

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: rgba(255,255,255,0.9);
  transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

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

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 245, 230, 0.8);
  padding: 60px 0 20px;
}

footer h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.social-links a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background-color: rgba(255,255,255,0.1);
  color: var(--secondary-color);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Special Offer Banner */
.offer-banner {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 15px 0;
}

/* Cart & Checkout */
.cart-table th {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.summary-card {
  background: var(--white);
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Forms */
.form-control {
  border-radius: 0;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .navbar-brand { font-size: 1.5rem; }
  .product-img { height: 300px; }
}

/* Utility: font-heading class */
.font-heading {
  font-family: var(--font-heading) !important;
}

/* Cart toast animation */
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Admin sidebar fix: ensure full height sticky */
.sidebar { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }

/* Utils */
.mandala-bg {
  background-image: url('../images/mandala-pattern.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
