:root {
  --primary: #1a3a2a;
  --primary-light: #2d5a3f;
  --accent: #c8a96e;
  --accent-hover: #b8944e;
  --bg: #faf9f7;
  --bg-alt: #f0ede8;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --white: #ffffff;
  --border: #e0dcd5;
  --success: #2d8f4e;
  --danger: #c0392b;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Top Bar */
.top-bar {
  background: #f8f6f2;
  color: #000000;
  font-size: 0.78rem;
  padding: 6px 0;
  letter-spacing: 0.3px;
}
.top-bar a { color: #000000; }
.top-bar i { margin-right: 4px; font-size: 0.7rem; }

/* Header */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link { display: flex; flex-direction: column; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Search */
.search-form {
  position: relative;
}
.search-form input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 50px 10px 20px;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition);
}
.search-form input:focus {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
  outline: none;
}
.search-form button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { background: var(--accent-hover); }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown.active { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.search-item:hover { background: var(--bg-alt); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-item .s-name { font-size: 0.85rem; font-weight: 500; }
.search-item .s-price { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.header-icons a {
  font-size: 1.2rem;
  color: var(--text);
  transition: var(--transition);
}
.header-icons a:hover { color: var(--accent); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.main-nav {
  background: #f8f6f2;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-menu li a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
}
.nav-menu li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}
.sale-link { color: #ff6b6b !important; }

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--white);
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, rgba(26,58,42,0.7) 0%, rgba(45,90,63,0.7) 100%);
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(200,169,110,0.1);
  border-radius: 50%;
}
.hero-overlay { width: 100%; padding: 80px 0; position: relative; z-index: 1; }
.hero-content {
  max-width: 600px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

/* Buttons */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* USP Bar */
.usp-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.usp-bar .col-md-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.usp-bar i { color: var(--accent); font-size: 1.2rem; }

/* Section Titles */
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  color: var(--primary);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Category Cards */
.section-categories { padding: 60px 0; }
.category-card {
  display: block;
  text-align: center;
  transition: var(--transition);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.category-card:hover .category-img img { transform: scale(1.05); }
.category-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}
.category-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 16px 12px 4px;
  color: var(--primary);
}
.category-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 16px;
  display: block;
}

/* Product Cards */
.section-products { padding: 60px 0; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge.sale { background: var(--danger); color: var(--white); }
.product-badge.featured { background: var(--accent); color: var(--white); }

.product-info { padding: 16px; }
.product-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 4px 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }

.product-rating {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--accent);
}
.product-rating span { color: var(--text-muted); margin-left: 4px; }

.btn-add-cart {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #f8f6f2;
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.product-card:hover .btn-add-cart {
  opacity: 1;
  transform: translateY(0);
}
.btn-add-cart:hover { background: var(--accent); }

/* Promo Banner */
.promo-banner {
  background: #f8f6f2;
  color: var(--white);
  padding: 80px 0;
}
.promo-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.promo-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Cart Page */
.cart-page { padding: 40px 0; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--accent); font-weight: 700; }
.cart-qty { width: 60px; text-align: center; }
.cart-summary {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-summary h3 { font-family: var(--font-heading); margin-bottom: 20px; }
.cart-row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* Footer */
.site-footer {
  background: #f8f6f2;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-desc { font-size: 0.85rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  transition: var(--transition);
}
.footer-social a:hover { color: var(--accent); }

.site-footer h6 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.site-footer ul li a:hover { color: var(--accent); }

.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form .btn-accent { padding: 8px 20px; font-size: 0.85rem; }

.payment-icons {
  display: flex;
  gap: 12px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Auth Pages */
.auth-page { padding: 60px 0; }
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-family: var(--font-heading); text-align: center; margin-bottom: 30px; color: var(--primary); }
.auth-card .form-label { font-weight: 500; font-size: 0.85rem; }
.auth-card .form-control { border-radius: var(--radius); padding: 10px 16px; }
.auth-card .btn { width: 100%; padding: 12px; }

/* Category Page */
.category-header {
  background: #f8f6f2;
  color: var(--white);
  padding: 40px 0;
  margin-bottom: 30px;
}
.category-header h1 { font-family: var(--font-heading); font-size: 2rem; }

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.filter-bar select { border-radius: var(--radius); padding: 8px 16px; border: 1px solid var(--border); }

/* Product Detail */
.product-detail { padding: 40px 0; }
.product-gallery { position: relative; }
.product-gallery .main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-thumbs img:hover, .product-thumbs img.active { border-color: var(--accent); }

.product-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}
.product-detail-price .old { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }
.product-detail-desc { color: var(--text-light); line-height: 1.8; margin: 20px 0; }

.add-to-cart-form { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.add-to-cart-form .qty-input { width: 80px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border); padding: 10px; }
.add-to-cart-form .btn { padding: 12px 40px; }

.stock-info { margin: 12px 0; font-size: 0.85rem; }
.stock-in { color: var(--success); }
.stock-low { color: #e67e22; }
.stock-out { color: var(--danger); }

/* Reviews */
.reviews-section { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.review-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--accent); margin-bottom: 8px; }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-date { color: var(--text-muted); font-size: 0.8rem; }

/* Breadcrumb */
.breadcrumb-nav { padding: 12px 0; }
.breadcrumb-nav a { color: var(--text-muted); font-size: 0.85rem; }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav span { color: var(--text-muted); font-size: 0.85rem; margin: 0 6px; }

/* Error Page */
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-family: var(--font-heading); font-size: 3rem; color: var(--primary); }
.error-page p { color: var(--text-light); margin: 16px 0 30px; }

/* Pagination */
.pagination-nav { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination-nav a, .pagination-nav span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: var(--transition);
}
.pagination-nav a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pagination-nav .active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Admin */
.admin-body { background: #f5f5f5; font-family: var(--font-body); }
.admin-sidebar {
  width: 240px;
  background: var(--primary);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.admin-sidebar .brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .brand a {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.3rem;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-sidebar nav a i { width: 20px; text-align: center; }

.admin-main { margin-left: 240px; padding: 20px 30px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-card i { float: right; font-size: 1.5rem; color: var(--accent); }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-card .card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-card .card-body { padding: 20px; }

.admin-table { width: 100%; }
.admin-table th { background: var(--bg-alt); padding: 10px 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:hover { background: var(--bg-alt); }
.admin-table img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-pending { background: #fff3cd; color: #856404; }

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-section { min-height: 350px; }
  .nav-menu { display: none; flex-direction: column; }
  .nav-menu.show { display: flex; }
  .product-img { height: 180px; }
  .category-img { height: 140px; }
  .search-form { margin: 10px 0; }
  .header-icons { justify-content: center; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar .brand a span, .admin-sidebar nav a span { display: none; }
  .admin-main { margin-left: 60px; }
}

/* Header Logo Image */
.header-logo { max-height: 60px; width: auto; object-fit: contain; }
@media (max-width: 768px) { .header-logo { max-height: 45px; } }
