/* ===== CSS VARIABLES & THEMES ===== */
:root {
  /* Warm Earthy Theme (Light) */
  --bg-color: #fdfaf6;
  --surface-color: #ffffff;
  --text-dark: #2c1e16;
  --text-light: #5c4d44;
  --primary-color: #c04c36; /* Terracotta/Saffron Red */
  --secondary-color: #e5a93d; /* Golden Ochre */
  --accent-color: #2b5c5a; /* Deep Teal/Indigo for contrast */
  --border-color: #e6dace;
  --shadow: 0 8px 30px rgba(192, 76, 54, 0.08);
  --card-shadow: 0 4px 15px rgba(0,0,0,0.05);

  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;

  --texture: url("https://www.transparenttextures.com/patterns/rice-paper.png");
  
  /* Animation Timing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode {
  /* Dark Mode Theme */
  --bg-color: #1a1412;
  --surface-color: #241c19;
  --text-dark: #fcf6f0;
  --text-light: #c4b5ab;
  --primary-color: #d86853; 
  --secondary-color: #f0bd5a;
  --accent-color: #4a8f8c;
  --border-color: #3b2f28;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --card-shadow: 0 4px 15px rgba(0,0,0,0.2);
  --texture: url("https://www.transparenttextures.com/patterns/stardust.png");
}

/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  background-image: var(--texture); /* Subtle handmade texture */
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.highlight {
  color: var(--primary-color);
  font-style: italic;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 auto 40px auto;
  position: relative;
  display: table;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Base Buttons */
button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(192, 76, 54, 0.4);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300%;
  height: 300%;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 22px;
  backdrop-filter: blur(5px);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: scale(0.95);
}

.large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.lang-select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  margin-right: 10px;
}

.icon-btn {
  background: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  padding: 8px;
  position: relative;
}
.icon-btn:hover {
  color: var(--primary-color);
}
.full-width {
  width: 100%;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(192, 76, 54, 0.05);
}

.navbar.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar {
  background-color: rgba(26, 20, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%; /* Increased width to give more room */
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo i {
  animation: pulseLogo 2s infinite alternate;
  color: var(--secondary-color);
}

@keyframes pulseLogo {
  from { transform: scale(1); filter: drop-shadow(0 0 0px var(--secondary-color)); }
  to { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--secondary-color)); }
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  margin-left: 10px;
  gap: 10px; /* Reduced gap between components */
}

.search-bar {
  display: flex;
  background: var(--bg-color);
  border-radius: 25px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 180px; /* Narrower search bar */
  flex-shrink: 1;
}
.search-bar input {
  font-size: 0.8rem;
}
.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--text-dark);
}
.search-bar button {
  background: none;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 8px; /* Even tighter gap */
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.8rem; /* Smaller links */
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  bottom: 0; left: 0;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 1000;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(192, 76, 54, 0.5);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  z-index: 105;
}
/* When menu unfolds, snap Cross perfectly to the vertical center of the Search Bar! */
.nav-container.menu-open .hamburger-btn {
  top: 24px; /* Precise vertical center of the mobile search bar */
  transform: translateY(-50%);
  right: 0; /* Keep aligned to the right edge to avoid jumping */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 5px; /* Minimal gap */
  flex-shrink: 0;
}
.nav-actions .btn-primary {
  padding: 6px 12px; /* Even smaller login button */
  font-size: 0.8rem;
}
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
}
.lang-select {
  font-size: 0.75rem;
  padding: 4px;
}
.badge {
  position: absolute;
  top: 0px;
  right: -5px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* SPA Sections */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}
.view-section.active {
  display: block;
  animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-content.reveal-left.visible > * {
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-content.reveal-left.visible .brand-tag { animation-delay: 0.2s; }
.hero-content.reveal-left.visible h1 { animation-delay: 0.4s; }
.hero-content.reveal-left.visible p { animation-delay: 0.6s; }
.hero-content.reveal-left.visible .hero-btns { animation-delay: 0.8s; }

/* Checkout Styling */
.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkout-form .form-row:last-of-type {
  grid-template-columns: 1fr 1fr 1fr;
}

.checkout-form input, .checkout-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  margin-bottom: 15px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-img-wrapper {
  perspective: 1000px;
}

.hero-img-wrapper img {
  width: 100%;
  max-width: 650px;
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotateY(-10deg) rotateX(10deg);
}

.hero-img-wrapper:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-color) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.card {
  animation: fadeIn 0.4s ease-out;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  min-height: 85vh;
  gap: 60px;
  background: var(--bg-color);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(192, 76, 54, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.brand-tag {
  display: inline-block;
  background: rgba(192, 76, 54, 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  border: 1px solid rgba(192, 76, 54, 0.2);
  box-shadow: 0 5px 15px rgba(192, 76, 54, 0.05);
}

.hero-content h1 {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 30px;
  letter-spacing: -3px;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 45px;
  max-width: 550px;
  opacity: 0.9;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.decorative-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  top: -40px;
  right: -20px;
  opacity: 0.15;
  filter: blur(50px);
  animation: morph 12s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* ===== CATEGORIES ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.category-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  cursor: pointer;
  border: 1px solid rgba(192, 76, 54, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-card:hover {
  transform: translateY(-15px) scale(1.05);
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(192, 76, 54, 0.15);
}
.dark-mode .category-card {
  background: rgba(36, 28, 25, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
}
.cat-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}
.category-card h3 {
  margin-bottom: 10px;
}
.category-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Filter Tabs for Home Product Grid */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tabs .filter-btn {
  background: var(--surface-color);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-tabs .filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.filter-tabs .filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(192, 76, 54, 0.3);
}
.product-card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(192, 76, 54, 0.12);
  border-color: var(--primary-color);
}
.product-card .img-wrapper {
  overflow: hidden;
  height: 250px;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.card-actions .btn-primary {
  padding: 8px 15px;
  font-size: 0.9rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: bold;
}

.badge-custom {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card .btn-secondary i {
  margin-right: 0;
}

.product-card .btn-secondary.full-width i {
  margin-right: 8px;
}
.badge-3d {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

/* Ensure flex/grid layout aligns cards completely correctly */
.painting-card, .terracotta-card, .jewelry-card, .textile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.painting-info, .terracotta-info, .jewelry-info, .textile-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.painting-style, .terracotta-info .terracotta-price, .jewelry-info .jewelry-price-row, .textile-info p {
  margin-top: auto;
}

/* ===== 3D VIEWER SECTION ===== */
.viewer-3d-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-color);
  color: #fff;
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  margin: 60px auto;
}
.viewer-3d-section h2, .viewer-3d-section p {
  color: #fff;
}
.viewer-content {
  flex: 1;
  max-width: 400px;
  z-index: 2;
}
.canvas-container {
  flex: 1;
  height: 400px;
  position: relative;
  z-index: 2;
  cursor: grab;
}
.canvas-container:active {
  cursor: grabbing;
}
canvas {
  width: 100%;
  height: 100%;
  outline: none;
}

/* ===== SHOP & FILTERS ===== */
.shop-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.shop-sidebar {
  width: 250px;
  flex-shrink: 0;
}
.shop-sidebar h3 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}
.filter-group {
  margin-bottom: 25px;
}
.filter-group h4 {
  margin-bottom: 10px;
}
.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
  cursor: pointer;
}
.filter-group label input {
  margin-right: 8px;
  accent-color: var(--primary-color);
}
.price-slider {
  width: 100%;
  accent-color: var(--primary-color);
}
.shop-main {
  flex: 1;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding-top: 20px;
}
.detail-split {
  display: flex;
  gap: 50px;
  margin-top: 30px;
}
.detail-visuals, .detail-info {
  flex: 1;
}
.interactive-viewer {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.visual-toggles {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.detail-info h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.detail-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.rating i {
  color: var(--secondary-color);
}
.detail-info .price {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.detail-info .description {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.detail-info button {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ===== LIVESTREAM ===== */
.livestream-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.video-container {
  display: flex;
  flex-direction: column;
}
.stream-placeholder {
  background-color: #000;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}
.stream-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.live-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ff3b30;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
  z-index: 10;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
.stream-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.stream-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.chat-container {
  height: 500px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 15px;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  text-align: center;
}
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  background: var(--bg-color);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--border-color);
}
.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px 0 0 8px;
  background: var(--bg-color);
  color: var(--text-dark);
}
.chat-input button {
  padding: 10px 15px;
  background: var(--primary-color);
  color: white;
  border-radius: 0 8px 8px 0;
}

/* ===== DASHBOARD ===== */
.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--card-shadow);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  text-align: center;
}
.stat-card h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  font-family: var(--font-body);
}
.stat-card .val {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--primary-color);
  margin-top: 10px;
}
.add-product-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
.add-product-form input, .add-product-form select, .add-product-form textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
}

/* ===== MODAL & SIDEBAR (Cart/Auth) ===== */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  background-color: var(--surface-color);
  padding: 40px;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.auth-tabs .tab {
  flex: 1;
  background: none;
  font-size: 1.1rem;
  padding: 10px;
  color: var(--text-light);
  border-radius: 0;
}
.auth-tabs .tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
#auth-form input, #auth-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-dark);
}

.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--surface-color);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sidebar.show {
  right: 0;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-weight: 500;
}
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}
.cart-footer .total {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0 0;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.brand h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.links h4 {
  margin-bottom: 10px;
}
.links a {
  color: var(--text-light);
}
.links a:hover {
  color: var(--primary-color);
}
.newsletter p {
  color: var(--text-light);
  margin-bottom: 15px;
}
.bottom-bar {
  text-align: center;
  padding: 20px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  margin-top: 40px;
}

/* ===== DISCRETE COMPONENT STYLES ===== */

/* 1. PAINTING COMPONENT */
.painting-card {
  background: var(--surface-color);
  padding: 15px;
  border-radius: 4px; /* Minimal border radius for canvas feel */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.4s ease;
  background-color: #fff9f0; /* Warm background */
}
.painting-card:hover {
  transform: scale(1.02);
}
.painting-frame {
  overflow: hidden;
  border: 12px solid #3c2a21; /* Dark wood frame */
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  height: 250px;
  background: #fff;
  padding: 10px; /* mat board */
}
.painting-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.painting-card:hover .painting-frame img {
  transform: scale(1.15); /* Zoom effect */
}
.painting-info {
  text-align: center;
  margin-top: 15px;
}
.painting-title {
  font-family: var(--font-display);
  color: #3c2a21;
}
.painting-style {
  color: var(--primary-color);
  font-style: italic;
  font-size: 0.9rem;
}

/* 2. TERRACOTTA COMPONENT */
.terracotta-card {
  background-color: #d1a88b; /* Clay base */
  background-image: url("https://www.transparenttextures.com/patterns/sandpaper.png"); /* Clay texture */
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 5px 10px 20px rgba(105, 58, 30, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  text-align: center;
}
.terracotta-card:hover {
  transform: translateY(-5px);
  box-shadow: 5px 15px 25px rgba(105, 58, 30, 0.4);
}
.handmade-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6e3d23;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.has-3d-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.8);
  color: #6e3d23;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.terracotta-img-wrapper {
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(209,168,139,0) 70%);
  padding: 0;
  overflow: hidden;
}
.terracotta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 -10px 15px rgba(0,0,0,0.5); /* 3D feel via box shadow since it's a full scene */
}
.terracotta-info {
  background: #fdf6ec; /* earthen white bottom */
  padding: 15px;
  border-top: 2px dashed #b88667;
}

/* 3. JEWELRY COMPONENT */
.jewelry-card {
  background: var(--surface-color);
  color: var(--text-dark);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}
.jewelry-card:hover {
  border-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.wishlist-btn.active i {
  color: #ff4757;
}
.jewelry-img-wrapper {
  height: 220px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jewelry-img-wrapper::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.6s ease;
}
.jewelry-card:hover .jewelry-img-wrapper::after {
  transform: rotate(45deg) translate(100%, 100%); /* Shine effect */
}
.jewelry-img-wrapper img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 0;
  padding: 10px;
  /* Remove drop-shadow because the image background is unified with the wrapper */
}
.jewelry-info {
  padding: 15px;
}
.jewelry-info h3 {
  font-family: var(--font-display);
  margin: 0 0 10px 0;
  font-weight: 500;
  color: var(--text-dark);
}
.jewelry-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jewelry-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}
.gold-buy-btn {
  background: linear-gradient(135deg, #d4af37, #aa8222);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

/* 4. TEXTILE COMPONENT */
.textile-card {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.textile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.textile-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.fold-effect::before {
  /* Removed CSS gradient fold mask since photograph natural folds are better */
  display: none;
}
.textile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.textile-card:hover .textile-img-wrapper img {
  transform: scale(1.1);
}
.textile-info {
  padding: 15px;
  background-image: url("https://www.transparenttextures.com/patterns/woven.png"); /* Fabric texture */
}
.textile-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.textile-tags span {
  background: var(--secondary-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.textile-info h3 {
  margin-bottom: 5px;
}
.textile-info p {
  color: var(--primary-color);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: bold;
}

/* SkillCraft Premium Enhancements */
.badge-accent {
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.3);
}

.tag-badge {
    background: rgba(216, 67, 21, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discovery-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.discovery-stats .stat .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.discovery-stats .stat p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* AI Scan Effect */
.ai-scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(216, 67, 21, 0.2), transparent);
    animation: scan 3s infinite linear;
    pointer-events: none;
    border-top: 2px solid var(--secondary-color);
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Opportunities & Tourism */
.ops-grid, .tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.op-card, .experience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.op-card:hover, .experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3);
}

.op-card {
    padding: 25px;
    border-radius: 16px;
    background: white;
}

.op-card.featured {
    border: 2px solid var(--primary-color);
    background: rgba(46, 125, 50, 0.02);
}

.op-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.op-header .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.op-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
}

.op-main h3 { margin: 0 0 5px 0; }
.op-tags { display: flex; gap: 10px; margin-top: 10px; }
.op-tags span {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

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

.experience-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.experience-card .price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Entrance Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-section.active {
    animation: fadeInUp 0.6s ease forwards;
}

.op-card, .experience-card, .product-card {
    animation: fadeInUp 0.8s ease forwards;
}


/* Final Polish Components */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-3);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.partners-section {
  background: var(--surface-color);
  padding: 50px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.02);
}

.marquee-container {
  display: flex;
  width: 200%;
}

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 80px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-row span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-light);
  opacity: 0.3;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.partner-row img {
  height: 40px;
  filter: grayscale(1);
  opacity: 0.4;
  transition: all 0.4s ease;
}

.partner-row img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.testimonial-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.testimonial-card {
    max-width: 400px;
    padding: 30px;
    text-align: left;
    border-radius: 20px;
}

.testimonial-card p { font-style: italic; font-size: 1.1rem; }
.testimonial-card h4 { margin-top: 20px; color: var(--primary-color); }
.testimonial-card span { font-size: 0.8rem; color: var(--text-light); }

.analytics-row {
    display: flex;
    gap: 20px;
}

.chart-container {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding-top: 30px;
}

.bar {
    flex: 1;
    background: rgba(46, 125, 50, 0.1);
    position: relative;
    border-radius: 4px 4px 0 0;
}

.bar.highlight { background: var(--primary-color); }

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-light);
}

.simple-list { list-style: none; padding: 0; }
.simple-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}


/* Floating Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-bubble:hover { transform: scale(1.1); }

.chat-status {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3d00;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}


/* Multi-Step Checkout UI */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-marker {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    font-weight: 700;
}

.step-marker.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-marker::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.payment-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-card-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card-option:hover {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.02);
}

.payment-card-option input {
    margin-right: 15px;
}

.pay-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.pay-info i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Success View */
.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: scaleUp 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes scaleUp {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* AI Chat Bot UI */
#help-bot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: #000;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    font-weight: 600;
}

.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.msg {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
}

.msg.bot {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-self: flex-start;
}

.msg.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: none;
    outline: none;
}


/* ===== RESPONSIVE ===== */
@media(max-width: 1200px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .viewer-3d-section {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .detail-split {
    flex-direction: column;
  }
  .shop-layout {
    flex-direction: column;
  }
  .shop-sidebar {
    width: 100%;
  }
  .livestream-layout {
    flex-direction: column;
    height: auto;
  }
  .chat-container {
    height: 400px;
  }
  .hamburger-btn {
    display: block;
  }
  .nav-container {
    flex-wrap: wrap;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding-top: 15px;
    gap: 15px;
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.show {
    display: flex;
  }
  .search-bar {
    max-width: calc(100% - 60px); /* Leave proper distance for the Cross button */
    margin-top: 5px;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  .sidebar {
    width: 100%;
    right: -100%;
  }
}

/* ===== SELLER PROFILE PAGE ===== */
.seller-header-banner {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: white;
}
.seller-header-banner .overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}
.seller-header-info {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px !important;
}
.seller-profile-main {
  display: flex;
  gap: 30px;
  align-items: center;
}
.seller-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.seller-title-box h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 5px;
}
.seller-badges {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 10px;
}
.seller-stats-inline {
  display: flex;
  gap: 20px;
  font-size: 1rem;
}
.seller-stats-inline b {
  font-size: 1.2rem;
}
.seller-header-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.seller-profile-content {
  padding-top: 50px !important;
}
.seller-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 40px;
}
.seller-tabs .tab {
  background: none;
  font-size: 1.2rem;
  padding: 10px 0;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 600;
}
.seller-tabs .tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.seller-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.seller-tab-content.active {
  display: block;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-light);
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.about-gallery img {
  width: 100%;
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
}

.reviews-summary {
  display: flex;
  gap: 80px;
  background: var(--surface-color);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.rating-big {
  text-align: center;
}
.rating-big .num {
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--primary-color);
  display: block;
}
.rating-big .stars {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 10px 0;
}
.rating-big p {
  color: var(--text-light);
}
.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
}
.bar-bg {
  flex: 1;
  height: 8px;
  background: var(--bg-color);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--secondary-color);
}

@media (max-width: 900px) {
  .seller-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .reviews-summary {
    flex-direction: column;
    gap: 30px;
  }
}


/* ===== ARTISAN TAGS ===== */
.artist-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tag-beginner {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.tag-pro {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.2);
}
.tag-pro i {
  color: #f59e0b;
}

.tag-elite {
  background: #fdf2f2;
  color: #9b1c1c;
  border: 1px solid #fbd5d5;
}


/* ===== ARTISAN ACADEMY ===== */
.academy-hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, #1a3a38 100%);
  color: white;
  padding: 80px 0;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}
.academy-hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.academy-content {
  flex: 1.2;
}
.badge-new {
  background: var(--secondary-color);
  color: #2c1e16;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 20px;
}
.academy-content h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.academy-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}
.academy-actions {
  display: flex;
  gap: 20px;
}
.academy-visual {
  flex: 0.8;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.academy-visual i {
  font-size: 12rem;
  color: rgba(255,255,255,0.1);
  z-index: 1;
}
.abstract-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 40px solid var(--secondary-color);
  opacity: 0.1;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.tutorial-card {
  overflow: hidden;
  transition: all 0.3s ease;
}
.tutorial-card:hover {
  transform: translateY(-10px);
}
.tutorial-card .thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.tutorial-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}
.tutorial-card:hover .play-btn {
  opacity: 1;
}
.duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.tut-info {
  padding: 20px;
}
.tut-info .cat {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.tut-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.tut-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.tut-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-light);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.biz-card {
  text-align: center;
}
.biz-icon {
  width: 60px; height: 60px;
  background: var(--bg-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px auto;
}
.biz-card .link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .academy-hero-flex {
    flex-direction: column;
    text-align: center;
  }
  .academy-actions {
    justify-content: center;
  }
}

/* ===== AUTHENTICITY CHECKER STYLES ===== */
.verify-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.verify-main-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  background: white;
}

.scan-area {
  width: 180px;
  height: 180px;
  border: 4px solid var(--primary-color);
  border-radius: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fa-camera-viewfinder {
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
  animation: pulse 2s infinite ease-in-out;
}

.scan-line {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  animation: scan-move 2.5s infinite linear;
}

@keyframes scan-move {
  0% { top: 10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 160px; opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.1; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.1; }
}

.analysis-loader {
  text-align: center;
}

.ai-brain {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.analysis-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.step-item {
  color: var(--text-light);
  font-weight: 500;
  opacity: 0.4;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step-item.active { opacity: 1; color: var(--primary-color); font-weight: 700; transform: scale(1.1); }
.step-item.done { opacity: 1; color: #43a047; }
.step-item.done i { margin-right: 5px; }

.result-card-inner {
  animation: fadeInUp 0.6s ease forwards;
}

.confidence-bg {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0;
  transition: width 2s ease-in-out;
}

.verify-main-card.Original_Handloom { border: 3px solid #43a047; }
.verify-main-card.Needs_Verification { border: 3px solid #ff9800; }
.verify-main-card.Likely_Fake { border: 3px solid #e53935; }

.badge-authentic { background: #e8f5e9; color: #2e7d32; padding: 6px 12px; border-radius: 50px; font-weight: 700; }
.badge-warning { background: #fff3e0; color: #ef6c00; padding: 6px 12px; border-radius: 50px; font-weight: 700; }
.badge-fake { background: #ffebee; color: #c62828; padding: 6px 12px; border-radius: 50px; font-weight: 700; }

.craft-detail-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

@media(max-width: 900px) {
  .verify-layout { grid-template-columns: 1fr; }
}

/* Pricing / Subscription Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.pricing-card {
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 95, 60, 0.05));
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: translateY(-10px) scale(1.05);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.card-header .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.card-header .price span {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 400;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  text-align: left;
  flex-grow: 1;
}

.features li {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features li i.fa-check {
  color: #27ae60;
}

.features li i.fa-xmark {
  color: #e74c3c;
}

.features li.disabled {
  opacity: 0.5;
  text-decoration: line-through;
}

.pricing-card button {
  margin-top: auto;
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1);
  }
  .pricing-card.popular:hover {
    transform: translateY(-10px) scale(1);
  }
}


