/*
Theme Name: Cravoure
Theme URI: https://example.com/
Author: Cravoure
Author URI: https://example.com/
Description: Cravoure – Small-batch flavor house theme with WooCommerce support.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cravoure
*/

:root {
  --bg: #faf7f2;
  --bg-alt: #f2ebe0;
  --text: #171717;
  --muted: #666666;
  --accent: #c29e50;
  --accent-soft: #e2cf9c;
  --border: #e0d6c8;
  --card-bg: #ffffff;
  --danger: #b4311d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.top-bar {
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
}

.nav-logo {
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 1.3rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-cart {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.hamburger {
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.2rem;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Mobile menu */
.nav-links-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.2rem 0.8rem;
  gap: 0.6rem;
}

.nav-links-mobile a {
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 2.8rem 0 2rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 30rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.hero-highlight {
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span::before {
  content: "● ";
  color: var(--accent);
  font-size: 0.7rem;
}

.hero-card {
  background: radial-gradient(circle at top left, #fff5e0, #f3ebe0);
  border-radius: 1.4rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.hero-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-card-main {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}

.mini-products {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.mini-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mini-product-main {
  font-size: 0.8rem;
}

.mini-product-tag {
  font-size: 0.7rem;
  color: var(--muted);
}

.mini-product-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}

/* Sections */
section {
  padding: 2.2rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
}

.section-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
}

/* Best Sellers */
.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 4px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: #d3c8b7;
  border-radius: 999px;
}

.product-card {
  min-width: 230px;
  max-width: 260px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
}

.price {
  font-weight: 600;
}

.pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.btn-xs {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.btn-xs-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Collections / Faces */
.grid {
  display: grid;
  gap: 1rem;
}

.collection-card {
  border-radius: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.collection-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.collection-title {
  font-size: 1rem;
  font-weight: 600;
}

.collection-text {
  font-size: 0.86rem;
  color: var(--muted);
}

.collection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.collection-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.collection-footer span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Story */
.story {
  background: var(--bg-alt);
  border-radius: 1.4rem;
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--border);
}

.story-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.story-copy {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.story-row {
  display: grid;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.story-point strong {
  color: var(--text);
}

/* Quality strip */
.quality-strip {
  display: grid;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.quality-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.quality-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* Recipes */
.recipe-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.recipe-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.recipe-text {
  color: var(--muted);
}

.recipe-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  width: fit-content;
}

/* Newsletter */
.newsletter {
  border-radius: 1.3rem;
  background: #171717;
  color: #f8f5f0;
  padding: 1.5rem 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.newsletter-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.newsletter-text {
  font-size: 0.9rem;
  color: #d0c7b7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input {
  border-radius: 999px;
  border: 1px solid #444;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  background: #111;
  color: #fff;
}

.newsletter-input::placeholder {
  color: #777;
}

.btn-newsletter {
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  background: var(--accent);
  color: #171717;
  cursor: pointer;
  font-weight: 500;
}

.newsletter-footnote {
  font-size: 0.76rem;
  color: #a89d8c;
}

/* Footer */
footer.site-footer {
  padding: 2rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 0.2rem;
}

.footer-bottom {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom span {
  opacity: 0.85;
}

/* WooCommerce basic tweaks */
.woocommerce ul.products {
  list-style: none;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  padding: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .hero {
    padding: 3.2rem 0 2.4rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .grid-cols-2-md {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3-md {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .newsletter {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
  .newsletter-form {
    flex-direction: row;
  }
  .newsletter-input {
    flex: 1;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .grid-cols-4-lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Hero product gallery */
.hero-layout {
  display: grid;
  gap: 2rem;
}

.hero-gallery {
  display: grid;
  gap: 0.7rem;
}

.hero-gallery-main {
  border-radius: 1.3rem;
  padding: 1.1rem;
  background: radial-gradient(circle at top left, #ffe7c9, #f5dfc8);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.09);
  display: grid;
  gap: 0.6rem;
}

.hero-gallery-main-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-gallery-main-title {
  font-size: 1rem;
  font-weight: 600;
}

.hero-gallery-main-text {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-gallery-main-notes {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-gallery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.jerk-heat-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
}

.hero-gallery-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-gallery-item {
  border-radius: 1.1rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  display: grid;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.hero-gallery-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-gallery-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-gallery-item-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Jerk product strip */
.jerk-strip {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.jerk-strip-card {
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 220px;
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
  display: grid;
  gap: 0.3rem;
}

.jerk-strip-title {
  font-weight: 600;
  font-size: 0.88rem;
}

.jerk-strip-tag {
  font-size: 0.7rem;
  color: var(--muted);
}

.jerk-strip-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
  width: fit-content;
}

/* Spice Yaad highlight section */
.spice-yaad-banner {
  border-radius: 1.4rem;
  padding: 1.4rem 1.2rem;
  background: radial-gradient(circle at top left, #ffe0cf, #f4e3d6);
  border: 1px solid rgba(0,0,0,0.05);
  display: grid;
  gap: 0.8rem;
}

.spice-yaad-banner-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.spice-yaad-banner-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.spice-yaad-grid {
  display: grid;
  gap: 0.7rem;
}

.spice-yaad-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Caribbean-only collection cards */
.collection-label-caribbean {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}


/* Image placeholders */
.product-media {
  width: 100%;
  border-radius: 1rem;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fbe8cf, #f2dfcf);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-inner {
  width: 100%;
  height: 120px;
  border-radius: 0.8rem;
  background: radial-gradient(circle at 20% 0%, #ffffff, #f1e4d4);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.product-media-jar::before,
.product-media-pouch::before,
.product-media-tin::before,
.product-media-tea::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 0.6rem;
  border: 2px solid rgba(0,0,0,0.08);
}

.product-media-jar::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 32%;
  width: 36%;
  height: 10%;
  border-radius: 999px;
  background: #1d1d1d;
}

.product-media-pouch::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 20%;
  width: 60%;
  height: 8%;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}

.product-media-tin::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 22%;
  width: 56%;
  height: 14%;
  border-radius: 999px;
  background: #d1cbc0;
}

.product-media-tea::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 25%;
  width: 50%;
  height: 16%;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}

/* Category rows (Amazon-style) */
.category-row {
  margin-top: 0.8rem;
}

.category-row-grid {
  display: grid;
  gap: 1rem;
}

.category-card {
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.category-card-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.category-card-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.category-chip {
  font-size: 0.76rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
}

/* Larger grids on desktop for product-heavy sections */
@media (min-width: 900px) {
  .category-row-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tighten product cards when many listings are shown */
.product-card--compact {
  min-width: 180px;
  max-width: 220px;
}


/* Desktop enhancements for category cards */
@media (min-width: 900px) {
  .category-row {
    margin-top: 1.5rem;
  }

  .category-row-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .category-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.3rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  }

  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.06);
  }

  .category-card-title {
    font-size: 1.02rem;
    margin-top: 0.4rem;
  }

  .category-card-tagline {
    margin-top: 0.2rem;
  }

  .category-card .product-media {
    margin-bottom: 0.8rem;
  }

  .category-chip {
    background: #f3eee6;
    color: #5c5140;
    font-weight: 500;
  }
}
