
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');


:root {
  --cream:        #f5f0d8;
  --cream-dark:   #ede7c5;
  --sage:         #8a9e7a;
  --sage-light:   #a8bc98;
  --sage-dark:    #6b7d5e;
  --forest:       #3a4f2e;
  --forest-deep:  #2b3a22;
  --bark:         #c17a4a;
  --white:        #ffffff;
  --card-bg:      #f9f5ee;
  --text-dark:    #2e3a26;
  --text-mid:     #5a6b4e;
  --text-light:   #8a9e7a;
  --shadow-soft:  0 4px 18px rgba(60, 80, 40, 0.10);
  --shadow-hover: 0 8px 32px rgba(60, 80, 40, 0.18);
  --radius-card:  18px;
  --radius-btn:   10px;
  --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--sage);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
  background-color: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(60, 80, 40, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--forest);
  line-height: 1.3;
  max-width: 90px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  background: none;
  border: none;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > button:hover {
  background-color: var(--cream-dark);
  color: var(--forest-deep);
}

.nav-links .chevron {
  font-size: 10px;
  opacity: 0.6;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hover);
  min-width: 160px;
  padding: 6px 0;
  z-index: 200;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px; /* Covers the 6px gap */
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-links > li:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--forest);
  transition: background var(--transition);
}

.dropdown li a:hover { background: var(--cream-dark); }

/* Nav Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 17px;
  transition: background var(--transition);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.nav-icon-btn:hover { background: var(--cream-dark); }

a.nav-icon-btn {
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.active { display: flex; }

/* Mobile hamburger shown at small screens */
.nav-hamburger { display: none; }

/* =========================================
   HERO BANNER
   ========================================= */

.hero {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Fallback gradient when no image is provided */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(40, 60, 30, 0.38),
    rgba(40, 60, 30, 0.52)
  );
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--forest) 100%);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */

.main-content {
  flex: 1;
  background-color: var(--sage);
  padding: 36px 24px 60px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================
   PRODUCT GRID (Sample 1 / Sample 3)
   ========================================= */

/* Section heading above grid */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* 3-column grid (Sample 1 default) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 6-column grid variant (Sample 3) */
.product-grid.grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* --- Product Card --- */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

/* Image wrapper */
.card-img-wrap {
  aspect-ratio: 1 / 1;
  background: #eeeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition);
}

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

/* Placeholder when no image */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d4c8;
  color: #a09a8e;
  font-size: 32px;
}

/* Card body */
.card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.3;
}

.card-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--sage-dark);
}

/* Quantity row (Sample 3 style) */
.card-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--sage);
  background: var(--cream);
  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.qty-btn:hover {
  background: var(--sage-light);
  border-color: var(--sage-dark);
}

.qty-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  min-width: 20px;
  text-align: center;
}

/* =========================================
   PRODUCT DETAIL PAGE (Sample 2)
   ========================================= */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.detail-img-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 4 / 4.5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}

.detail-desc-box {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 180px;
  box-shadow: var(--shadow-soft);
}

.detail-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-mid);
}

.detail-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}

/* Quantity + Add to Cart row */
.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qty-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-bottom: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--cream);
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1.5px solid var(--cream-dark);
}

.qty-control .qty-btn {
  width: 38px;
  height: 40px;
  border-radius: 0;
  border: none;
  background: none;
  font-size: 18px;
  color: var(--forest);
}

.qty-control .qty-btn:hover { background: var(--cream-dark); }

.qty-control .qty-value {
  font-size: 15px;
  min-width: 42px;
  text-align: center;
  color: var(--forest);
  font-weight: 600;
}

.btn-add-cart {
  flex: 1;
  padding: 12px 28px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.btn-add-cart:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.btn-add-cart:active { transform: translateY(0); }

/* =========================================
   FOOTER
   ========================================= */

footer {
  background-color: var(--forest-deep);
  color: var(--cream-dark);
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 240, 200, 0.12);
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(245, 240, 200, 0.65);
  max-width: 220px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 13.5px;
  color: rgba(245, 240, 200, 0.65);
  transition: color var(--transition);
}

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

/* Social icons row */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(245, 240, 200, 0.08);
  border: 1px solid rgba(245, 240, 200, 0.14);
  color: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}

.social-btn:hover {
  background: rgba(245, 240, 200, 0.18);
  color: var(--cream);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(245, 240, 200, 0.07);
  border: 1px solid rgba(245, 240, 200, 0.16);
  border-right: none;
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  color: var(--cream);
  outline: none;
}

.newsletter-input::placeholder { color: rgba(245, 240, 200, 0.35); }
.newsletter-input:focus { border-color: var(--sage-light); }

.newsletter-btn {
  padding: 9px 16px;
  background: var(--sage-dark);
  border: none;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}

.newsletter-btn:hover { background: var(--sage); }

/* Bottom bar */
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(245, 240, 200, 0.42);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: rgba(245, 240, 200, 0.42);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--cream-dark); }

/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(245, 240, 200, 0.65);
}

.breadcrumb a { color: rgba(245, 240, 200, 0.75); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--cream); font-weight: 500; }

/* =========================================
   FILTER / SORT BAR
   ========================================= */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-chip {
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid rgba(245, 240, 200, 0.3);
  background: transparent;
  color: var(--cream-dark);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(245, 240, 200, 0.3);
  background: transparent;
  color: var(--cream-dark);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.sort-select:focus { border-color: var(--cream); }
.sort-select option { background: var(--forest); color: var(--cream); }

/* Grid / List view toggle */
.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid rgba(245, 240, 200, 0.3);
  background: transparent;
  color: rgba(245, 240, 200, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.view-btn:hover,
.view-btn.active {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

/* =========================================
   EMPTY STATE
   ========================================= */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(245, 240, 200, 0.5);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: rgba(245, 240, 200, 0.6);
  margin-bottom: 8px;
}

.empty-state-sub {
  font-size: 14px;
  color: rgba(245, 240, 200, 0.4);
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--sage-light);
  animation: toastIn 0.3s ease forwards;
  pointer-events: all;
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(10px); }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.grid-6 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 16px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-grid.grid-6 { grid-template-columns: repeat(2, 1fr); }

  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .filter-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
