/* ================================================================
   ANEX MODA – Koszyk & Zamówienie (Gutenberg Blocks)
   Plik: inc/cart-checkout.css
   Skope: bloki WooCommerce Cart Block + Checkout Block
   ================================================================ */

/* ─────────────────────────────────────────
   RESET DOMYŚLNYCH STYLÓW BLOKÓW
───────────────────────────────────────── */

/* Usuwamy outline/box-shadow z focus na blokach */
.wc-block-components-button:focus,
.wc-block-components-checkout-place-order-button:focus {
    box-shadow: 0 0 0 2px rgba(221,167,165,.45) !important;
    outline: none !important;
}

/* ─────────────────────────────────────────
   PRZYCISKI – BAZOWY RESET
───────────────────────────────────────── */

/* Wszystkie przyciski w blokach */
.wc-block-cart .wc-block-components-button,
.wc-block-checkout .wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-coupon__button,
.wc-block-cart .wp-element-button {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .13em !important;
    border-radius: 2px !important;
    padding: 13px 24px !important;
    transition: background .22s, transform .18s, box-shadow .22s !important;
    cursor: pointer !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* ── PRIMARY: "Przejdź do kasy" (Cart Block) ── */
.wc-block-cart__submit-button,
.wc-block-cart .wc-block-cart__submit-container .wc-block-components-button {
    background-color: #2C2A29 !important;
    color: #fff !important;
    border: 1px solid #2C2A29 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 12px !important;
    padding: 16px 28px !important;
    display: block !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-cart__submit-container .wc-block-components-button:hover {
    background-color: #474341 !important;
    border-color: #474341 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(44,42,41,.18) !important;
}

/* ── PRIMARY: "Złóż zamówienie" (Checkout Block) ── */
.wc-block-components-checkout-place-order-button {
    background-color: #2C2A29 !important;
    color: #fff !important;
    border: 1px solid #2C2A29 !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 16px 28px !important;
    display: block !important;
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: #474341 !important;
    border-color: #474341 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(44,42,41,.18) !important;
}

/* ── SECONDARY: Kupon "Zastosuj" ── */
.wc-block-components-totals-coupon__button,
.wc-block-components-coupon__button {
    background-color: transparent !important;
    color: #2C2A29 !important;
    border: 1px solid #E8DCDD !important;
}
.wc-block-components-totals-coupon__button:hover,
.wc-block-components-coupon__button:hover {
    background-color: #2C2A29 !important;
    color: #fff !important;
    border-color: #2C2A29 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(44,42,41,.12) !important;
}

/* ── LINK: "Wróć do sklepu" ── */
.wc-block-cart__return-to-cart-link,
.wc-block-components-checkout-return-to-cart-button {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    color: #B87A7D !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
.wc-block-cart__return-to-cart-link:hover,
.wc-block-components-checkout-return-to-cart-button:hover {
    color: #A64B55 !important;
}

/* ─────────────────────────────────────────
   CENY
───────────────────────────────────────── */

/* Wszystkie kwoty w blokach */
.wc-block-cart .woocommerce-Price-amount,
.wc-block-checkout .woocommerce-Price-amount,
.wc-block-components-product-price .woocommerce-Price-amount,
.wc-block-components-order-summary-item__individual-prices .woocommerce-Price-amount,
.wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: #B87A7D !important;
}

/* Cena przy produkcie w koszyku */
.wc-block-cart-items .wc-block-components-product-price .woocommerce-Price-amount {
    font-size: 15px !important;
}

/* Wiersze podsumowania: Suma częściowa / Wysyłka */
.wc-block-components-totals-item:not(.wc-block-components-totals-footer-item)
    .wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-size: 15px !important;
    color: #5c5a58 !important;
}

/* Suma końcowa – duża, ciemna */
.wc-block-components-totals-footer-item
    .wc-block-components-totals-item__value .woocommerce-Price-amount,
.wc-block-components-order-summary-item.is-total
    .wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-size: 22px !important;
    color: #2C2A29 !important;
}

/* Przekreślona stara cena */
.wc-block-components-product-price del .woocommerce-Price-amount {
    color: #C0B9B7 !important;
    font-size: 13px !important;
    opacity: .75 !important;
}

/* Symbol waluty – nie pogrubiony */
.wc-block-cart .woocommerce-Price-currencySymbol,
.wc-block-checkout .woocommerce-Price-currencySymbol {
    font-weight: 400 !important;
    font-style: normal !important;
}

/* ─────────────────────────────────────────
   OPIS PRODUKTU – UKRYTY
   UWAGA: selektory celowo NIE obejmają
   .wc-block-components-product-name (tytuł produktu)
───────────────────────────────────────── */

/* Krótki opis w wierszu koszyka (paragraf pod nazwą) */
.wc-block-cart-item__description > p,
.wc-block-cart-item__shortDescription,

/* Metadane (np. opis z CMSa) w koszyku */
.wc-block-cart .wc-block-components-product-metadata,

/* Opis w podsumowaniu zamówienia (Checkout Block) –
   ukrywamy tylko paragraf/metadane, NIE kontener główny
   (który zawiera też tytuł produktu) */
.wc-block-components-order-summary-item__description > p,
.wc-block-components-order-summary-item__description > .wc-block-components-product-metadata,
.wc-block-components-order-summary .wc-block-components-product-metadata,

/* Krótki opis przy pozycji (poza tytułem) */
.wc-block-components-product-metadata {
    display: none !important;
}

/* Warianty (np. Rozmiar: M) – zachowujemy widoczne */
.wc-block-cart-item__variation,
.wc-block-components-product-details {
    display: block !important;
    font-size: 12px !important;
    color: #C0B9B7 !important;
    font-family: 'Inter', sans-serif !important;
}


/* ================================================================
   PUSTY KOSZYK – tylko elegancki napis
   ================================================================ */

/* Chowamy wszystko poza głównym komunikatem:
   siatka produktów, nagłówki sekcji, lista z kropkami,
   przycisk "Przeglądaj sklep", blok All Products */
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-all-products,
.wp-block-woocommerce-empty-cart-block .wc-block-grid,
.wp-block-woocommerce-empty-cart-block .wp-block-query,
.wp-block-woocommerce-empty-cart-block h2:not(:first-of-type),
.wp-block-woocommerce-empty-cart-block h3,
.wp-block-woocommerce-empty-cart-block ul,
.wp-block-woocommerce-empty-cart-block > p,
.wp-block-woocommerce-empty-cart-block .wp-block-button,
.wp-block-woocommerce-empty-cart-block .wp-block-paragraph + *,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    display: none !important;
}

/* Kontener – wyśrodkowany, przestronny */
.wp-block-woocommerce-empty-cart-block {
    text-align: center !important;
    padding: 64px 24px 80px !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Ikona – delikatna torba / serce */
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title svg,
.wc-block-cart__empty-cart__title svg {
    color: #E8DCDD !important;
    stroke: #E8DCDD !important;
    fill: none !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 28px !important;
    display: block !important;
}

/* "Twój koszyk jest obecnie pusty!" */
.wc-block-cart__empty-cart__title h2,
.wp-block-woocommerce-empty-cart-block h2:first-of-type {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(22px, 3vw, 34px) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: #2C2A29 !important;
    letter-spacing: -.01em !important;
    line-height: 1.25 !important;
    margin: 0 0 20px !important;
}

/* Podtytuł / delikatna zachęta */
.wp-block-woocommerce-empty-cart-block h2:first-of-type::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #DDA7A5;
    margin: 20px auto 0;
}

/* Link "Przeglądaj sklep" – tylko jeśli istnieje bezpośrednio w tytule */
.wc-block-cart__empty-cart__title a {
    display: inline-block !important;
    margin-top: 28px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .15em !important;
    color: #B87A7D !important;
    text-decoration: none !important;
    border-bottom: 1px solid #F0E4E5 !important;
    padding-bottom: 3px !important;
    transition: color .2s, border-color .2s !important;
}
.wc-block-cart__empty-cart__title a:hover {
    color: #A64B55 !important;
    border-color: #DDA7A5 !important;
}
