@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #10b981;
  --color-primary-light: #34d399;
  --color-primary-dark: #065f46;
  --color-accent: #10b981;
  --color-bg: #050807;
  --color-card: #080d0b;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-border: #11221c;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.6);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header & Navigation */
.header-web {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.logo svg {
  fill: var(--color-primary);
  width: 32px;
  height: 32px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: rgba(25, 135, 84, 0.08);
}

.cart-icon-btn {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-icon-btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-light);
  box-shadow: 0 6px 15px rgba(25, 135, 84, 0.4);
}

.cart-count {
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Main Container */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 70vh;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.15) 0%, rgba(250, 248, 245, 0.9) 100%), 
              url('https://images.unsplash.com/photo-1512428559087-560fa5ceab42?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  margin-bottom: 48px;
  text-align: left;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  background: rgba(25, 135, 84, 0.12);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 650px;
}

.hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 550px;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
}

.btn-accent:hover {
  background: #b45309;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--color-card);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(25, 135, 84, 0.2);
}

.feature-icon {
  background: rgba(25, 135, 84, 0.08);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Catalog section */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.section-title span {
  color: var(--color-accent);
}

/* Product Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 64px;
}

.product-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 135, 84, 0.3);
}

.product-image-container {
  height: 220px;
  background-color: #f3f4f6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-container svg {
  width: 80px;
  height: 80px;
  fill: #cbd5e1;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-accent);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-lab-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-weight {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-add-cart {
  background: var(--color-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.btn-add-cart svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.stock-warning-tag {
  color: var(--color-danger);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.stock-tag {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Single Product Page */
.product-detail-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 48px;
  margin-top: 24px;
  background: var(--color-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.product-detail-img {
  background: #f8f9fa;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-detail-img svg {
  width: 150px;
  height: 150px;
  fill: #dee2e6;
}

.product-detail-info h2 {
  font-size: 32px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.product-detail-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.product-detail-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 16px;
  color: #495057;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.qty-selector {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  background: #fff;
  border: none;
  width: 40px;
  font-size: 18px;
  cursor: pointer;
}

.qty-btn:hover {
  background: #f8f9fa;
}

.qty-input {
  border: none;
  width: 50px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

/* Cart Page */
.cart-table-wrap {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  overflow: hidden;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cart-table th, .cart-table td {
  padding: 20px 24px;
}

.cart-table th {
  background: rgba(25, 135, 84, 0.04);
  font-weight: 600;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-border);
}

.cart-table td {
  border-bottom: 1px solid var(--color-border);
}

.cart-product-title {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.cart-remove-btn {
  color: var(--color-danger);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.cart-remove-btn:hover {
  text-decoration: underline;
}

.cart-summary-box {
  background: var(--color-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
}

.summary-row.total {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 16px;
}

/* Checkout Page */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-form-box {
  background: var(--color-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.checkout-form h3 {
  margin-bottom: 24px;
  color: var(--color-primary-dark);
  font-size: 22px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-control {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

/* Order Summary Box */
.order-summary-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.order-items-list {
  list-style: none;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.order-item-summary {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Legal Pages */
.legal-container {
  background: var(--color-card);
  padding: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.legal-container h1 {
  color: var(--color-primary-dark);
  font-size: 32px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
}

.legal-container h2 {
  color: var(--color-primary);
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.legal-container p {
  color: #495057;
  margin-bottom: 16px;
  font-size: 15px;
  text-align: justify;
}

/* Footer */
.footer-web {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-accent);
}

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

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

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.muted { color: var(--color-text-muted); }
.success-box {
  background: rgba(25,135,84,0.08);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.empty-cart-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.empty-cart-box svg {
  width: 80px;
  height: 80px;
  fill: #4b5563;
  margin-bottom: 24px;
}

/* Dark Theme Overrides for Premium Aesthetics */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}
.header-web {
  background: rgba(5, 8, 7, 0.85);
  border-bottom: 1px solid var(--color-border);
}
.logo {
  color: #ffffff;
}
.nav-link {
  color: #f3f4f6;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: rgba(16, 185, 129, 0.12);
}
.cart-icon-btn {
  background: var(--color-primary);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.cart-icon-btn:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}
.hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 8, 7, 0.95) 100%), url('/assets/images/botanicbd_hero_bg.png');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
}
.hero h1 {
  color: #ffffff;
}
.hero p {
  color: #9ca3af;
}
.btn-accent {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50px;
}
.btn-accent:hover {
  background: var(--color-primary-light);
}
.btn-outline {
  border-color: #ffffff;
  color: #ffffff;
  border-radius: 50px;
}
.btn-outline:hover {
  background: #ffffff;
  color: #000000;
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05);
}
.footer-web {
  background: #030504;
  color: #9ca3af;
  border-top: 1px solid var(--color-border);
}
.footer-col h4 {
  color: #ffffff;
}
.footer-contact {
  color: #9ca3af;
}
.footer-links li a {
  color: #9ca3af;
}
.footer-links li a:hover {
  color: var(--color-primary);
}
.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05);
}
.product-image-container {
  background-color: #050807;
}
.product-image-container svg {
  fill: #1f2937;
}
.product-name a {
  color: #ffffff;
}
.product-name a:hover {
  color: var(--color-primary);
}
.product-detail-container {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.product-detail-img {
  background: #050807;
}
.product-detail-img svg {
  fill: #1f2937;
}
.product-detail-info h2 {
  color: #ffffff;
}
.qty-btn {
  background: #080d0b;
  color: #ffffff;
  border: 1px solid var(--color-border);
}
.qty-btn:hover {
  background: #11221c;
}
.qty-input {
  background: #050807;
  color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cart-table-wrap, .cart-summary-box, .checkout-form-box, .order-summary-box, .success-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.cart-table th {
  background: rgba(16, 185, 129, 0.05);
  color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.cart-table td {
  border-bottom: 1px solid var(--color-border);
}
.cart-product-title {
  color: #ffffff;
}
.form-control {
  background: #050807;
  border: 1px solid var(--color-border);
  color: #ffffff;
}
.form-control:focus {
  border-color: var(--color-primary);
  background: #080d0b;
}
