/* KNEFEL — sklep WooCommerce: produkt, koszyk, kasa, konto, powiadomienia */

/* ---------- strona produktu ---------- */
.price-row del,.product-price del{ text-decoration:none; }
.price-row .woocommerce-Price-amount,.product-price .woocommerce-Price-amount{ font:inherit; color:inherit; }
.price-row .old .woocommerce-Price-amount,.product-price .old .woocommerce-Price-amount{ color:inherit; }
.size-row button[disabled]{ opacity:.35; text-decoration:line-through; cursor:not-allowed; }
.size-row.static button{ opacity:.55; text-decoration:none; }
.knefel-buy.needs-size .size-row{ outline:1px solid #d4574a; outline-offset:6px; animation:knefelShake .35s; }
@keyframes knefelShake{ 25%{ transform:translateX(-4px); } 75%{ transform:translateX(4px); } }

.qty-box{ display:flex; align-items:center; border:1px solid var(--line); width:fit-content; }
.qty-box button{ width:42px; height:44px; background:none; border:none; color:var(--off-white); font-size:1rem; cursor:pointer; }
.qty-box input{
  width:52px; height:44px; text-align:center;
  background:none; border:none; color:var(--white); font:inherit; font-size:.9rem;
  -moz-appearance:textfield; appearance:textfield;
}
.qty-box input::-webkit-outer-spin-button,.qty-box input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* ---------- koszyk w nagłówku ---------- */
.icon-btn.cart-link{ position:relative; }
.cart-count{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:var(--gold); color:var(--black);
  font-size:.64rem; font-weight:600; line-height:18px; text-align:center;
}
.cart-count[data-count="0"]{ display:none; }

/* ---------- powiadomienia ---------- */
.woocommerce-notices-wrapper{ margin:0; }
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  list-style:none; margin:0 0 22px; padding:16px 20px;
  background:var(--black-soft); border:1px solid var(--line); border-left:3px solid var(--gold);
  color:var(--off-white); font-size:.92rem; line-height:1.6;
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.woocommerce-error{ border-left-color:#d4574a; display:block; }
.woocommerce-error li{ list-style:none; padding:2px 0; }
.woocommerce-message .button,.woocommerce-info .button{ order:2; }
.woocommerce-message a:not(.button),.woocommerce-info a:not(.button),.woocommerce-error a{ color:var(--gold); text-decoration:underline; }

/* ---------- wspólne dla stron sklepu ---------- */
.shop-page{ padding-bottom:40px; }
.woo-content{ color:var(--off-white); }
.woo-content a:not(.button){ color:var(--gold-light); }
.woo-content h2,.woo-content h3{ font-size:1.25rem; margin:0 0 18px; }
.woo-content .button,.woo-content button.button,.woo-content input.button,.woo-content #place_order{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 34px; border:1px solid var(--gold); border-radius:var(--radius);
  background:var(--gold); color:var(--black);
  font-family:var(--f-sans); font-size:.76rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  cursor:pointer; transition:background .3s, border-color .3s, color .3s;
}
.woo-content .button:hover,.woo-content #place_order:hover{ background:var(--gold-light); border-color:var(--gold-light); color:var(--black); }
.woo-content .button.alt,.woo-content #place_order{ background:var(--gold); }
.woo-content .button[disabled],.woo-content .button.disabled{ opacity:.45; cursor:not-allowed; }
.woocommerce-notices-wrapper + *{ margin-top:0; }

/* pola formularzy */
.woo-content label{ display:block; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.woo-content .required{ color:var(--gold); text-decoration:none; border:0; }
.woo-content input[type=text],.woo-content input[type=email],.woo-content input[type=tel],.woo-content input[type=password],
.woo-content input[type=number],.woo-content textarea,.woo-content select,.woo-content .select2-selection{
  width:100%; background:var(--black-soft); border:1px solid var(--line); border-radius:0;
  color:var(--white); padding:14px 16px; font:inherit; font-size:.92rem; outline:none; transition:border-color .3s;
  box-sizing:border-box;
}
.woo-content input:focus,.woo-content textarea:focus,.woo-content select:focus{ border-color:var(--gold); }
.woo-content select option{ background:var(--black-soft); color:var(--white); }
.woo-content textarea{ min-height:110px; resize:vertical; }
.woo-content .form-row{ display:block; margin:0 0 18px; padding:0; }
.woo-content .form-row-first,.woo-content .form-row-last{ width:calc(50% - 9px); float:left; }
.woo-content .form-row-last{ float:right; }
.woo-content .form-row-wide{ clear:both; }
.woo-content .woocommerce-billing-fields__field-wrapper,.woo-content .woocommerce-shipping-fields__field-wrapper,.woo-content .woocommerce-additional-fields__field-wrapper{ overflow:hidden; }
.woo-content input[type=checkbox],.woo-content input[type=radio]{ accent-color:var(--gold); width:auto; margin-right:8px; }
.woo-content .woocommerce-input-wrapper{ display:block; }

/* ---------- koszyk ---------- */
.woocommerce-cart-form{ margin-bottom:48px; }
.shop_table{ width:100%; border-collapse:collapse; }
.shop_table th{
  text-align:left; font-weight:400; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
  padding:0 12px 14px 0; border-bottom:1px solid var(--line);
}
.shop_table td{ padding:20px 12px 20px 0; border-bottom:1px solid var(--line-soft); vertical-align:middle; font-size:.95rem; }
.shop_table .product-thumbnail img{ width:84px; height:auto; display:block; }
.shop_table .product-name a{ color:var(--white); font-family:var(--f-display); }
.shop_table .product-name a:hover{ color:var(--gold); }
.shop_table dl.variation{ margin:6px 0 0; font-size:.8rem; color:var(--muted); display:flex; gap:6px; }
.shop_table dl.variation dt,.shop_table dl.variation dd,.shop_table dl.variation p{ margin:0; display:inline; }
.shop_table .product-remove a{ color:var(--muted); font-size:1.5rem; line-height:1; text-decoration:none; }
.shop_table .product-remove a:hover{ color:#d4574a; }
.shop_table .quantity input{ width:70px; text-align:center; padding:10px; }
.shop_table .actions{ padding-top:26px; }
.shop_table .actions .coupon{ display:flex; gap:12px; float:left; }
.shop_table .actions .coupon input{ width:200px; }
.shop_table .actions > .button{ float:right; }
.shop_table .actions::after{ content:""; display:block; clear:both; }

.cart-collaterals{ display:flex; justify-content:flex-end; }
.cart_totals{ width:100%; max-width:440px; }
.cart_totals h2{ font-size:1.2rem; margin-bottom:16px; }
.cart_totals .shop_table th{ padding-top:14px; color:var(--muted); font-size:.72rem; }
.cart_totals .shop_table td{ text-align:right; padding-right:0; }
.cart_totals .order-total td,.cart_totals .order-total th{ color:var(--white); font-size:1rem; border-bottom:none; }
.cart_totals .order-total .amount{ font-family:var(--f-display); font-size:1.3rem; color:var(--gold-light); }
.wc-proceed-to-checkout{ margin-top:22px; }
.wc-proceed-to-checkout .button{ width:100%; }
ul#shipping_method{ list-style:none; margin:0; padding:0; text-align:right; }
ul#shipping_method li{ margin:0 0 6px; }
ul#shipping_method label{ display:inline; text-transform:none; letter-spacing:0; font-size:.92rem; color:var(--off-white); }
.woocommerce-shipping-destination{ font-size:.8rem; color:var(--muted); margin-top:8px; }
.cart-empty,.return-to-shop{ text-align:center; }
.cart-empty{ padding:60px 0 24px; font-size:1.1rem; color:var(--muted); }
.return-to-shop{ padding-bottom:60px; }

/* ---------- kasa ---------- */
form.checkout{ display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:start; }
form.checkout #customer_details{ grid-column:1; }
form.checkout #order_review_heading{ grid-column:2; grid-row:1; margin:0; }
form.checkout #order_review{ grid-column:2; grid-row:1; margin-top:46px; background:var(--black-soft); border:1px solid var(--line-soft); padding:26px; }
form.checkout .col2-set{ display:block; }
form.checkout .col-1,form.checkout .col-2{ width:100%; float:none; }
.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{ padding:12px 0; }
.woocommerce-checkout-review-order-table td:last-child,.woocommerce-checkout-review-order-table tfoot th + td{ text-align:right; }
.woocommerce-checkout-review-order-table .order-total .amount{ font-family:var(--f-display); font-size:1.25rem; color:var(--gold-light); }
.woocommerce-checkout-payment{ margin-top:26px; }
.wc_payment_methods{ list-style:none; margin:0 0 22px; padding:0; }
.wc_payment_methods li{ border:1px solid var(--line); padding:14px 16px; margin-bottom:10px; }
.wc_payment_methods li label{ display:inline; text-transform:none; letter-spacing:0; font-size:.95rem; color:var(--white); }
.wc_payment_methods li img{ max-height:24px; vertical-align:middle; margin-left:8px; }
.payment_box{ margin-top:12px; font-size:.85rem; color:var(--muted); line-height:1.6; }
.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper{ font-size:.82rem; color:var(--muted); line-height:1.6; margin-bottom:16px; }
.woocommerce-terms-and-conditions-wrapper label{ text-transform:none; letter-spacing:0; font-size:.82rem; color:var(--off-white); }
#place_order{ width:100%; }
.woocommerce-checkout .showcoupon,.woocommerce-form-coupon-toggle{ margin-bottom:22px; }

/* ---------- potwierdzenie zamówienia ---------- */
.woocommerce-order-received .woocommerce-thankyou-order-received{ font-size:1.15rem; color:var(--gold-light); margin-bottom:26px; }
ul.woocommerce-order-overview{ list-style:none; padding:0; margin:0 0 40px; display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px; }
ul.woocommerce-order-overview li{ border:1px solid var(--line-soft); padding:16px; font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
ul.woocommerce-order-overview li strong{ display:block; margin-top:8px; font-size:1rem; letter-spacing:0; text-transform:none; color:var(--white); }
.woocommerce-customer-details address{ font-style:normal; line-height:1.8; color:var(--muted); border:1px solid var(--line-soft); padding:18px; }

/* ---------- moje konto ---------- */
.woocommerce-MyAccount-navigation ul{ list-style:none; margin:0 0 36px; padding:0; display:flex; gap:22px; flex-wrap:wrap; border-bottom:1px solid var(--line-soft); }
.woocommerce-MyAccount-navigation a{ display:block; padding:0 0 14px; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{ color:var(--gold); }
.u-columns{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }

/* ---------- mobile ---------- */
@media (max-width:900px){
  form.checkout{ grid-template-columns:1fr; gap:34px; }
  form.checkout #customer_details,form.checkout #order_review_heading,form.checkout #order_review{ grid-column:1; grid-row:auto; }
  form.checkout #order_review{ margin-top:0; }
  .u-columns{ grid-template-columns:1fr; gap:34px; }
  .cart-collaterals{ justify-content:stretch; }
  .cart_totals{ max-width:none; }
}
@media (max-width:640px){
  .woo-content .form-row-first,.woo-content .form-row-last{ width:100%; float:none; }
  /* koszyk jako lista kart */
  table.shop_table_responsive thead{ display:none; }
  table.shop_table_responsive tr{ display:block; border-bottom:1px solid var(--line-soft); padding:14px 0; }
  table.shop_table_responsive td{ display:flex; justify-content:space-between; align-items:center; border:none; padding:8px 0; text-align:right; }
  table.shop_table_responsive td::before{ content:attr(data-title); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-right:14px; }
  table.shop_table_responsive td.product-remove::before,table.shop_table_responsive td.product-thumbnail::before,table.shop_table_responsive td.actions::before{ content:none; }
  .shop_table .actions .coupon{ float:none; flex-direction:column; width:100%; }
  .shop_table .actions .coupon input{ width:100%; }
  .shop_table .actions > .button{ float:none; width:100%; margin-top:14px; }
}

/* ---------- wąskie telefony: nagłówek mieści się w 375 px ---------- */
@media (max-width:420px){
  .header-actions{ gap:8px; }
  .brand{ gap:10px; }
  .brand-mark{ width:42px; height:42px; }
  .brand-word{ font-size:1.2rem; letter-spacing:.26em; margin-right:-.26em; }
  .brand-sub{ font-size:.58rem; margin-top:5px; }
}
