/*
Theme Name:  Sklep Mono (Storefront Child)
Theme URI:   https://woocommerce.com/storefront/
Description: Lekki motyw-dziecko Storefront w stylu galerii — biel, duże zdjęcia, Outfit + Inter, jeden ciemny przycisk.
Author:      Pawel
Template:    storefront
Version:     1.0.0
Text Domain: sklep-mono
*/

/* ---------- Tokeny ---------- */
:root {
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.6);
  --muted: #a3a3a3;
  --line: #e4e4e7;
  --btn: #1f2227;
  --bg: #ffffff;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 4px;
}

/* ---------- Baza ---------- */
body,
.site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4,
.woocommerce-loop-product__title,
.site-title,
.product_title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.1; }
a { color: var(--ink); }
a:hover { color: var(--ink-soft); }

.col-full { max-width: 1400px; padding-left: 24px; padding-right: 24px; }

/* ---------- Pasek promo + nagłówek ---------- */
.promo-bar {
  background: var(--btn);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
}
/* =====================================================================
   style.css (motyw Sklep Mono)
   1) ZASTĄP linie 59–80 (od ".site-header {" do ".site-header-cart ... ::after") blokiem A
   2) ZASTĄP linie 241–248 (sekcja "Stopka") blokiem B
   ===================================================================== */
 
/* ===== BLOK A: nagłówek — jeden rząd ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.site-header .col-full {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 32px;
}
.site-header .col-full::before,
.site-header .col-full::after { display: none; }   /* clearfix Storefront psuje flex */
 
.site-branding { margin: 0; width: auto !important; float: none !important; flex: 0 0 auto; }
.site-title { font-size: 22px; margin: 0; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-header .site-description { display: none !important; }
 
.main-navigation { margin: 0; width: auto !important; float: none !important; flex: 1; }
@media (min-width: 768px) {
  .main-navigation ul.menu { display: flex; gap: 28px; margin: 0; }
  .main-navigation ul.menu > li { margin: 0; }
  .main-navigation ul.menu > li > a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 15px;
    padding: 0;
    color: var(--ink);
  }
}
.main-navigation ul li a:hover { color: var(--ink-soft); }
 
.header-actions {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.header-actions a { color: var(--ink); text-decoration: none; }
.header-actions a:hover { color: var(--ink-soft); }
 
.header-search { border-top: 1px solid var(--line); padding: 16px 0; }
.header-search .widget { margin: 0; }
.header-search .woocommerce-product-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.header-search .search-field {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font: inherit;
  box-shadow: none;
}
 
/* mobile: logo + akcje w rzędzie, przycisk "Menu" Storefront pod spodem */
@media (max-width: 767px) {
  .site-header .col-full { flex-wrap: wrap; gap: 12px 16px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .main-navigation { flex: 1 1 100%; order: 3; }
  .header-actions { font-size: 13px; gap: 14px; }
}

/* ---------- Przyciski ---------- */
.button,
button,
input[type="submit"],
.added_to_cart,
.wc-block-components-button {
  background: var(--btn) !important;
  color: #fff !important;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  text-transform: none;
  letter-spacing: 0;
  transition: opacity .15s;
}
.button:hover, button:hover, input[type="submit"]:hover { opacity: .85; }
.button.alt, .single_add_to_cart_button { background: var(--btn) !important; }

/* przycisk outline (newsletter, link w hero) */
.button--ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f4f5;
}
@media (min-width: 1024px) { .hero { aspect-ratio: 2 / 1; } }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__content {
  position: absolute;
  inset: auto 24px 48px 24px;
  color: #fff;
  max-width: 640px;
}
@media (min-width: 1024px) { .hero__content { inset: auto auto 96px 80px; } }
.hero__content h1 { color: #fff; margin-bottom: 8px; }
.hero__content p { font-size: 18px; margin-bottom: 24px; opacity: .9; }

/* ---------- Kafle kategorii ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 48px 0; }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile__label {
  position: absolute; left: 20px; bottom: 20px; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.cat-tile__label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; opacity: .85; }

/* ---------- Siatka produktów ---------- */
.woocommerce .site-main ul.products,
ul.products {
  display: grid !important;
  gap: 40px 24px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}
@media (min-width: 768px)  { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); } }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}
ul.products li.product .woocommerce-LoopProduct-link img,
ul.products li.product img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  margin-bottom: 14px;
  background: #f4f4f5;
  transition: opacity .2s;
}
ul.products li.product:hover img { opacity: .92; }

.product-brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 17px; margin: 0 0 4px; line-height: 1.3; }
.product-excerpt { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
ul.products li.product .price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 12px;
}
ul.products li.product .price del { color: var(--muted); font-weight: 400; margin-right: 8px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button { font-size: 13px; padding: 10px 18px; }

/* badge promocji w stylu -7% */
.onsale {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--ink);
  border: 0; border-radius: 2px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  padding: 4px 8px; min-width: 0; min-height: 0; line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
ul.products li.product { position: relative; }
.storefront-sorting { border: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Nagłówki sekcji ---------- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 72px 0 32px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.section-title a { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink-soft); text-decoration: underline; }

/* ---------- Strona produktu ---------- */
.single-product div.product .woocommerce-product-gallery { width: 55%; }
.single-product div.product .summary { width: 40%; padding-top: 8px; }
.single-product .product_title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.single-product .price { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.single-product .price del { color: var(--muted); }
.single-product .price ins { text-decoration: none; }
.single-product .woocommerce-product-details__short-description { color: var(--ink-soft); margin-bottom: 24px; }
.single-product form.cart .quantity .qty { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; height: 46px; }
.single-product .product_meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--ink); }
.woocommerce-tabs ul.tabs li a { font-family: var(--font-head); font-weight: 500; }
.woocommerce-tabs .panel { border: 0; }

/* ---------- Koszyk / kasa ---------- */
.woocommerce-cart table.cart th, .woocommerce-cart table.cart td { border-color: var(--line); }
.woocommerce-cart .cart-collaterals .cart_totals { border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: #fff;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--ink); }
.woocommerce-message, .woocommerce-info { background: #f4f4f5; color: var(--ink); border-top: 2px solid var(--btn); }
.woocommerce-message a.button { background: var(--btn) !important; }

/* ---------- Newsletter ---------- */
.newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; text-align: center; margin-top: 96px; }
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 24px; }
.newsletter form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.newsletter input[type="email"] { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font: inherit; }

/* ---------- Stopka ---------- */
/* ===== BLOK B: stopka — 4 kolumny + copyright ===== */
.site-footer { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col .widget-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: 0 0 8px; font-size: 14px; }
.site-info { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; }
/* ---------- Ukrycia Storefront ---------- */
.storefront-breadcrumb { display: none; }
.storefront-handheld-footer-bar { border-top: 1px solid var(--line); }
.storefront-product-section .section-title { text-align: left; }

/* ---------- Podstrony (O nas, FAQ, Regulamin…) ---------- */
.page:not(.home) .site-main { padding-top: 100px; padding-bottom: 96px; }
@media (min-width: 1024px) { .page:not(.home) .site-main { padding-top: 72px; } }

.page:not(.home) .entry-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);   /* było 56px */
  margin-bottom: 40px;
}
.page:not(.home) .entry-content { max-width: 760px; }   /* wygodna szerokość tekstu */
.page:not(.home) .entry-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 40px 0 12px;
}
.page:not(.home) .entry-content p,
.page:not(.home) .entry-content li { color: var(--ink-soft); }



.page:not(.home) .entry-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }


.header-actions .js-search-toggle,
.header-search { display: none; }