/* ============================================
   KOSARI STARTER — zmien tylko te zmienne
   ============================================ */
:root {
  --brand:       #a04365;
  --brand-light: #f0c2cb;
  --dark:        #111111;
  --text:        #2d2d2d;
  --text-light:  #666666;
  --bg:          #ffffff;
  --bg-soft:     #faf9f8;
  --border:      #e8e4e0;
  --radius:      6px;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Playfair Display', serif;
  --max-width:   1400px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); font-weight: 600; line-height: 1.3; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--dark); }

/* ============================================
   MAX-WIDTH — tylko strony WooCommerce
   (header/footer Elementorowy nie jest dotykany)
   ============================================ */
body.woocommerce-page .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   BUTTONS
   ============================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 13px 28px !important;
  transition: background .2s, transform .15s !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--brand-hover) !important;
  transform: translateY(-1px) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--brand) !important; }
.woocommerce a.button.alt:hover { background: var(--brand-hover) !important; }

/* WooCommerce block cart/checkout buttons */
.wc-block-cart__submit-button,
.wc-block-checkout__submit-button,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-button,
.wc-block-components-checkout-place-order-button {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-checkout__submit-button:hover {
  background: var(--brand-hover) !important;
}

/* ============================================
   INPUTS
   ============================================ */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page select {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 11px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  color: var(--text) !important;
  background: var(--bg) !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: border-color .2s !important;
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  border-color: var(--brand) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(212,130,156,.12) !important;
}
label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; display: block; }

/* ============================================
   CHECKOUT — DWUKOLUMNOWY
   ============================================ */
form.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0 56px;
  align-items: start;
}

.kc-checkout-left  { grid-column: 1; }
.kc-checkout-right {
  grid-column: 2;
  position: sticky;
  top: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.woocommerce-info {
  background: var(--brand) !important;
  color: #fff !important;
  border-top: none !important;
  border-radius: var(--radius) !important;
  font-size: 14px !important;
}
.woocommerce-info a { color: #fff !important; text-decoration: underline !important; }
.woocommerce-info::before { color: rgba(255,255,255,.7) !important; }

.woocommerce-checkout #payment {
  background: var(--bg-soft) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
}
.woocommerce-checkout #payment div.payment_box { background: #f3f0ee !important; }

#order_review_heading {
  font-family: var(--font-head) !important;
  font-size: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.woocommerce-checkout-review-order-table th {
  background: var(--bg-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
}
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
}

/* ============================================
   KOSZYK
   ============================================ */
.woocommerce table.shop_table {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--bg-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  border: none !important;
}
.woocommerce table.shop_table td { border-color: var(--border) !important; }

/* ============================================
   MOJE KONTO
   ============================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text) !important;
  transition: background .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--border); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--brand) !important;
  color: #fff !important;
}

/* ============================================
   NOTICES — klasyczne WooCommerce
   ============================================ */
.woocommerce-message {
  border-top-color: var(--brand) !important;
}
.woocommerce-message a.button {
  background: var(--brand) !important;
  color: #fff !important;
}
.woocommerce-error { border-top-color: #c0392b !important; }

/* WooCommerce block notices */
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner {
  border-color: var(--brand) !important;
}
.wc-block-components-notice-banner.is-error {
  border-color: #c0392b !important;
}
.wc-block-components-notice-banner svg {
  fill: var(--brand) !important;
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.woocommerce-order-received h2,
.woocommerce-thankyou-order-received {
  color: var(--brand) !important;
}
.woocommerce-order-details,
.woocommerce-customer-details {
  border-color: var(--border) !important;
}
.woocommerce-order-overview {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}
.woocommerce-order-overview li {
  border-right-color: var(--border) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  form.woocommerce-checkout {
    grid-template-columns: 1fr;
  }
  .kc-checkout-right {
    grid-column: 1;
    position: static;
  }
}

@media (max-width: 768px) {
  body.woocommerce-page .site-main,
  body.woocommerce-checkout .site-main,
  body.woocommerce-cart .site-main,
  body.woocommerce-account .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
