/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #E8630C;
  --primary-dark: #c8550a;
  --secondary: #5C3A21;
  --accent: #2D8A4E;
  --bg-warm: #FFF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 0 20px;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.cart-icon {
  position: relative;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: 70px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8630C 0%, #5C3A21 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: heroShimmer 15s ease infinite;
}

@keyframes heroShimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-cta:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: scale(1.05);
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  font-family: Georgia, 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ===== Featured Carousel ===== */
.featured-section {
  padding: 80px 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 10px;
}

.featured-card {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.featured-card-image {
  flex: 1;
  min-height: 380px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f5f0;
}

.featured-card-content {
  flex: 1;
  padding: 50px;
}

.featured-card-content h3 {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.featured-card-content .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.featured-card-content .desc {
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-white);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--secondary);
}

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

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ===== Categories ===== */
.categories-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 25px 15px;
  border-radius: var(--radius);
  background: var(--bg-warm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.category-item span {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ===== Products Grid ===== */
.products-section {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  height: 240px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f0eb;
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-card-body .rating {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.product-card-body .rating span {
  color: var(--text-muted);
  margin-left: 5px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--secondary);
  color: white;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.add-to-cart-btn:hover {
  background: var(--primary);
}

/* ===== Trust Badges ===== */
.trust-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.trust-item {
  padding: 30px;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.trust-item h4 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-family: Georgia, 'Playfair Display', serif;
  color: white;
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.footer p {
  line-height: 1.8;
  font-size: 0.9rem;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ===== Product Detail Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal-image {
  flex: 1;
  min-height: 450px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f5f0;
  background-color: #f5f0eb;
}

.modal-detail {
  flex: 1;
  padding: 40px;
  position: relative;
}

.modal-detail h2 {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.modal-detail .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-detail .rating {
  color: #f59e0b;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.modal-detail .rating span {
  color: var(--text-muted);
  margin-left: 5px;
}

.modal-detail .sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-detail .description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: var(--bg-warm);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-value {
  font-size: 1.1rem;
  font-weight: 600;
  width: 40px;
  text-align: center;
}

/* ===== Cart Page ===== */
.cart-page {
  padding: 120px 20px 60px;
  min-height: 60vh;
}

.cart-page h1 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 30px;
  font-size: 2rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f5f0;
  background-position: center;
  flex-shrink: 0;
  background-color: #f5f0eb;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.cart-item-info .item-price {
  color: var(--primary);
  font-weight: 600;
}

.cart-item .qty-selector {
  margin-bottom: 0;
}

.cart-item .item-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  min-width: 80px;
  text-align: right;
}

.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.remove-item:hover {
  background: #fef2f2;
}

.cart-summary {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
  padding-top: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.cart-empty h3 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* ===== Payment Modal ===== */
.payment-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.payment-overlay.active {
  display: flex;
}

.payment-modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 40px;
  animation: modalIn 0.3s ease;
}

.payment-modal h3 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.3rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

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

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-code-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.send-code-btn:hover {
  background: #237a40;
}

.send-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.email-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.payment-methods {
  margin-top: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary);
  background: #fff5ed;
}

.payment-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment-option .pay-icon {
  font-size: 1.8rem;
}

.payment-option .pay-name {
  font-weight: 600;
  color: var(--secondary);
}

.payment-option .pay-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-actions {
  margin-top: 25px;
}

.pay-now-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}

.pay-now-btn:hover {
  background: var(--primary-dark);
}

.pay-now-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Success Toast ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 5000;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  font-weight: 600;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  background: #ef4444;
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .featured-card {
    flex-direction: column;
  }
  .featured-card-image {
    min-height: 250px;
    width: 100%;
  }
  .featured-card-content {
    padding: 30px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modal-content {
    flex-direction: column;
  }
  .modal-image {
    min-height: 280px;
  }
  .modal-detail {
    padding: 25px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .category-item {
    padding: 15px 10px;
  }
  .category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .container {
    padding: 0 12px;
  }
  .payment-modal {
    padding: 24px;
  }
}