/*
Theme Name: Stripsy Shop
Theme URI: https://stripsy.mirilink.tech/
Author: Miri Link
Description: Boutique simple Stripsy Chicken avec commande WhatsApp.
Version: 1.0.0
Text Domain: stripsy-shop
*/

:root {
  --bg: #0d0b0a;
  --panel: #171211;
  --panel-2: #211816;
  --text: #fff8ef;
  --muted: #c8b9aa;
  --line: rgba(255, 255, 255, 0.12);
  --hot: #ff5a1f;
  --gold: #ffb238;
  --green: #25d366;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 90, 31, 0.18), transparent 28rem),
    linear-gradient(145deg, #120d0c 0%, #080707 55%, #130d0a 100%);
  min-height: 100vh;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 11, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #190b05;
  font-weight: 950;
  font-size: 21px;
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.28);
}

.brand-title {
  display: block;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  font-weight: 800;
  min-height: 42px;
}

.pill-button.hot,
.cart-toggle {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #160904;
}

.cart-toggle {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 950;
  min-height: 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
  padding: 34px 0 24px;
}

.hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 12px;
  max-width: 780px;
  font-size: clamp(40px, 8vw, 86px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
}

.cover-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #080707;
  box-shadow: var(--shadow);
  min-height: 350px;
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 24px;
}

.catalog-tile {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.catalog-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.catalog-tile figcaption {
  padding: 12px 14px;
  color: var(--text);
  font-weight: 900;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 14px 0 90px;
}

.filters {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(23, 18, 17, 0.88);
  backdrop-filter: blur(14px);
}

.filters-title {
  margin: 0 0 12px;
  font-size: 17px;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  text-align: left;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 178, 56, 0.32);
  background: rgba(255, 178, 56, 0.09);
}

.filter-count {
  color: var(--gold);
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
}

.product-count {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  min-height: 188px;
}

.product-card.is-hidden,
[hidden] {
  display: none !important;
}

.product-thumb {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0807;
  aspect-ratio: 4 / 3;
  max-height: 190px;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 90, 31, 0.13);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.price {
  color: var(--text);
  font-weight: 950;
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.add-btn {
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #130b08;
  padding: 11px 12px;
  font-weight: 950;
}

.add-btn:hover {
  background: linear-gradient(135deg, var(--hot), var(--gold));
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(430px, 100%);
  transform: translateX(104%);
  transition: transform 180ms ease;
  background: #110d0c;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  gap: 12px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 24px;
}

.cart-items {
  overflow: auto;
  padding: 12px 16px;
}

.cart-empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

.cart-line {
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 950;
}

.checkout-btn,
.send-btn {
  border: 0;
  border-radius: 8px;
  padding: 14px;
  color: #0b120d;
  background: var(--green);
  font-weight: 950;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.open {
  display: grid;
}

.order-modal {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #120e0d;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
}

.order-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.footer-note {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .catalog-preview,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .topbar-inner {
    align-items: start;
  }

  .brand-subtitle,
  .nav-actions .pill-button {
    display: none;
  }

  .hero-copy {
    padding: 22px;
  }

  .cover-card {
    min-height: 260px;
  }

  .filter-list,
  .products-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
