@charset "UTF-8";
/* ----------------------------------------------------------
   main.scss — Global design system for Snuggly Plush
   Palette, typography, spacing, layout, components
---------------------------------------------------------- */
/* 1) Design tokens (CSS variables) */
:root {
  /* Brand palette */
  --color-warm-beige: #D8C1AA;
  --color-cozy-brown: #8B5E3C;
  --color-brown-hover: #6A432E;
  /* lekko wzmocniony, bardziej wyraźny */
  --color-soft-cream: #F7F3EF;
  --color-light-sand: #E5D5C8;
  --color-sale-red: #C64827;
  --banner-top-bg: #2b2b2b;
  /* Text – mocniejszy kontrast */
  --color-text-dark: #111111;
  --color-text: #1A1A1A;
  --color-text-muted: #6B5E55;
  --color-text-muted-accessible: #5a4e46;
  /* darker muted — 5.0:1 on white (WCAG AA) */
  --color-cozy-brown-text: #6b4422;
  /* darker brown for small text — 5.2:1 on white (WCAG AA) */
  /* Surfaces */
  --color-bg: #F7F3EF;
  --color-surface: #fbf9f7;
  --color-border: #E9E2DB;
  /* Radius & shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  /* Typography families */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* Heading scale – powiększone */
  --h1-size: clamp(2.4rem, 1.9rem + 2.4vw, 3.4rem);
  --h2-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  --h3-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  --h4-size: 1.125rem;
  --h5-size: 1rem;
  --h6-size: 0.95rem;
  /* Spacing scale */
  --space-2xs: .25rem;
  /* 4px */
  --space-xs: .5rem;
  /* 8px */
  --space-sm: .75rem;
  /* 12px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  /* Container */
  --container-max: 1200px;
  /* Buttons – mocniejsze CTA + większa wysokość */
  --btn-bg: var(--color-cozy-brown);
  --btn-bg-hover: #6A432E;
  --btn-text: #fff;
  --btn-radius: 999px;
  --btn-ptb: 14px;
  /* było 12px – teraz bliżej 44px height */
  --btn-plr: 28px;
  /* Links */
  --link: var(--color-cozy-brown);
  --link-hover: #6A432E;
  /* Sale */
  --sale: var(--color-sale-red);
}

/* 2) Base & reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}

/* USUNIĘTE globalne a { font-size } – linki dziedziczą rozmiar z kontekstu */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
}

button {
  font: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--color-warm-beige);
  color: var(--color-text-dark);
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* 3) Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-md);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  /* trochę ciaśniej, bardziej premium */
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
  font-weight: 600;
}

h5 {
  font-size: var(--h5-size);
  font-weight: 600;
}

h6 {
  font-size: var(--h6-size);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md);
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-dark);
}

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

/* 4) Layout helpers */
.container {
  width: min(var(--container-max), 100% - 40px);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}
.section--tight {
  padding-block: var(--space-xl);
}
.section--loose {
  padding-block: var(--space-3xl);
}
.section--surface {
  background: var(--color-surface);
}
.section--alt {
  background: var(--color-soft-cream);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid-3,
.grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2,
.grid-3,
.grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hr {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}

.center {
  display: grid;
  place-items: center;
}

/* 5) Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--color-light-sand);
  color: var(--color-text-dark);
}
.badge--sale {
  background: var(--sale);
  color: #fff;
}
.badge--beige {
  background: var(--color-warm-beige);
  color: var(--color-text-dark);
}
.badge--brown {
  background: var(--color-cozy-brown);
  color: #fff;
}

/* 6) Buttons (global) */
button,
.button,
.btn,
.wp-element-button,
.storefront-button,
.add_to_cart_button,
.single_add_to_cart_button,
a.button,
a.btn,
input[type=submit],
input[type=button],
input[type=reset],
a.checkout-button,
a.wc-forward {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: var(--btn-ptb) var(--btn-plr);
  border: 0;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
  box-shadow: none;
  min-height: 44px;
  /* a11y – łatwiejsze klikanie na mobile */
}
button:hover,
.button:hover,
.btn:hover,
.wp-element-button:hover,
.storefront-button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
a.button:hover,
a.btn:hover,
input[type=submit]:hover,
input[type=button]:hover,
input[type=reset]:hover,
a.checkout-button:hover,
a.wc-forward:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
}
button:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.wp-element-button:focus-visible,
.storefront-button:focus-visible,
.add_to_cart_button:focus-visible,
.single_add_to_cart_button:focus-visible,
a.button:focus-visible,
a.btn:focus-visible,
input[type=submit]:focus-visible,
input[type=button]:focus-visible,
input[type=reset]:focus-visible,
a.checkout-button:focus-visible,
a.wc-forward:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111;
}

button:active,
.button:active,
.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: var(--color-warm-beige);
  color: var(--color-text-dark);
}
.btn--light {
  background: var(--color-light-sand);
  color: var(--color-text-dark);
}
.btn--sale {
  background: var(--sale);
  color: #fff;
}
.btn--sm {
  padding: 8px 18px;
  font-size: 12px;
  min-height: 34px;
}
.btn--lg {
  padding: 16px 34px;
  font-size: 15px;
  min-height: 48px;
}

/* 7) Forms */
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-warm-beige);
  box-shadow: 0 0 0 3px rgba(216, 193, 170, 0.35);
}

.form-row {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 8) Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.table th {
  background: var(--color-soft-cream);
  color: var(--color-text-dark);
  font-weight: 600;
}

/* 9) Callouts */
.callout {
  border: 1px solid var(--color-light-sand);
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}
.callout--sale {
  border-color: var(--sale);
  background: #fff4f1;
}

/* 10) Common sections */
.hero {
  background: var(--color-surface);
}
.hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 14px 18px;
  margin-bottom: var(--space-sm);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

/* 11) WooCommerce touches */
.price {
  font-weight: 700;
  color: var(--color-text-dark);
}
.price del {
  color: var(--color-text-muted);
  margin-right: 6px;
}
.price ins {
  color: var(--sale);
  text-decoration: none;
}

.woocommerce .star-rating span:before {
  color: var(--color-warm-beige);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius-sm);
  background: #fff;
}

/* 12) Utilities */
.mt-0 {
  margin-top: 0 !important;
}

.mt-xs {
  margin-top: var(--space-xs) !important;
}

.mt-sm {
  margin-top: var(--space-sm) !important;
}

.mt-md {
  margin-top: var(--space-md) !important;
}

.mt-lg {
  margin-top: var(--space-lg) !important;
}

.mt-xl {
  margin-top: var(--space-xl) !important;
}

.mt-2xl {
  margin-top: var(--space-2xl) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-xs {
  margin-bottom: var(--space-xs) !important;
}

.mb-sm {
  margin-bottom: var(--space-sm) !important;
}

.mb-md {
  margin-bottom: var(--space-md) !important;
}

.mb-lg {
  margin-bottom: var(--space-lg) !important;
}

.mb-xl {
  margin-bottom: var(--space-xl) !important;
}

.px-md {
  padding-inline: var(--space-md) !important;
}

.py-lg {
  padding-block: var(--space-lg) !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.text-brown {
  color: var(--color-cozy-brown) !important;
}

.bg-cream {
  background: var(--color-soft-cream) !important;
}

.bg-white {
  background: #fff !important;
}

.bg-beige {
  background: var(--color-warm-beige) !important;
}

.bg-sand {
  background: var(--color-light-sand) !important;
}

.bg-sale {
  background: var(--sale) !important;
  color: #fff !important;
}

/* 13) Footer (global) */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  padding-block: var(--space-2xl);
  font-size: 0.95rem;
}
.footer a:hover {
  text-decoration: underline;
}

/* 15) Homepage tweaks */
.home .entry-title {
  display: none !important;
}
.home .entry-header {
  margin: 0 !important;
  padding: 0 !important;
}

/* Legal pages – clean centered H1 without underline */
.page .entry-title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  /* mniejszy, bardziej elegancki rozmiar */
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  /* więcej przestrzeni */
  margin-top: 2.8rem;
  margin-bottom: 2rem;
  /* usuwa każde pseudo-elementy jeśli jakieś były */
  padding-bottom: 0;
}

.page .entry-title::after {
  display: none !important;
}

.site,
#page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer {
  margin-top: var(--space-2xl);
  margin-bottom: 0;
}

/* Ukrycie linku "Edit" pod treścią strony (tylko dla zalogowanych) */
.logged-in .edit-link,
.logged-in .post-edit-link {
  display: none !important;
}

/* Accessibility: visually hidden but available for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#cgw_action_btn {
  visibility: hidden !important;
  pointer-events: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #111;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/*# sourceMappingURL=main.css.map */
