/* ─── IN JATI Dog Treats — Stylesheet ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #f8e0bc;
  --cream-dark:  #f0d0a0;
  --brown:       #3b1f0e;
  --brown-mid:   #5c2e10;
  --brown-light: #8b4e24;
  --rust:        #c05a2a;
  --rust-light:  #d97340;
  --text:        #2a1505;
  --text-light:  #6b4226;
  --green:       #2d6a2d;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: var(--cream); border-bottom: 2px solid var(--brown);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 52px; height: 52px; object-fit: contain; }
.nav-links {
  display: flex; gap: 1.5rem; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.05em; color: var(--brown); transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  background: var(--brown) !important; color: var(--cream) !important;
  padding: 8px 20px; border-radius: 30px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rust) !important; }

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rust); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.7rem; font-weight: 700;
  margin-left: 4px; vertical-align: middle;
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center;
  border: 2px solid var(--brown); border-radius: 20px; overflow: hidden;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--brown);
  padding: 4px 10px; transition: all 0.2s; text-decoration: none;
  display: inline-block;
}
.lang-btn.active { background: var(--brown); color: var(--cream); }
.lang-btn:hover:not(.active) { background: var(--cream-dark); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--brown); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Flash messages */
.flash {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 30px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 200; animation: slideDown 0.3s ease;
}
.flash-success { background: var(--green); color: #fff; }
.flash-error   { background: var(--rust);  color: #fff; }
@keyframes slideDown { from { opacity:0; transform: translateX(-50%) translateY(-10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ─── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  margin-top: 72px; min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, var(--cream-dark) 0%, var(--cream) 70%);
  pointer-events: none;
}
.hero-left {
  padding: 6rem 5vw 6rem 8vw; position: relative; z-index: 2;
  animation: fadeInUp 0.8s ease both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--rust); text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 28px; height: 2px; background: var(--rust);
}
h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900; line-height: 1.05; color: var(--brown); margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--rust); }
.hero-sub {
  font-size: 1.1rem; line-height: 1.7; color: var(--text-light);
  max-width: 420px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--rust); color: #fff;
  padding: 14px 32px; border-radius: 40px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(192,90,42,0.35);
}
.btn-primary:hover { background: var(--brown); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 2px solid var(--brown); color: var(--brown);
  padding: 12px 28px; border-radius: 40px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { background: var(--brown); color: var(--cream); }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--brown); }
.hero-right {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  padding: 4rem 5vw; animation: fadeInRight 0.9s ease 0.1s both;
}
.hero-dog-wrap { position: relative; width: min(420px, 90vw); }
.hero-circle {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cream-dark); border: 3px solid var(--brown);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; background: var(--brown); color: var(--cream);
  padding: 8px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.hero-tag-1 { bottom: 12%; left: -10%; }
.hero-tag-2 { top: 15%; right: -8%; }

/* ─── TRUST BAR ────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--brown); color: var(--cream);
  padding: 1rem 5vw; display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ─── SECTIONS ─────────────────────────────────────────────────────────── */
section { padding: 6rem 5vw; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 0.75rem;
}
h2 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem); color: var(--brown); line-height: 1.1;
}
h2 em { font-style: italic; color: var(--rust); }

/* ─── PRODUCTS GRID ────────────────────────────────────────────────────── */
.products { background: var(--cream); }
.products-header { text-align: center; margin-bottom: 3.5rem; }
.products-header p { color: var(--text-light); margin-top: 1rem; font-size: 1.05rem; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.product-card {
  background: #fff; border: 2px solid var(--brown); border-radius: 16px;
  padding: 2rem 1.5rem; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--rust);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(59,31,14,0.12); }
.product-emoji { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.product-img {
  width: 80%; max-height: 140px; object-fit: cover;
  border-radius: 10px; margin-bottom: 1rem;
}
.product-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.25rem; color: var(--brown); margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.25rem;
}
.product-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 0.75rem; }
.product-badge {
  display: inline-block; background: var(--cream-dark); border: 1px solid var(--brown);
  border-radius: 20px; font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; color: var(--brown);
}
.product-price { font-weight: 700; font-size: 1.2rem; color: var(--rust); margin-bottom: 1rem; }
.btn-cart {
  display: inline-block; width: 100%; background: var(--brown); color: var(--cream);
  padding: 11px 0; border-radius: 30px; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.05em; transition: background 0.2s; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-cart:hover { background: var(--rust); }

/* ─── MISSION ──────────────────────────────────────────────────────────── */
.mission {
  background: var(--brown); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.mission h2 { color: var(--cream); }
.mission h2 em { color: var(--rust-light); }
.mission p { margin-top: 1.25rem; line-height: 1.8; opacity: 0.85; font-size: 1.05rem; }
.mission-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.val-item { display: flex; flex-direction: column; gap: 4px; }
.val-icon { font-size: 1.6rem; }
.val-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.val-text  { font-size: 0.95rem; font-weight: 600; }
.mission-visual { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.big-dog-logo {
  width: 280px; height: 280px; border-radius: 50%;
  border: 3px solid rgba(245,234,214,0.2);
  background: rgba(245,234,214,0.07);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.big-dog-logo img { width: 100%; height: 100%; object-fit: cover; }
.mission-stamp { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; opacity: 0.6; letter-spacing: 0.05em; }

/* ─── INGREDIENTS ───────────────────────────────────────────────────────── */
.ingredients { text-align: center; }
.ingredients-header { margin-bottom: 3.5rem; }
.ingredients-header p { color: var(--text-light); margin-top: 1rem; font-size: 1.05rem; }
.ingr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto 3rem;
}
.ingr-card { padding: 2rem 1.25rem; background: var(--cream-dark); border: 2px solid var(--brown); border-radius: 12px; }
.ingr-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ingr-name { font-weight: 700; font-size: 1rem; color: var(--brown); margin-bottom: 0.25rem; }
.ingr-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

/* ─── TESTIMONIALS ──────────────────────────────────────────────────────── */
.testimonials { background: var(--cream-dark); }
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.test-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.test-card { background: #fff; border: 2px solid var(--brown); border-radius: 16px; padding: 2rem; }
.test-stars { color: var(--rust); font-size: 1.1rem; margin-bottom: 0.75rem; }
.test-text { font-size: 0.95rem; line-height: 1.7; color: var(--text); margin-bottom: 1rem; font-style: italic; }
.test-author { font-weight: 700; font-size: 0.85rem; color: var(--brown); }
.test-dog { font-size: 0.8rem; color: var(--text-light); }

/* ─── CTA SECTION ───────────────────────────────────────────────────────── */
.cta-section { background: var(--rust); color: #fff; text-align: center; padding: 6rem 5vw; }
.cta-section h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
.cta-section p { margin: 1rem auto 2.5rem; max-width: 500px; font-size: 1.1rem; opacity: 0.9; line-height: 1.7; }
.btn-white {
  display: inline-block; background: #fff; color: var(--rust);
  padding: 14px 36px; border-radius: 40px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { background: var(--brown); color: #fff; transform: translateY(-2px); }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--brown); color: var(--cream); padding: 3rem 5vw;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand { max-width: 260px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--cream); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; opacity: 0.7; line-height: 1.7; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--cream); opacity: 0.8; text-decoration: none; transition: opacity 0.2s; }
.footer-col ul a:hover { opacity: 1; }
.footer-bottom { background: #2a1505; color: var(--cream); text-align: center; padding: 1.25rem 5vw; font-size: 0.8rem; opacity: 0.6; }

/* ─── CART PAGE ─────────────────────────────────────────────────────────── */
.page-content { margin-top: 72px; padding: 4rem 5vw; min-height: 60vh; }
.page-title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--brown); margin-bottom: 2rem;
}
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light); padding: 0.75rem 0;
  border-bottom: 2px solid var(--brown);
}
.cart-table td { padding: 1.25rem 0; border-bottom: 1px solid var(--cream-dark); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 1rem; }
.cart-item-emoji { font-size: 2rem; }
.cart-item-name { font-weight: 600; color: var(--brown); font-size: 0.95rem; }
.cart-item-price { color: var(--text-light); font-size: 0.85rem; }
.qty-control { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brown);
  background: none; cursor: pointer; font-size: 1rem; font-weight: 700;
  color: var(--brown); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--brown); color: var(--cream); }
.qty-val { font-weight: 700; min-width: 28px; text-align: center; }
.remove-btn { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 1.2rem; transition: color 0.2s; }
.remove-btn:hover { color: var(--rust); }
.cart-summary {
  background: #fff; border: 2px solid var(--brown); border-radius: 16px;
  padding: 2rem; position: sticky; top: 90px;
}
.cart-summary h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: var(--brown); margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; color: var(--brown); margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--brown); }
.free-shipping-note { font-size: 0.8rem; color: var(--green); margin-top: 0.5rem; font-weight: 600; }
.btn-checkout {
  display: block; width: 100%; background: var(--rust); color: #fff;
  padding: 14px; border-radius: 40px; font-weight: 700; font-size: 1rem;
  text-align: center; text-decoration: none; margin-top: 1.5rem;
  transition: background 0.2s; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-checkout:hover { background: var(--brown); }
.cart-empty { text-align: center; padding: 4rem 0; }
.cart-empty p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }

/* ─── CHECKOUT PAGE ─────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.checkout-form { background: #fff; border: 2px solid var(--brown); border-radius: 16px; padding: 2.5rem; }
.checkout-form h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--brown); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--cream-dark); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--text);
  background: var(--cream); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brown);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-summary { background: #fff; border: 2px solid var(--brown); border-radius: 16px; padding: 2rem; position: sticky; top: 90px; }
.checkout-summary h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: var(--brown); margin-bottom: 1.5rem; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.9rem; }
.order-item-name { color: var(--text); font-weight: 500; }
.order-item-qty { color: var(--text-light); font-size: 0.82rem; }
.order-item-price { font-weight: 600; color: var(--brown); }
#paypal-button-container { margin-top: 1.5rem; }
#paypal-button-container.hidden { display: none; }
.btn-review {
  display: block; width: 100%; background: var(--brown); color: var(--cream);
  padding: 14px; border-radius: 40px; font-weight: 700; font-size: 1rem;
  text-align: center; border: none; cursor: pointer; margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif; transition: background 0.2s;
}
.btn-review:hover { background: var(--rust); }

/* ─── THANK YOU PAGE ────────────────────────────────────────────────────── */
.thankyou-wrap { text-align: center; padding: 6rem 5vw; }
.thankyou-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.thankyou-wrap h1 { margin-bottom: 1rem; }
.thankyou-wrap p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 0.75rem; }
.order-number-box {
  display: inline-block; background: var(--brown); color: var(--cream);
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 1.1rem;
  margin: 1.5rem 0 2rem;
}

/* ─── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes fadeInUp    { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout     { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .cart-summary    { position: static; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-left { padding: 3rem 6vw 2rem; }
  .hero-sub  { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-right { padding: 1rem 6vw 3rem; }
  .hero-tag-1, .hero-tag-2 { display: none; }
  .mission { grid-template-columns: 1fr; gap: 2.5rem; }
  .mission-visual { display: none; }
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1/-1; max-width: 100%; }
  .trust-bar { gap: 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 2px solid var(--brown); padding: 1.5rem 5vw; gap: 1rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  footer { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
