:root {
  --gold: #D4AF37;
  --dark-bg: #0a0a0a;
  --light-bg: #fefaf5;
  --black: #111;
  --white: #fff;
  --grey: #f8f9fa;
  --transition-speed: 0.3s;
}

/* Light Theme (default) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fefaf5;
  --bg-card: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0,0,0,0.05);
  --chat-bg: #fef9ef;
  --chat-bot-bg: #e9e5dd;
  --blog-bg: #f8f9fa;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #eeeeee;
  --text-secondary: #bbbbbb;
  --border-color: #2a2a4a;
  --shadow-color: rgba(0,0,0,0.3);
  --chat-bg: #1a1a2e;
  --chat-bot-bg: #16213e;
  --blog-bg: #0f3460;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--gold);
  color: black;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
  border: none;
  font-size: 1.3rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.navbar {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  padding: 1rem 0;
}

[data-theme="dark"] .navbar {
  background: rgba(10,10,30,0.95);
}

.navbar-brand {
  color: var(--gold) !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.navbar .nav-link {
  color: #f0f0f0 !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: 0.3s;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--gold) !important;
}

.cart-icon {
  position: relative;
  font-size: 1.3rem;
  cursor: pointer;
}

#cartCount {
  background: var(--gold);
  color: black;
  border-radius: 50%;
  padding: 0px 6px;
  font-size: 0.7rem;
  margin-left: 5px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('https://images.pexels.com/photos/4347906/pexels-photo-4347906.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.hero-text h1 {
  font-size: 3.8rem;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}

.gold-text {
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 40px;
  padding: 12px 32px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-gold:hover {
  background: #b4942e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: black;
}

.btn-outline-light {
  border-radius: 40px;
  border-width: 2px;
}

.section-padding {
  padding: 90px 0;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
}

.badge-gold {
  background: var(--gold);
  color: black;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px var(--shadow-color);
  cursor: pointer;
  height: 100%;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px var(--shadow-color);
}

.product-img {
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s;
  width: 100%;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.product-price {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.3rem;
}

.add-to-cart {
  background: #111;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.8rem;
  transition: 0.2s;
}

[data-theme="dark"] .add-to-cart {
  background: var(--gold);
  color: black;
}

.add-to-cart:hover {
  background: var(--gold);
  color: black;
  transform: scale(1.05);
}

.about-section {
  background: var(--bg-secondary);
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 30px -15px var(--shadow-color);
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.star-icon {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Blog Section */
.blog-section {
  background: var(--blog-bg);
  transition: background-color var(--transition-speed);
}

.blog-section .section-title {
  color: var(--text-primary);
}

.blog-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 10px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.blog-card h5 {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-card p {
  color: var(--text-secondary);
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.contact-section {
  background: var(--bg-secondary);
}

.contact-info {
  margin: 20px 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-section .bg-white {
  background: var(--bg-card) !important;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.form-control {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.form-control:focus {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.footer {
  background: #0a0a0a;
  color: #ddd;
  padding: 50px 0 30px;
}

[data-theme="dark"] .footer {
  background: #050514;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

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

.footer ul li {
  margin-bottom: 8px;
}

.social-links a {
  font-size: 1.8rem;
  margin-right: 15px;
  color: #aaa;
  transition: 0.2s;
}

.social-links a:hover {
  color: var(--gold);
}

/* Product Modal */
.product-modal-content {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.product-modal-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

.modal-content {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-footer {
  border-top-color: var(--border-color);
}

.btn-close {
  filter: invert(0);
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

/* Chatbot */
.chatbot-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--gold);
  color: black;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: 0.2s;
}

.chatbot-icon:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 320px;
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  border: 1px solid var(--border-color);
}

.chatbot-header {
  background: #111;
  color: var(--gold);
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

[data-theme="dark"] .chatbot-header {
  background: #0f3460;
}

#closeChat {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.chatbot-body {
  height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: var(--chat-bg);
  font-size: 0.85rem;
}

.bot-msg, .user-msg {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 20px;
  max-width: 85%;
}

.bot-msg {
  background: var(--chat-bot-bg);
  color: var(--text-primary);
  border-top-left-radius: 5px;
}

.user-msg {
  background: var(--gold);
  color: black;
  margin-left: auto;
  text-align: right;
  border-top-right-radius: 5px;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.chatbot-input input::placeholder {
  color: var(--text-secondary);
}

.chatbot-input button {
  background: var(--gold);
  border: none;
  padding: 0 15px;
  cursor: pointer;
}

/* Toast Message */
.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1100;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--gold);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .chatbot-window { width: 280px; right: 15px; bottom: 85px; }
  .theme-toggle {
    bottom: 90px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  .product-modal-img { max-height: 250px; }
  .modal-dialog { margin: 0.5rem; }
}