:root {
  --primary: #1b5e20;
  /* Deep Coorg Green */
  --primary-light: #4c8c4a;
  --secondary: #fb8c00;
  /* Spicy Orange */
  --accent: #d4af37;
  /* Premium Gold */
  --bg-light: #f8f9fa;
  --text-main: #212121;
  --text-muted: #616161;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --luxury-gradient: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

/* Header & Navigation */
.header-main {
  background: var(--primary);
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: var(--white);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.top-strip {
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 100%;
  margin: 0;
  padding: 8px 40px;
}

.brand-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  color: var(--secondary);
}

.search-box {
  flex-grow: 1;
  position: relative;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  outline: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  opacity: 0.8;
}

.login-btn {
  background-color: var(--white);
  color: var(--primary);
  padding: 8px 32px;
  font-weight: 800;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 13px;
}

.login-btn:hover {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 140, 0, 0.3);
}

/* Category Slider */
.cat-bar {
  background: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.cat-container {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
}

.cat-item:hover {
  color: var(--primary);
}

.cat-item img {
  width: 68px;
  height: 68px;
  border-radius: 0;
  margin-bottom: 10px;
  object-fit: cover;
  padding: 4px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.cat-item:hover img {
  border-color: var(--secondary);
}

.cat-item span {
  font-size: 14px;
  font-weight: 700;
}

/* Content Layout */
.main-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero-banner {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
}

.hero-overlay h1 {
  font-size: 52px;
  color: white;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-overlay p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 500px;
  opacity: 0.9;
}

.cta-btn {
  background: var(--secondary);
  color: white;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  width: fit-content;
  transition: var(--transition);
}

.cta-btn:hover {
  box-shadow: 0 8px 24px rgba(251, 140, 0, 0.4);
}

/* Product Shelf */
.shelf-container {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.shelf-title {
  font-size: 22px;
}

.shelf-title span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  padding: 15px;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.product-card:hover {
  border-color: #eee;
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-info h3 {
  font-size: 15px;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.discount-tag {
  color: #388e3c;
  font-size: 13px;
  font-weight: 700;
}

/* Auth Pages */
.auth-wrapper {
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  display: flex;
  width: 900px;
  height: 550px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .auth-card {
    width: 95%;
    flex-direction: column;
    height: auto;
  }

  .auth-aside {
    width: 100%;
    padding: 30px;
  }

  .auth-form-container {
    width: 100%;
    padding: 30px;
  }
}

.auth-aside {
  width: 40%;
  background: var(--primary);
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
  padding: 48px;
  color: white;
  display: flex;
  flex-direction: column;
}

.auth-form-container {
  width: 60%;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
  outline: none;
}

.auth-submit {
  background: var(--secondary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-submit:hover {
  filter: brightness(1.1);
}

/* Footer Improvements */
.footer-main {
  background: #172337;
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 2fr;
  gap: 40px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }
}

.footer-col h4 {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1300px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid #454d5e;
  text-align: center;
  font-size: 13px;
  color: #878787;
}

.contact-info {
  background: var(--accent);
  color: #1a1a1a;
  padding: 15px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 20px;
}

/* User Dropdown */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 15px;
  display: none;
  overflow: hidden;
}

.user-menu:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: var(--primary);
}

/* Admin Dashboard Specifics */
.admin-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.upload-area {
  border: 2px dashed #ddd;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(27, 94, 32, 0.02);
}

/* Luxury Animations & Micro-interactions */
@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slide-up 0.6s ease-out forwards;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-pulse:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(40, 40);
    opacity: 0;
  }
}

/* Advanced Product Page Elements */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.media-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-media {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  position: relative;
}

.main-media img,
.main-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-thumbnails {
  display: flex;
  gap: 10px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border: 2px solid #eee;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.thumb-item.active {
  border-color: var(--primary);
}

.product-details-luxury {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Checkout Luxury Stepper */
.stepper-luxury {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.stepper-luxury:before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #eee;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 10px;
  text-align: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 14px;
}

.step-item.active .step-circle {
  background: var(--primary);
  color: white;
}

.step-item.completed .step-circle {
  background: #4caf50;
  color: white;
}

/* Global Mobile Responsive Tweaks */
@media (max-width: 1200px) {

  .nav-container,
  .main-content,
  .footer-grid,
  .footer-bottom {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .auth-card {
    width: 95%;
    height: auto;
    flex-direction: column;
  }

  .auth-aside,
  .auth-form-container {
    width: 100%;
    padding: 30px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .main-media {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .header-main {
    padding: 5px 0;
  }

  .nav-container {
    gap: 15px;
  }

  .brand-logo {
    font-size: 20px;
  }

  .search-box {
    max-width: none;
  }

  .cat-container {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .cat-item img {
    width: 50px;
    height: 50px;
  }

  .hero-banner {
    height: 250px;
  }

  .hero-overlay h1 {
    font-size: 32px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .shelf-container {
    padding: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shelf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-view-all {
    width: 100%;
    text-align: center;
  }
}