/*
Theme Name: Konor3D Style Halloween
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team (zmodyfikowany: Halloween)
Description: Twenty Twenty-Five w wersji Halloween 🎃 – dynie, szlam, ciemny fiolet. Dopasowany do telefonów.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: blog, portfolio, entertainment, grid-layout, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* ==========================================================================
   Sklep – edycja HALLOWEEN 🎃 (dopasowana do telefonów)
   Style dotyczą TREŚCI strony (main). Nagłówek motywu (logo + menu)
   i stopka motywu dostają kolory z theme.json, bez nadpisywania układu.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Creepster&family=Nunito:wght@400;600;700;800&display=swap");

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Kolory */
  --ink: #0d0714;
  --surface: #160d20;
  --surface-raised: #22132f;
  --line: #3d2455;
  --text: #f6ecdf;
  --text-muted: #bba8cf;
  --pumpkin: #ff7a1a;
  --pumpkin-deep: #e85d04;
  --purple: #9b4dff;
  --slime: #7cff3a;
  --danger: #ff3b30;

  --brand-gradient: linear-gradient(115deg, #ffb020 0%, var(--pumpkin) 45%, #e8400a 100%);

  /* Typografia */
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Creepster", "Nunito", cursive;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.5rem;
  --fs-lg: 1.7rem;
  --fs-xl: clamp(2.4rem, 1.6rem + 3.5vw, 4rem);

  /* Odstępy */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  /* Zaokrąglenia */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 32px -18px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --container: 1200px;

  /* Dynie (SVG inline) – tło strony: delikatne */
  --pumpkins-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg opacity='0.07'%3E%3Cg transform='translate(20 30) rotate(-14 40 40)'%3E%3Cpath d='M38 8c0-6 4-8 8-8l2 6c-4 0-6 2-6 6z' fill='%237cff3a'/%3E%3Cellipse cx='22' cy='46' rx='16' ry='28' fill='%23ff7a1a'/%3E%3Cellipse cx='58' cy='46' rx='16' ry='28' fill='%23ff7a1a'/%3E%3Cellipse cx='40' cy='46' rx='16' ry='30' fill='%23ff9a3d'/%3E%3C/g%3E%3Cg transform='translate(150 140) rotate(10 40 40) scale(0.8)'%3E%3Cpath d='M38 8c0-6 4-8 8-8l2 6c-4 0-6 2-6 6z' fill='%237cff3a'/%3E%3Cellipse cx='22' cy='46' rx='16' ry='28' fill='%23ff7a1a'/%3E%3Cellipse cx='58' cy='46' rx='16' ry='28' fill='%23ff7a1a'/%3E%3Cellipse cx='40' cy='46' rx='16' ry='30' fill='%23ff9a3d'/%3E%3C/g%3E%3Cpath transform='translate(170 30)' d='M0 14c10-14 20-4 30-14 4 8 8 8 12 4 4 4 8 4 12-4 10 10 20 0 30 14-10-4-18 0-24 8-6-8-12-6-18 2-6-8-12-6-18-2-6-8-14-12-24-8z' fill='%239b4dff'/%3E%3Cpath transform='translate(40 170)' d='M0 14c10-14 20-4 30-14 4 8 8 8 12 4 4 4 8 4 12-4 10 10 20 0 30 14-10-4-18 0-24 8-6-8-12-6-18 2-6-8-12-6-18-2-6-8-14-12-24-8z' fill='%239b4dff'/%3E%3C/g%3E%3C/svg%3E");

  /* Dynie jack-o'-lantern – widoczne po najechaniu na kartę */
  --pumpkins-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg transform='rotate(-8 60 60)'%3E%3Cpath d='M56 20c0-7 4-10 9-10l2 7c-4 0-6 2-6 6z' fill='%237cff3a'/%3E%3Cellipse cx='38' cy='66' rx='22' ry='34' fill='%23ff7a1a'/%3E%3Cellipse cx='82' cy='66' rx='22' ry='34' fill='%23ff7a1a'/%3E%3Cellipse cx='60' cy='66' rx='22' ry='37' fill='%23ffa043'/%3E%3Cpath d='M42 56l8 14h-16zM78 56l8 14h-16z' fill='%230d0714'/%3E%3Cpath d='M40 82q20 16 40 0l-6 10-6-5-8 6-8-6-6 5z' fill='%230d0714'/%3E%3C/g%3E%3C/svg%3E");

  /* Kapiący szlam – dolna krawędź na przyciskach */
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 0H40V5C36 5 35 7 35 10a3 3 0 0 1-6 0C29 7 28 5 24 5S19 7 19 12a3 3 0 0 1-6 0C13 8 12 5 8 5 4 5 4 6 0 6Z' fill='%237cff3a'/%3E%3C/svg%3E");

  /* Pajęczyna w rogu nagłówka */
  --web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23f6ecdf' stroke-opacity='0.55' stroke-width='1'%3E%3Cpath d='M0 0L120 0M0 0L0 120M0 0L110 70M0 0L70 110M0 0L100 100'/%3E%3Cpath d='M30 0Q22 22 0 30M60 0Q40 40 0 60M90 0Q60 60 0 90M118 0Q80 80 0 118'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    var(--pumpkins-faint),
    radial-gradient(900px 480px at 15% -8%, rgba(255, 122, 26, 0.20), transparent 70%),
    radial-gradient(800px 460px at 90% -4%, rgba(155, 77, 255, 0.22), transparent 70%),
    radial-gradient(700px 400px at 50% 110%, rgba(255, 122, 26, 0.10), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main a:not(.wp-block-button__link):not(.button):not(.btn):not(.btn-cart) {
  color: var(--pumpkin);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

main a:not(.wp-block-button__link):not(.button):not(.btn):not(.btn-cart):hover {
  color: var(--slime);
}

:focus-visible {
  outline: 2px solid var(--slime);
  outline-offset: 3px;
}

::selection {
  background: var(--pumpkin);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. Nagłówek
   -------------------------------------------------------------------------- */
main header {
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto var(--space-4);
  padding: var(--space-3) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--pumpkin);
  text-shadow:
    0 0 6px rgba(255, 122, 26, 0.9),
    0 0 24px rgba(255, 122, 26, 0.55),
    3px 3px 0 #000;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 26, 0.35), transparent 60%),
    linear-gradient(135deg, #1b0a2b 0%, #3a1360 55%, #1b0a2b 100%);
  border: 2px solid var(--pumpkin-deep);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 6px rgba(255, 122, 26, 0.35),
    0 20px 60px -24px rgba(255, 122, 26, 0.6);
  animation: flicker 5s linear infinite;
}

/* pajęczyny w obu górnych rogach */
main header::before,
main header::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 120px;
  background: var(--web) no-repeat;
  pointer-events: none;
}

main header::before {
  left: 0;
}

main header::after {
  right: 0;
  transform: scaleX(-1);
}

main header img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.7));
}

/* --------------------------------------------------------------------------
   4. Siatka sklepu
   -------------------------------------------------------------------------- */
.shop-section {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   5. Karta produktu
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

/* Tło z dyniami – pojawia się dopiero po najechaniu */
.product-card::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 122, 26, 0.35), transparent 65%),
    var(--pumpkins-lit) 0 0 / 120px 120px repeat;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

/* Ciemna "szyba", żeby tekst został czytelny na tle dyń */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 7, 20, 0.55), rgba(13, 7, 20, 0.82));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.product-card:hover::before,
.product-card:focus-within::before {
  opacity: 0.55;
  transform: translateY(0);
}

.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  /* Jedno wejście całej siatki (kaskada) */
  .product-card {
    animation: cardIn 0.6s var(--ease) both;
  }
  .product-card:nth-child(2) { animation-delay: 0.05s; }
  .product-card:nth-child(3) { animation-delay: 0.10s; }
  .product-card:nth-child(4) { animation-delay: 0.15s; }
  .product-card:nth-child(5) { animation-delay: 0.20s; }
  .product-card:nth-child(6) { animation-delay: 0.25s; }
  .product-card:nth-child(n + 7) { animation-delay: 0.30s; }

  /* Dynie powoli płyną po najechaniu */
  .product-card:hover::before {
    animation: pumpkinDrift 6s linear infinite;
  }
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--pumpkin);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 122, 26, 0.4),
    0 24px 44px -20px rgba(255, 122, 26, 0.55);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
  background: var(--ink);
  transition: transform 0.6s var(--ease);
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
}

.product-card:hover h3 {
  color: var(--pumpkin);
}

.product-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 60ch;
}

/* Cena – przyklejona do dołu karty */
.product-card .price {
  margin-top: auto;
  padding-top: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
}

.product-card .price del {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.4em;
}

.product-card .price ins {
  text-decoration: none;
  color: var(--slime);
  text-shadow: 0 0 12px rgba(124, 255, 58, 0.45);
}

.product-card .btn-cart,
.product-card .button {
  margin-top: var(--space-1);
  align-self: stretch;
}

/* Plakietka promocji (WooCommerce) – śluzowa zieleń */
.onsale {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  padding: 0.25rem 0.8rem;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--slime);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(124, 255, 58, 0.55);
  transform: rotate(-6deg);
}

/* --------------------------------------------------------------------------
   6. Przyciski – dynia + kapiący szlam + wyskakująca dynia 🎃
   -------------------------------------------------------------------------- */
.btn-cart,
main button,
.button,
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 46px;
  touch-action: manipulation;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--brand-gradient);
  border: 2px solid #1b0a2b;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 0 #8a2f00, 0 10px 22px -10px rgba(255, 122, 26, 0.8);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.2s var(--ease),
    filter 0.2s var(--ease);
}

/* Szlam spływa z góry po najechaniu */
.btn-cart::before,
main button::before,
.button::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--drip) left bottom / 40px 16px repeat-x,
    linear-gradient(var(--slime), var(--slime)) left top / 100% calc(100% - 15px) no-repeat;
  transform: translateY(-105%);
  transition: transform 0.55s var(--ease);
}

/* Dynia wysuwa się obok napisu */
.btn-cart::after,
main button::after,
.button::after,
.btn::after {
  content: "🎃";
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: scale(0.2) rotate(-40deg);
  transition:
    max-width 0.4s var(--ease),
    margin 0.4s var(--ease),
    opacity 0.3s var(--ease),
    transform 0.5s cubic-bezier(0.34, 1.7, 0.5, 1);
}

.btn-cart:hover,
main button:hover,
.button:hover,
.btn:hover {
  color: var(--ink);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow:
    0 7px 0 #3f8f10,
    0 0 26px rgba(124, 255, 58, 0.55),
    0 14px 26px -10px rgba(124, 255, 58, 0.5);
}

.btn-cart:hover::before,
main button:hover::before,
.button:hover::before,
.btn:hover::before {
  transform: translateY(0);
}

.btn-cart:hover::after,
main button:hover::after,
.button:hover::after,
.btn:hover::after {
  max-width: 1.6em;
  margin-left: 0.5em;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.btn-cart:active,
main button:active,
.button:active,
.btn:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 1px 0 #3f8f10;
}

.btn-cart:focus-visible,
main button:focus-visible,
.button:focus-visible,
.btn:focus-visible {
  outline-offset: 5px;
}

.btn-cart:disabled,
main button:disabled,
.button.disabled,
.btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(1) brightness(0.65);
  transform: none;
  box-shadow: none;
}

.btn-cart:disabled::before,
main button:disabled::before,
.button.disabled::before,
.btn[disabled]::before,
.btn-cart:disabled::after,
main button:disabled::after,
.button.disabled::after,
.btn[disabled]::after {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Sortowanie (select.orderby)
   -------------------------------------------------------------------------- */
select.orderby {
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  padding: 0.7rem 2.75rem 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background-color: var(--surface-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

select.orderby:hover {
  border-color: var(--pumpkin);
}

select.orderby:focus {
  outline: none;
}

select.orderby:focus-visible {
  border-color: var(--pumpkin);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25);
}

select.orderby option {
  background: var(--surface);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   8. Dodatki WooCommerce: komunikaty, paginacja
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  max-width: var(--container);
  margin: 0 auto var(--space-3);
  padding: var(--space-2) var(--space-3);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pumpkin);
  border-radius: var(--radius-sm);
}

.woocommerce-error {
  border-left-color: var(--danger);
}

.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  list-style: none;
  margin-top: var(--space-4);
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.woocommerce-pagination a:hover {
  border-color: var(--slime);
  color: var(--slime);
}

.woocommerce-pagination .current {
  color: var(--ink);
  background: var(--brand-gradient);
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   9. Stopka
   -------------------------------------------------------------------------- */
main footer {
  position: relative;
  max-width: var(--container);
  margin: var(--space-5) auto 0;
  padding: var(--space-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px dashed var(--pumpkin-deep);
  border-radius: var(--radius-md);
}

main footer::before {
  content: "🦇  🎃  🕸️  🎃  🦇";
  display: block;
  margin-bottom: var(--space-1);
  letter-spacing: 0.3em;
}

main footer a {
  color: var(--text);
}

main footer a:hover {
  color: var(--pumpkin);
}

/* --------------------------------------------------------------------------
   10. Animacje
   -------------------------------------------------------------------------- */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pumpkinDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 120px 120px; }
}

/* Migotanie świecy w nagłówku */
@keyframes flicker {
  0%, 18%, 22%, 62%, 66%, 100% { opacity: 1; }
  20%, 64% { opacity: 0.82; }
}

/* --------------------------------------------------------------------------
   11. Responsywność i preferencje użytkownika
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  main header {
    flex-direction: column;
    padding: var(--space-3) var(--space-2);
  }

  main header::before,
  main header::after {
    width: 80px;
    height: 80px;
    background-size: contain;
  }

  select.orderby {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   12. TABLET I TELEFON
   -------------------------------------------------------------------------- */
/* efekt szlamu i dyni także przy dotknięciu (telefon nie ma hover) */
.btn-cart:active::before,
main button:active::before,
.button:active::before,
.btn:active::before {
  transform: translateY(0);
}

.btn-cart:active::after,
main button:active::after,
.button:active::after,
.btn:active::after {
  max-width: 1.6em;
  margin-left: 0.5em;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (max-width: 900px) {
  .shop-section {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll; /* iOS źle radzi sobie z fixed */
  }

  main header {
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-2);
    font-size: clamp(2.1rem, 11vw, 3rem);
    box-shadow:
      0 0 0 3px var(--ink),
      0 0 0 5px rgba(255, 122, 26, 0.35),
      0 14px 40px -20px rgba(255, 122, 26, 0.6);
  }

  main header::before,
  main header::after {
    width: 76px;
    height: 76px;
    background-size: contain;
  }

  main header img {
    height: 44px;
    width: 44px;
  }

  /* dwa produkty w rzędzie */
  .shop-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 10px;
    gap: 6px;
    border-radius: 14px;
  }

  .product-card h3 {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }

  .product-card p {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .price {
    font-size: 1.35rem;
  }

  .onsale {
    top: 8px;
    left: 8px;
    padding: 0.15rem 0.6rem;
    font-size: 0.9rem;
  }

  .btn-cart,
  main button,
  .button,
  .btn {
    padding: 0.65rem 0.7rem;
    font-size: 1.1rem;
  }

  select.orderby {
    width: 100%;
    min-height: 46px;
    font-size: 16px; /* brak automatycznego zoomu na iOS */
  }

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: var(--space-2);
    font-size: var(--fs-sm);
  }

  .woocommerce-pagination ul {
    margin-top: var(--space-3);
  }

  .woocommerce-pagination a,
  .woocommerce-pagination span {
    min-width: 44px;
    height: 44px;
  }

  main footer {
    margin-top: var(--space-4);
    padding: var(--space-2);
  }
}

/* bardzo wąskie telefony: jedna kolumna */
@media (max-width: 360px) {
  .shop-section {
    grid-template-columns: 1fr;
  }
}

/* ekrany dotykowe: dynie widać zawsze, bez "przyklejonego" hovera */
@media (hover: none) {
  .product-card::before {
    opacity: 0.35;
    transform: none;
  }

  .product-card::after {
    opacity: 1;
  }

  .product-card:hover,
  .product-card:hover img,
  .btn-cart:hover,
  main button:hover,
  .button:hover,
  .btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}