*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --olive: #5C6B3C;
  --olive-dark: #3E4A28;
  --olive-light: #8A9A5B;
  --cream: #FDF8F0;
  --sand: #E8DCCF;
  --terracotta: #C2754F;
  --terracotta-light: #D4936F;
  --warm-yellow: #F2E3A1;
  --warm-yellow-soft: #FAF3D8;
  --text-dark: #2C2C2C;
  --text-medium: #5A5A5A;
  --text-light: #8A8A8A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--olive-dark);
  margin-bottom: 20px;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--olive-dark);
  transform: translateY(-2px);
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--white);
}

.btn-terracotta:hover {
  background: #A8613D;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(92, 107, 60, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  display: block;
  height: 68px;
  width: auto;
  max-width: min(320px, 72vw);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--olive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-yellow);
  font-size: 1.1rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-dark);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--olive-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--olive-dark);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
  left: 0;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 22px; }

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  margin-top: 80px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(62, 74, 40, 0.7) 0%,
    rgba(44, 44, 44, 0.4) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.hero-slide-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--warm-yellow);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-label {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.7s;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.9s;
}

.hero-slide.active .hero-btn-wrap {
  opacity: 1;
  transform: translateY(0);
}

.hero-arrows {
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
}

.hero-arrow {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--warm-yellow);
  border-color: var(--warm-yellow);
  transform: scale(1.2);
}

/* ===== VALUES SECTION ===== */
.values {
  padding: 100px 0;
  background: var(--white);
}

.values-header {
  text-align: center;
  margin-bottom: 60px;
}

.values-header .section-text {
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.value-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(92, 107, 60, 0.1);
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--olive-light), var(--olive));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-size: 1.35rem;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--warm-yellow);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-label {
  margin-bottom: 8px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content p:last-of-type {
  margin-bottom: 32px;
}

.about-signature {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--olive);
  margin-top: 8px;
}

.about-text-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.about-text-wrap.expanded .about-text-fade {
  opacity: 0;
}

.about-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: var(--transition);
}

.about-read-more:hover {
  color: var(--olive-dark);
}

.about-read-more i {
  font-size: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-read-more.expanded i {
  transform: rotate(180deg);
}

.about-read-more.hidden {
  display: none;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: 100px 0;
  background: var(--white);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header .section-text {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(92, 107, 60, 0.1);
}

.product-image {
  aspect-ratio: 3 / 5;
  overflow: hidden;
  background: var(--sand);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 28px 28px 32px;
}

.product-info h3 {
  font-size: 1.25rem;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.product-info p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--olive-dark);
  letter-spacing: -0.01em;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.contact-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--olive-light);
  box-shadow: 0 0 0 3px rgba(92, 107, 60, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--olive-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(253, 248, 240, 0.96);
  border: 1px solid rgba(92, 107, 60, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.footer-brand .logo-img {
  height: 58px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--warm-yellow);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credits {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.02em;
}

.footer-credits strong {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.footer-credits-link {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.footer-credits-link:hover {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-admin-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s;
}

.footer-admin-link:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    height: 72px;
  }

  .logo-img {
    height: 56px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--sand);
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .mobile-overlay.show {
    display: block;
  }

  .hero {
    margin-top: 72px;
    min-height: 500px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-arrows {
    display: none;
  }

  .values,
  .about,
  .products,
  .contact {
    padding: 72px 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-height: 400px;
  }

  .about-image-accent {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 50px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .value-card {
    padding: 36px 24px;
  }

  .product-info {
    padding: 22px 22px 26px;
  }
}

/* =====================================================
   PRODUCT CARDS — clickable
   ===================================================== */

.product-card--clickable {
  cursor: pointer;
}

.product-card--clickable .product-image img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card--clickable:hover .product-image img {
  transform: scale(1.04);
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */

.product-detail-page {
  padding: 140px 0 100px;
  min-height: 80vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 48px;
  transition: var(--transition);
}

.back-link i {
  transition: transform var(--transition);
}

.back-link:hover {
  color: var(--olive-dark);
}

.back-link:hover i {
  transform: translateX(-4px);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* Gallery */

.product-gallery {
  position: sticky;
  top: 108px;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sand);
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  border-color: var(--olive-light);
}

.gallery-thumb.active {
  border-color: var(--olive);
}

/* Detail content */

.product-detail-content {
  padding-top: 8px;
}

.product-detail-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.product-short-desc {
  font-size: 1.05rem;
  color: var(--text-medium);
  font-weight: 500;
  margin-bottom: 0;
}

.product-divider {
  width: 48px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 28px 0;
}

.product-long-desc {
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 36px;
}

.product-long-desc p {
  margin-bottom: 14px;
}

.product-long-desc p:last-child {
  margin-bottom: 0;
}

.product-cta {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .product-detail-page {
    padding: 110px 0 72px;
  }
}

@media (max-width: 480px) {
  .product-detail-page {
    padding: 96px 0 60px;
  }

  .gallery-thumb {
    width: 60px;
    height: 60px;
  }
}

/* =====================================================
   CART HEADER BUTTON
   ===================================================== */

.cart-header-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--olive-dark);
  font-size: 1.15rem;
  margin-left: 8px;
}

.cart-header-btn:hover {
  background: rgba(92, 107, 60, 0.08);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

/* =====================================================
   CART DRAWER
   ===================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
  color: var(--olive-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-header h3 i {
  color: var(--terracotta);
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: var(--transition);
  font-size: 1rem;
}

.cart-drawer-close:hover {
  background: var(--cream);
  color: var(--text-dark);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  color: var(--text-light);
  gap: 16px;
}

.cart-empty i {
  font-size: 3rem;
  opacity: 0.3;
}

.cart-empty p {
  font-size: 0.95rem;
}

.cart-items {
  padding: 8px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(232, 220, 207, 0.5);
  transition: background 0.2s;
}

.cart-item:hover {
  background: rgba(253, 248, 240, 0.5);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--olive-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--sand);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.cart-qty-btn {
  background: var(--cream);
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--olive-dark);
  font-size: 0.65rem;
  transition: var(--transition);
}

.cart-qty-btn:hover:not(:disabled) {
  background: var(--sand);
}

.cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-qty-value {
  width: 36px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #c0392b;
}

.cart-item-subtotal {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive-dark);
  white-space: nowrap;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--sand);
  flex-shrink: 0;
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cart-total span:first-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-medium);
}

.cart-total-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive-dark);
  font-family: 'Playfair Display', serif;
}

.cart-shipping-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-shipping-tiers {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--warm-yellow-soft);
  border: 1px solid var(--warm-yellow);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-medium);
  margin-bottom: 10px;
}

.cart-shipping-tiers i {
  color: var(--olive);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cart-shipping-line {
  margin-bottom: 4px !important;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.cart-shipping-contact {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.82rem;
}

.cart-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sand);
  padding-top: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.cart-grand-total span:first-child {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-medium);
}

.cart-upsell {
  margin-bottom: 8px;
}

.cart-upsell-tip {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.cart-upsell-tip i {
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}

.cart-upsell-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cart-upsell-success i {
  color: #16a34a;
  flex-shrink: 0;
}

.cart-upsell-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #9a3412;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.cart-upsell-warning i {
  color: var(--terracotta);
  margin-top: 2px;
  flex-shrink: 0;
}

.cart-upsell-warning a {
  color: var(--terracotta);
  text-decoration: underline;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

/* =====================================================
   PAYMENT EXTRAS
   ===================================================== */

.extras-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
}

.extras-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.extras-option:first-child {
  padding-top: 0;
}

.extras-label {
  flex: 1;
}

.extras-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.extras-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.extras-qty-btn:hover:not(:disabled) {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.extras-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.extras-qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.extras-label-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.extras-label-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.extras-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive-dark);
  white-space: nowrap;
}

/* ----- Extras thumbnail ----- */
.extras-thumb-btn {
  flex-shrink: 0;
  background: none;
  border: 2px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  width: 54px;
  height: 54px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.extras-thumb-btn:hover {
  border-color: var(--olive-light);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.extras-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Image lightbox ----- */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.img-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 18, 0.82);
  cursor: pointer;
}

.img-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 560px);
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  transform: scale(0.88);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.img-lightbox.open .img-lightbox-inner {
  transform: scale(1);
}

.img-lightbox-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: var(--white);
}

.img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background var(--transition), color var(--transition);
}

.img-lightbox-close:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* Payment summary rows */
.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.payment-summary-divider {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 10px 0;
}

.payment-overdue-notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  margin-top: 16px;
}

.payment-overdue-notice i {
  font-size: 1.8rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 10px;
}

.payment-overdue-notice p {
  font-size: 0.9rem;
  color: #9a3412;
  margin-bottom: 16px;
}

/* =====================================================
   CART TOAST
   ===================================================== */

.cart-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--olive-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-toast.error {
  background: #c0392b;
}

.cart-toast i {
  font-size: 1rem;
}

/* =====================================================
   OUT OF STOCK STYLES
   ===================================================== */

.btn-sold-out {
  background: var(--text-light);
  color: var(--white);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-sold-out:hover {
  background: var(--text-light);
  transform: none;
  box-shadow: none;
}

.product-sold-out-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(44, 44, 44, 0.85);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.product-image {
  position: relative;
}

.product-stock-notice {
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.product-stock-notice--out {
  background: #fde8e8;
  color: #c0392b;
}

.product-stock-notice--low {
  background: #fef9e7;
  color: #b7791f;
}

.product-stock-notice i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
    right: -100%;
  }

  .cart-header-btn {
    margin-left: 0;
  }
}

/* =====================================================
   ADMIN — field badges
   ===================================================== */

.field-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--sand, #E8DCCF);
  color: var(--text-medium, #5A5A5A);
  vertical-align: middle;
  margin-left: 4px;
}

.field-badge--detail {
  background: #e8f0d8;
  color: #3E4A28;
}

/* =====================================================
   PAYMENT PAGE
   ===================================================== */

.payment-page {
  padding: 140px 0 100px;
  min-height: 80vh;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.payment-section-title {
  font-size: 1.4rem;
  color: var(--olive-dark);
  margin-bottom: 20px;
}

.payment-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.payment-product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.payment-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-product-info {
  padding: 28px;
}

.payment-product-info h3 {
  font-size: 1.25rem;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.payment-product-info p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 16px;
}

.payment-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-dark);
}

.payment-form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.payment-form-hint {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.payment-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 0.95rem;
  margin-top: 8px;
}

.payment-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 24px;
  color: var(--text-light);
  text-align: center;
}

.payment-empty-cart i {
  font-size: 3rem;
  opacity: 0.3;
}

.payment-empty-cart p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.payment-cart-total {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .payment-page {
    padding: 110px 0 72px;
  }
}

@media (max-width: 480px) {
  .payment-page {
    padding: 96px 0 60px;
  }

  .payment-form-section {
    padding: 28px;
  }
}

/* =====================================================
   THANK YOU PAGE
   ===================================================== */

.thankyou-page {
  padding: 140px 0 100px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.thankyou-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--olive-light), var(--olive));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  margin: 0 auto 28px;
  animation: thankyouPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes thankyouPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.thankyou-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--olive-dark);
  margin-bottom: 16px;
}

.thankyou-text {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 32px;
}

.thankyou-countdown {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .thankyou-page {
    padding: 110px 0 72px;
  }
}

@media (max-width: 480px) {
  .thankyou-page {
    padding: 96px 0 60px;
  }

  .thankyou-icon {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }
}

/* ===== PRIVACY PAGE ===== */
.privacy-page {
  padding: 140px 0 80px;
  min-height: 70vh;
}

.privacy-content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}

.privacy-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.privacy-update {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sand);
}

.privacy-content h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--olive-dark);
}

.privacy-content p {
  margin-bottom: 16px;
  color: var(--text-medium);
  line-height: 1.8;
}

.privacy-content ul {
  margin: 0 0 16px 24px;
  color: var(--text-medium);
  line-height: 2;
}

.privacy-content a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.privacy-content a:hover {
  color: var(--terracotta);
}

@media (max-width: 768px) {
  .privacy-page {
    padding: 110px 0 60px;
  }

  .privacy-content {
    padding: 36px 24px;
  }

  .privacy-content h1 {
    font-size: 1.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}