/*
Theme Name: Chillie
Theme URI: https://example.com/chillie
Author: OpenAI Codex
Author URI: https://openai.com/
Description: A refreshed WooCommerce-ready Chilli Babe theme built around the product photography in the images folder.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: chillie
*/

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --chillie-cream: #f7f1e5;
  --chillie-cream-strong: #efe5d4;
  --chillie-paper: #d1ae83;
  --chillie-paper-deep: #b88a5a;
  --chillie-amber: #d88c1d;
  --chillie-amber-deep: #b96815;
  --chillie-green: #149441;
  --chillie-green-deep: #0d5f2c;
  --chillie-olive: #91a84a;
  --chillie-red: #b1261c;
  --chillie-ink: #342417;
  --chillie-ink-soft: #6f5b46;
  --chillie-surface: rgba(255, 252, 246, 0.85);
  --chillie-border: rgba(52, 36, 23, 0.12);
  --chillie-shadow: 0 22px 60px rgba(52, 36, 23, 0.12);
  --chillie-shadow-soft: 0 16px 35px rgba(52, 36, 23, 0.09);
  --chillie-radius: 28px;
  --chillie-radius-small: 18px;
  --site-width: min(1220px, calc(100% - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 140, 29, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 148, 65, 0.12), transparent 26%),
    linear-gradient(180deg, #fbf7ef 0%, var(--chillie-cream) 48%, #f4ecdf 100%);
  color: var(--chillie-ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 14px 18px;
  clip: auto;
  background: #fff;
  color: var(--chillie-ink);
  border-radius: 999px;
  box-shadow: var(--chillie-shadow-soft);
}

.site-shell {
  width: var(--site-width);
  margin: 0 auto;
}

.announcement-bar {
  background: linear-gradient(90deg, var(--chillie-green-deep), #176e35 55%, var(--chillie-green));
  color: #fff7ea;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(52, 36, 23, 0.08);
}

.site-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-mark__logo {
  width: clamp(170px, 16vw, 240px);
  height: auto;
}

.brand-mark__copy {
  min-width: 0;
}

.brand-mark__eyebrow {
  margin: 0 0 3px;
  color: var(--chillie-ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark__tagline {
  margin: 0;
  font-size: 0.94rem;
  color: var(--chillie-green-deep);
}

.primary-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--chillie-ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-links a:hover,
.primary-links a:focus,
.primary-links a[aria-current="page"] {
  background: rgba(20, 148, 65, 0.1);
  color: var(--chillie-green-deep);
  transform: translateY(-1px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--chillie-red), #d9521d);
  color: #fff7ee;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(177, 38, 28, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(177, 38, 28, 0.22);
}

.button--ghost {
  border-color: rgba(20, 148, 65, 0.16);
  background: rgba(255, 252, 246, 0.78);
  color: var(--chillie-green-deep);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus {
  box-shadow: var(--chillie-shadow-soft);
}

.button--small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.88rem;
}

.button--cart {
  background: linear-gradient(135deg, var(--chillie-green-deep), var(--chillie-green));
  color: #fff9ed;
  box-shadow: 0 14px 28px rgba(13, 95, 44, 0.2);
}

.button__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.2);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-main {
  padding-bottom: 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 44px;
}

.hero-shell {
  width: min(1680px, calc(100% - 48px));
}

.wide-shell {
  width: min(1680px, calc(100% - 48px));
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #f9f6ef;
  box-shadow: 0 18px 34px rgba(52, 36, 23, 0.08);
}

.hero-banner__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-banner__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.9) 66%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(248, 244, 237, 0.34));
}

.hero-banner__art img {
  position: absolute;
  width: auto;
  height: 34%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(52, 36, 23, 0.14);
  filter: saturate(1.04) contrast(1.02);
}

.hero-banner__art img:nth-child(1) {
  left: 2%;
  top: 3%;
  transform: rotate(-5deg);
}

.hero-banner__art img:nth-child(2) {
  right: 3%;
  top: 4%;
  transform: rotate(5deg);
}

.hero-banner__art img:nth-child(3) {
  left: 8%;
  bottom: 3%;
  transform: rotate(4deg);
}

.hero-banner__art img:nth-child(4) {
  right: 8%;
  bottom: 3%;
  transform: rotate(-4deg);
}

.hero-banner__art img:nth-child(5) {
  left: 20%;
  top: 26%;
  transform: rotate(-8deg);
}

.hero-banner__art img:nth-child(6) {
  right: 20%;
  top: 27%;
  transform: rotate(8deg);
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 22px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--chillie-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title,
.section__title,
.page-hero__title,
.content-panel h2,
.content-panel h3,
.page-article h2,
.page-article h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  max-width: none;
}

.hero__lead,
.section__copy,
.page-hero__copy,
.content-panel,
.info-card p,
.catalog-card__copy,
.catalog-card__meta {
  color: var(--chillie-ink-soft);
}

.hero__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.section {
  padding: 34px 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 0.96;
}

.section__copy {
  max-width: 46ch;
  margin: 0;
  font-size: 1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--chillie-radius);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 239, 229, 0.92));
  border: 1px solid var(--chillie-border);
  box-shadow: var(--chillie-shadow-soft);
}

.catalog-card__media {
  position: relative;
  aspect-ratio: 0.92 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 237, 210, 0.8), transparent 45%),
    linear-gradient(180deg, rgba(241, 218, 183, 0.72), rgba(244, 236, 223, 0.42));
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(52, 36, 23, 0.16));
}

.catalog-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--chillie-shadow-soft);
}

.tone-hot .catalog-badge {
  background: rgba(177, 38, 28, 0.12);
  color: var(--chillie-red);
}

.tone-jalapeno-soft .catalog-badge {
  background: rgba(145, 168, 74, 0.16);
  color: #5a6d20;
}

.tone-jalapeno .catalog-badge {
  background: rgba(20, 148, 65, 0.14);
  color: var(--chillie-green-deep);
}

.tone-olive .catalog-badge {
  background: rgba(137, 110, 30, 0.14);
  color: #6f5710;
}

.tone-olive-jalapeno .catalog-badge {
  background: rgba(93, 130, 32, 0.14);
  color: #486414;
}

.catalog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
}

.catalog-card__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.82rem;
  line-height: 1;
}

.catalog-card__copy {
  margin: 0;
  font-size: 0.98rem;
}

.catalog-stock {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-stock.in-stock {
  color: var(--chillie-green-deep);
}

.catalog-stock.low-stock {
  color: #b15f14;
}

.catalog-stock.out-of-stock {
  color: var(--chillie-red);
}

.catalog-stock.on-backorder {
  color: var(--chillie-ink-soft);
}

.catalog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.catalog-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--chillie-ink);
}

.catalog-link {
  color: var(--chillie-green-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.catalog-link.is-disabled {
  color: var(--chillie-red);
  cursor: not-allowed;
}

.catalog-link:hover,
.catalog-link:focus {
  color: var(--chillie-red);
}

.catalog-link.loading {
  opacity: 0.62;
  pointer-events: none;
}

.catalog-link.added {
  color: var(--chillie-red);
}

.catalog-card__meta .added_to_cart {
  display: none;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: stretch;
}

.content-panel,
.info-card,
.page-hero__media,
.shop-shell,
.page-article,
.about-visual {
  border-radius: var(--chillie-radius);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(247, 239, 229, 0.88));
  border: 1px solid var(--chillie-border);
  box-shadow: var(--chillie-shadow-soft);
}

.content-panel {
  padding: clamp(24px, 4vw, 34px);
}

.content-panel h2,
.content-panel h3,
.page-article h2,
.page-article h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
  margin: 0 0 14px;
}

.content-panel p:last-child,
.page-article p:last-child {
  margin-bottom: 0;
}

.about-visual {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(216, 140, 29, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(20, 148, 65, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.95), rgba(245, 236, 223, 0.92));
}

.about-visual__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-visual__stack img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--chillie-shadow-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 22px;
}

.info-card__label {
  margin: 0 0 8px;
  color: var(--chillie-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card__value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  line-height: 1;
}

.info-card__value a {
  color: inherit;
}

.info-card__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 6px 0 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(214, 83, 35, 0.16), rgba(20, 148, 65, 0.14));
  color: var(--chillie-green-deep);
  box-shadow: var(--chillie-shadow-soft);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.info-card__icon-link svg {
  width: 42px;
  height: 42px;
}

.info-card__icon-link:hover,
.info-card__icon-link:focus {
  transform: translateY(-2px);
  color: var(--chillie-red);
  box-shadow: 0 18px 30px rgba(177, 38, 28, 0.14);
}

.page-hero {
  padding: 52px 0 26px;
}

.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: center;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.94;
}

.page-hero__media {
  padding: 24px;
}

.page-hero__media img {
  width: 100%;
  border-radius: 24px;
}

.page-section {
  padding: 16px 0 42px;
}

.page-article {
  padding: clamp(24px, 4vw, 36px);
}

.page-article h1 {
  margin-top: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
}

.page-article p,
.page-article li,
.content-panel p,
.content-panel li {
  color: var(--chillie-ink-soft);
}

.page-article ul,
.content-panel ul {
  padding-left: 1.2rem;
}

.shop-shell {
  padding: 28px;
}

.site-footer {
  padding: 32px 0 44px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--chillie-radius);
  background: linear-gradient(180deg, rgba(22, 89, 45, 0.96), rgba(12, 72, 33, 0.96));
  color: #fef5e8;
  box-shadow: 0 24px 40px rgba(12, 72, 33, 0.22);
}

.site-footer__brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "logo text";
  align-items: center;
  gap: 16px 18px;
}

.site-footer__logo {
  grid-area: logo;
  width: min(220px, 42vw);
  height: auto;
  display: block;
}

.site-footer__text {
  grid-area: text;
  margin: 0;
  color: rgba(254, 245, 232, 0.8);
}

.site-footer__text a {
  color: #fef5e8;
  font-weight: 700;
}

.site-footer__text a:hover,
.site-footer__text a:focus {
  color: #ffd47f;
}

.site-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__menu a {
  color: #fef5e8;
  font-weight: 700;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
  color: #ffd47f;
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--chillie-ink-soft);
  margin-bottom: 22px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 18px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100%;
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid var(--chillie-border);
  box-shadow: var(--chillie-shadow-soft);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  border-radius: 18px;
  margin-bottom: 14px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--chillie-red);
  font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--chillie-green-deep), var(--chillie-green));
  color: #fff9ed;
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: linear-gradient(135deg, #0c4f25, #117337);
  color: #fff9ed;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 18px;
  border: 1px solid var(--chillie-border);
  background: rgba(255, 251, 243, 0.94);
  color: var(--chillie-ink);
}

.woocommerce div.product {
  display: grid;
  gap: 28px;
}

.woocommerce div.product div.images img {
  border-radius: 26px;
}

.woocommerce div.product div.summary {
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid var(--chillie-border);
  padding: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  border-radius: 16px;
  border: 1px solid rgba(52, 36, 23, 0.16);
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
}

.preview-note {
  padding: 18px 0 0;
  color: var(--chillie-ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .page-hero__layout,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .wide-shell {
    width: min(100% - 28px, 100%);
  }

  .hero-banner,
  .hero-banner__content {
    min-height: 560px;
  }

  .hero-banner__art img {
    height: 31%;
  }

  .catalog-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__head,
  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 820px) {
  .announcement-bar {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .site-header__inner {
    min-height: 74px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .brand-mark {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .brand-mark__copy {
    display: none;
  }

  .primary-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 0;
  }

  .hero__title,
  .section__title,
  .page-hero__title {
    max-width: none;
  }

  .hero-banner,
  .hero-banner__content {
    min-height: 500px;
  }

  .hero-banner__art::after {
    background: rgba(255, 255, 255, 0.82);
  }

  .hero-banner__art img {
    height: 28%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 100%);
  }

  .catalog-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .contact-grid,
  .about-visual__stack {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .wide-shell {
    width: 100%;
  }

  .hero-banner,
  .hero-banner__content {
    min-height: 420px;
  }

  .hero-banner__art img {
    height: 24%;
  }

  .catalog-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
