:root {
  /* Colors */
  --bg-primary: #fdf8f3;
  --bg-secondary: #f3e8dc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --color-espresso: #5c3d2e;
  --color-caramel: #c08a5d;
  --color-sand: #e6ccb2;
  --color-olive: #6b705c;
  --color-cocoa: #7f5539;
  
  /* Gradients */
  --grad-warm-soft: linear-gradient(135deg, #f3e8dc, #e6ccb2);
  --grad-warm-deep: linear-gradient(135deg, #c08a5d, #7f5539);
  
  /* Layout */
  --max-width: 1320px;
  --padding-x: 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 18px;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Effects */
  --shadow-soft: 0 10px 30px rgba(92, 61, 46, 0.08);
  --shadow-hover: 0 15px 40px rgba(92, 61, 46, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-espresso);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Layout Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--grad-warm-deep);
  color: #fff;
  box-shadow: 0 4px 15px rgba(127, 85, 57, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 85, 57, 0.4);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--color-espresso);
  border: 1px solid var(--color-sand);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(92, 61, 46, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-espresso);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-olive);
}

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

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

.cart-icon {
  position: relative;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-espresso);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-caramel);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-espresso);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('images/photo-1497935586351-b67a49e012bf-hero.png');
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 248, 243, 0.9), rgba(243, 232, 220, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-olive);
  margin-bottom: 32px;
  font-weight: 400;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
}

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

.product-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-caramel);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-price {
  font-weight: 600;
  color: var(--color-cocoa);
  font-size: 1.1rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Lifestyle Section */
.lifestyle-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.lifestyle-img {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.lifestyle-content {
  flex: 1;
}

.lifestyle-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.lifestyle-content p {
  color: var(--color-olive);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* Features List */
.features-list {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-caramel);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stars {
  color: var(--color-caramel);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--color-olive);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cart & Checkout Page */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
  background: var(--grad-warm-soft);
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.cart-items {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-sand);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  width: fit-content;
  padding: 4px 12px;
  border-radius: 20px;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-espresso);
}

.cart-item-price {
  font-weight: 600;
  font-size: 1.1rem;
}

.remove-btn {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--color-olive);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-sand);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-espresso);
  margin-bottom: 24px;
}

/* Single Product Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.product-gallery img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.product-info h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.product-info .price {
  font-size: 1.8rem;
  color: var(--color-cocoa);
  font-weight: 600;
  margin-bottom: 24px;
}

.product-info p {
  color: var(--color-olive);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.meta-info {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-sand);
  border-bottom: 1px solid var(--color-sand);
}

.meta-item {
  display: flex;
  margin-bottom: 12px;
}

.meta-label {
  font-weight: 600;
  width: 120px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-espresso);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-espresso);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-caramel);
  box-shadow: 0 0 0 3px rgba(192, 138, 93, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Text Pages (Privacy, Terms, Story) */
.text-page-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.text-page-content h2 {
  margin: 32px 0 16px;
  font-size: 1.8rem;
}

.text-page-content p {
  margin-bottom: 16px;
  color: var(--color-olive);
}

.text-page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--color-olive);
}

/* Footer */
.footer {
  background: var(--color-espresso);
  color: var(--bg-primary);
  padding: 80px 0 30px;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--color-sand);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--color-caramel);
}

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

.footer-links a {
  color: var(--color-sand);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(230, 204, 178, 0.2);
  color: var(--color-sand);
  font-size: 0.9rem;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  color: var(--color-olive);
  margin-bottom: 24px;
  font-size: 1.2rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .section { padding: 70px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-section { flex-direction: column; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .nav-actions { display: none; }
  .hero-content h1 { font-size: 2.8rem; }
  .product-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .text-page-content { padding: 30px 20px; }
}