/* === KANHA POSHAK CREATIONS - UNIFIED FESTIVE THEME (v2) === */
/* This file includes original styles plus new additions for the user dashboard. */

/* 1. FONT IMPORT & ROOT VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:400,700&display=swap');

:root {
  --primary: #004E64;
  --accent: #FFD700;
  --contrast: #800000;
  --background: #fff8e1;
  --border: #d97706;
  --card-bg: rgba(255, 255, 255, 0.9); /* Slightly more opaque for readability */
  --text: #3b2f2f;
  --footer-bg: #fdf6e3;
  --footer-text: #444;
  --success: #198754;
  --info: #0dcaf0;
  --danger: #dc3545;
}

/* 2. GENERAL BODY & LAYOUT */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    #DB9D00,
    #EDA800,
    #FFB300,
    #8B0000,
    #A70000,
    #BE0000
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
}

/* Section Headings */
h1, h2, h3, h4, h5 {
  font-family: 'Great Vibes', cursive;
  color: var(--contrast);
}

/* 3. HEADER & NAVIGATION */
.navbar { /* Targeting Bootstrap's navbar class for better compatibility */
  background-color: var(--accent) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--contrast) !important;
  font-weight: bold;
  transition: color 0.3s, transform 0.2s;
}

.navbar .nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* 4. HERO SECTION (Homepage) */
/* Hero section */
.hero {
min-height: 80vh;
text-align: center;
padding-top: 150px;
background: url('logo.webp') center 80px no-repeat;
background-size: 150px;
}
.hero h1 {
font-family: 'Great Vibes', cursive;
font-size: 3rem;
color: #FFD700;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.hero p {
font-size: 1.2rem;
color: #800000;
}
/* 5. CARDS & COMPONENTS */

/* Base Card Style */
.card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  background-color: var(--card-bg);
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* CTA Buttons */
button, .btn {
  background-color: var(--accent);
  border: 2px solid var(--border);
  color: var(--contrast) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

button:hover, .btn:hover {
  background-color: var(--contrast);
  color: var(--accent) !important;
  border-color: var(--accent);
  box-shadow: 0 6px 12px rgba(128, 0, 0, 0.4);
}

/* Carousel */
.carousel-inner img {
  max-height: 500px;
  object-fit: cover;
}

.carousel {
  border-radius: 8px;
  overflow: hidden;
}

/* 6. USER DASHBOARD */
/* This section contains all new styles for the dashboard page */

.dashboard-nav .nav-link {
  color: #333;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-left: 4px solid transparent;
  border-radius: 0 5px 5px 0;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease-in-out;
}

.dashboard-nav .nav-link:hover {
  background-color: #e9ecef;
  border-left-color: #adb5bd;
  transform: translateX(5px);
}

.dashboard-nav .nav-link.active {
  background-color: #e0f0ff;
  border-left-color: var(--primary);
  color: var(--primary);
}

/* Order History Cards */
.order-card {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden; /* Ensures child borders don't poke out */
}

.order-card-header {
  background-color: #f8f9fa;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f1f1;
}
.order-item:last-child { border-bottom: none; }

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-right: 1rem;
  border: 1px solid #eee;
}

/* Order Status Badges */
.status-badge {
  color: #fff !important;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.4em 0.8em;
}
.status-Delivered { background-color: var(--success); }
.status-Shipped { background-color: var(--primary); }
.status-Packed { background-color: var(--info); }
.status-Cancelled { background-color: var(--danger); }
.status-Order\.Placed { /* Correctly targets "Order Placed" */
  background-color: var(--accent);
  color: var(--contrast) !important;
}

/* 7. FORMS & FOOTER */

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.75rem 0;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 2px solid var(--border);
  font-size: 0.95rem;
  margin-top: 4rem; /* Ensure space above footer */
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* 8. UTILITY & ADMIN STYLES */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

.center { text-align: center; }
.text-highlight { color: var(--primary); font-weight: bold; }
.thumb { width: 60px; height: auto; margin: 2px; border-radius: 4px; }
#lgSizeGroup { display: none; }```
