:root {
  --color-primary: #4A4035;
  --color-secondary: #6A5A4A;
  --color-accent: #F5E6D3;
  --color-bg-light: #FFFDFB;
  --color-bg-alt: #FDF8F3;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================
   BUTTON STANDARDS
   ===================== */
button,
.btn,
[class*="btn-"],
a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
  display: flex;
}

/* =====================
   CTA BUTTON STYLE: solid_rounded
   ===================== */
.cta-btn {
  background-color: var(--color-primary);
  color: #F5E6D3;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(74, 64, 53, 0.3);
}
.cta-btn:hover {
  background-color: var(--color-secondary);
  box-shadow: 0 6px 20px rgba(74, 64, 53, 0.4);
  transform: translateY(-1px);
}
.cta-btn:active {
  transform: translateY(0);
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }

/* =====================
   UTILITIES
   ===================== */
.rotate-180 { transform: rotate(180deg); }
.transition-rotate { transition: transform 0.3s ease; }

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Pattern Backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(74, 64, 53, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(74, 64, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 64, 53, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(74, 64, 53, 0.04) 10px,
    rgba(74, 64, 53, 0.04) 20px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 230, 211, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(106, 90, 74, 0.15) 0%, transparent 50%);
}

/* Intensity Modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* Gradient Blur Blobs */
.decor-gradient-blur {
  position: relative;
}
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 230, 211, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 64, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Corner Accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(245, 230, 211, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(245, 230, 211, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Glow Element */
.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(245, 230, 211, 0.5) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Rings SVG Pattern */
.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%234A4035' stroke-opacity='0.06' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%234A4035' stroke-opacity='0.05' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='%234A4035' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* =====================
   FORM STYLES
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5DDD5;
  border-radius: 0.5rem;
  background-color: #FFFDFB;
  font-size: 0.875rem;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.form-input:focus {
  border-color: #4A4035;
  box-shadow: 0 0 0 3px rgba(74, 64, 53, 0.1);
}
.form-input::placeholder {
  color: #a0a0a0;
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4A4035;
  margin-bottom: 0.375rem;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}
.form-error.visible {
  display: block;
}

/* =====================
   STAR RATING
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #d97706;
}
.star-filled { color: #d97706; }
.star-empty { color: #d1d5db; }

/* =====================
   CARD STYLES
   ===================== */
.card-premium {
  background: #FFFDFB;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(74, 64, 53, 0.08);
  border: 1px solid rgba(245, 230, 211, 0.6);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-premium:hover {
  box-shadow: 0 8px 32px rgba(74, 64, 53, 0.14);
  transform: translateY(-2px);
}

/* =====================
   BADGE STYLES
   ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-bestseller {
  background-color: rgba(245, 230, 211, 0.7);
  color: #4A4035;
  border: 1px solid rgba(74, 64, 53, 0.15);
}

/* =====================
   HEADER SCROLL STATE
   ===================== */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(74, 64, 53, 0.1);
}

/* =====================
   MOBILE MENU TRANSITION
   ===================== */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* =====================
   ACCORDION
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* =====================
   TESTIMONIAL CARDS
   ===================== */
.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(74, 64, 53, 0.07);
  border: 1px solid rgba(245, 230, 211, 0.5);
}

/* =====================
   ORDER FORM SECTION
   ===================== */
.order-section {
  background: linear-gradient(135deg, #FDF8F3 0%, #FFFDFB 100%);
}

/* =====================
   SECTION DIVIDER
   ===================== */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4A4035, #6A5A4A);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

/* =====================
   ALERT / SUCCESS MESSAGES
   ===================== */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =====================
   SCROLL TO TOP
   ===================== */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #4A4035;
  color: #F5E6D3;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(74, 64, 53, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
  border: none;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top:hover {
  background-color: #6A5A4A;
}

/* =====================
   RESPONSIVE HELPERS
   ===================== */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}