:root {
  --bg-color: #FEFDF5;
  --text-color: #4B3621;
  --primary-color: #88B04B;
  --primary-variant: #769e3d;
  --accent-color: #FFD180;
  --card-bg: #FFFFFF;
  --shadow: 0 18px 40px rgba(136, 176, 75, 0.12);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.07);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 209, 128, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  letter-spacing: 0.2rem;
  color: var(--primary-color);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 200ms ease;
}

.nav a:hover {
  background: rgba(255, 209, 128, 0.35);
  color: var(--primary-variant);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(136, 176, 75, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.search input {
  border: none;
  padding: 10px 12px;
  min-width: 190px;
  background: transparent;
  font-size: 0.9rem;
  outline: none;
}

.search button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1rem;
}

.icon-btn {
  border: none;
  background: rgba(255, 209, 128, 0.65);
  border-radius: 50%;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  transition: 200ms ease;
}

.icon-btn:hover {
  background: rgba(255, 209, 128, 0.9);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  background: var(--primary-color);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 999px;
}

.btn-outline {
  border: 2px solid rgba(136, 176, 75, 0.65);
  background: transparent;
  color: var(--text-color);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 200ms ease;
}

.btn-outline:hover {
  background: rgba(136, 176, 75, 0.12);
}

.mobile-only {
  display: none;
}

/* Hero */
.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 10% 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(254, 253, 245, 0.9), rgba(254, 253, 245, 0.75)),
    url('giaodien.jpg') center/cover no-repeat;
}

.hero__content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  margin-bottom: 18px;
  line-height: 1.1;
}

.hero__content p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: rgba(75, 54, 33, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 14px 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: 220ms ease;
}

.btn-secondary {
  background: rgba(255, 209, 128, 0.35);
  color: var(--text-color);
  padding: 14px 42px;
  border: 2px solid rgba(136, 176, 75, 0.55);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 220ms ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

/* Intro */
.intro {
  padding: 60px 10% 40px;
  background: rgba(255, 255, 255, 0.92);
}

.intro__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: rgba(75, 54, 33, 0.85);
}

.intro__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.intro__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Features */
.features {
  padding: 60px 10% 50px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

/* Product Page */
.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 10% 90px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 32px;
  color: rgba(75, 54, 33, 0.7);
}

.breadcrumb a {
  color: rgba(75, 54, 33, 0.7);
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 6px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.product-detail__gallery {
  position: relative;
}

.product-detail__image {
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-detail__info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.product-detail__description {
  color: rgba(75, 54, 33, 0.85);
  line-height: 1.7;
}

.product-detail__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-detail__actions .quantity {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-detail__actions input {
  width: 100px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(136, 176, 75, 0.4);
  text-align: center;
}

.product-detail__meta {
  padding: 16px 18px;
  border: 1px solid rgba(224, 224, 224, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(75, 54, 33, 0.85);
  font-size: 0.95rem;
}

.related {
  padding-top: 30px;
}

.related .section-title {
  margin-bottom: 32px;
}

.feature {
  background: white;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid rgba(224, 224, 224, 0.8);
  box-shadow: var(--shadow-soft);
}

.feature__icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature p {
  color: rgba(75, 54, 33, 0.8);
  font-size: 0.95rem;
}

/* Products */
.products {
  padding: 80px 10% 100px;
  background: white;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 -2px 22px rgba(0, 0, 0, 0.03);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 38px;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 999px;
  margin: 16px auto 0;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(75, 54, 33, 0.7);
}

.filter select {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(136, 176, 75, 0.4);
  background: rgba(255, 255, 255, 0.9);
  min-width: 170px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  justify-content: center;
  margin-top: 10px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(224, 224, 224, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 380px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.product-card p {
  margin-bottom: 18px;
}

.price {
  color: rgba(131, 95, 64, 0.9);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.product-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(136, 176, 75, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  transition: 220ms ease;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(136, 176, 75, 0.15);
}

.btn-add {
  flex: 1;
  padding: 13px;
  border: 2px solid rgba(255, 209, 128, 0.9);
  border-radius: 999px;
  background: transparent;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  transition: 220ms ease;
}

.btn-add:hover {
  background: rgba(255, 209, 128, 0.95);
}

/* Story Section */
.story {
  padding: 80px 10%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.story__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.story__content p {
  max-width: 480px;
  margin-bottom: 22px;
  color: rgba(75, 54, 33, 0.85);
}

.story__content ul {
  list-style: inside disc;
  color: rgba(75, 54, 33, 0.85);
  line-height: 1.7;
  padding-left: 0;
}

.story__content li {
  margin-bottom: 10px;
}

.story__image {
  height: 320px;
  border-radius: var(--radius);
  background: url('https://images.unsplash.com/photo-1600873151324-f2289c0f0caf?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: var(--shadow-soft);
}

/* Footer */
.footer {
  background: #fff;
  padding: 60px 10% 40px;
  color: rgba(75, 54, 33, 0.85);
  border-top: 1px solid rgba(224, 224, 224, 0.8);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}

.footer__col h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.footer__col p {
  line-height: 1.7;
}

.footer__col a {
  color: var(--text-color);
}

.social {
  display: flex;
  gap: 14px;
  font-size: 1.35rem;
}

.footer__bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(75, 54, 33, 0.65);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 22, 22, 0.55);
  padding: 26px;
  z-index: 3000;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__content {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(255, 209, 128, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal__content h2 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.modal__content p {
  font-size: 0.95rem;
  color: rgba(75, 54, 33, 0.8);
  margin-bottom: 18px;
}

.modal__content label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(75, 54, 33, 0.7);
}

.modal__content input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(136, 176, 75, 0.35);
  margin-top: 6px;
  outline: none;
}

.product-detail {
  display: grid;
  gap: 18px;
}

.product-detail__image {
  height: 220px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.modal__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(75, 54, 33, 0.7);
}

/* Sidebar Cart */
.sidebar {
  position: fixed;
  right: -440px;
  top: 0;
  width: 420px;
  height: 100%;
  background: rgba(254, 253, 245, 0.98);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  transition: 300ms;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 209, 128, 0.8);
  padding: 32px;
}

.sidebar.active {
  right: 0;
}

.sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(136, 176, 75, 0.35);
}

.sidebar__header h3 {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.sidebar__close {
  border: none;
  background: rgba(255, 209, 128, 0.6);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 18px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__name {
  font-weight: 700;
}

.cart-item__meta {
  font-size: 0.85rem;
  color: rgba(75, 54, 33, 0.7);
}

.cart-item__remove {
  border: none;
  background: transparent;
  color: rgba(75, 54, 33, 0.7);
  cursor: pointer;
  font-size: 1.1rem;
}

.sidebar__footer {
  margin-top: 20px;
}

.sidebar__total {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7);
  margin-bottom: 18px;
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.btn-checkout:hover {
  background: var(--primary-variant);
}

/* Utility */
.text-center {
  text-align: center;
}

/* Mobile */
@media (max-width: 980px) {
  .navbar {
    padding: 16px 6%;
  }

  .nav {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
    align-items: center;
  }

  .features {
    flex-direction: column;
    row-gap: 20px;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    font-size: 2.8rem;
  }

  .hero__content p {
    font-size: 1.05rem;
  }

  .hero {
    padding: 60px 6% 80px;
  }

  .products {
    padding: 70px 6% 90px;
  }

  .product-page {
    padding: 50px 6% 70px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail__image {
    height: 320px;
  }
}

@media (max-width: 540px) {
  .search input {
    min-width: 130px;
  }

  .features {
    padding: 50px 6% 40px;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .filter select {
    min-width: 100%;
  }

  .modal__content {
    padding: 28px 20px;
  }
}
