/* ============================================================
   PRICKLY & CO. — Main Stylesheet
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #2a4a1e;
  --green-mid:    #4a7c35;
  --green-light:  #7dab5a;
  --sand:         #f5e9d0;
  --sand-dark:    #e8d4a8;
  --terra:        #c0622e;
  --terra-light:  #d97d4a;
  --cream:        #faf8f2;
  --white:        #ffffff;
  --text:         #1c2a14;
  --text-muted:   #5a6b4d;
  --border:       #ddd8c4;
  --shadow:       0 4px 24px rgba(42, 74, 30, 0.10);
  --shadow-lg:    0 16px 48px rgba(42, 74, 30, 0.14);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.28s ease;
  --nav-h:        68px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif;
  line-height: 1.18;
  color: var(--green-dark);
}

/* --- Utilities -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section__header { text-align: center; margin-bottom: 56px; }
.section__title  { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.section__sub    { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 74, 30, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--ghost:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Hero tag --------------------------------------------- */
.hero__tag {
  display: inline-block;
  background: var(--sand);
  color: var(--terra);
  border: 1px solid var(--sand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* --- Navbar ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(42, 74, 30, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo span { color: var(--terra); }
.nav__logo-icon { font-size: 1.4rem; }

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--green-dark); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-dark);
  padding: 8px;
  border-radius: 50%;
  transition: background var(--transition);
  display: flex;
}
.cart-btn:hover { background: var(--sand); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--terra);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition);
}
.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Cart Drawer ------------------------------------------ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition);
}
.cart-close:hover { color: var(--green-dark); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty {
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.cart-item__name { font-weight: 600; font-size: 0.9rem; }
.cart-item__qty  { font-size: 0.82rem; color: var(--text-muted); }
.cart-item__price { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; white-space: nowrap; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.cart-item__remove:hover { background: #fde8e8; color: #c0392b; }

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.cart-total strong { font-size: 1.1rem; color: var(--green-dark); }

/* --- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  gap: 60px;
}

.hero__content { padding: 60px 0; }

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  color: var(--green-dark);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat strong {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--green-dark);
}
.hero__stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__image {
  position: relative;
  height: 580px;
  border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.hero__image:hover img { transform: scale(1.04); }
.hero__blob {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 70% 40%, rgba(125, 171, 90, 0.2), transparent 60%);
  pointer-events: none;
}

/* --- Products Grid ---------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-card__image img {
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--terra);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-card__badge--new { background: var(--green-mid); }

.product-card__body { padding: 20px; }
.product-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--green-dark);
}
.product-card__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* --- Features --------------------------------------------- */
.features {
  background: var(--green-dark);
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
}
.feature__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
}
.feature h4 {
  font-size: 1.05rem;
  color: white;
  font-family: "Playfair Display", serif;
}
.feature p { font-size: 0.88rem; line-height: 1.6; }

/* --- About ------------------------------------------------ */
.about { background: var(--sand); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
  opacity: 0;
  transform: translateX(-30px);
}
.about__image.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about__content {
  opacity: 0;
  transform: translateX(30px);
}
.about__content.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.about__content p {
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.75;
}

/* --- Care Tips -------------------------------------------- */
.care { background: var(--cream); }

.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.care-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.care-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}
.care-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.care-card__icon { font-size: 2.2rem; margin-bottom: 16px; }
.care-card h4 { font-size: 1rem; margin-bottom: 10px; color: var(--green-dark); }
.care-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 72px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand .nav__logo { color: white; }
.footer__brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}
.footer__social a:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  background: rgba(125,171,90,0.1);
}
.footer__links h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--green-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* --- Toast ------------------------------------------------ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
    text-align: center;
  }
  .hero__content { padding: 0; order: 2; }
  .hero__image   { order: 1; height: 380px; border-radius: var(--radius); }
  .hero__ctas, .hero__stats { justify-content: center; }
  .hero__sub     { margin: 0 auto 36px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__image { height: 340px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }

  .nav__links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 12px; }
  .hero__stat-divider { width: 60px; height: 1px; }
  .hero__image { height: 280px; }
  .products-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr 1fr; }
}
