
/* GAYA – nowy layout koszyka 1:1 do makiety */

body.woocommerce-cart {
    background: #FAFAFA;
}

.gaya-cart {
    max-width: 1160px;
    margin: 60px auto 80px;
    padding: 0 20px;
    font-size: 14px;
}

.gaya-cart__header {
    margin-bottom: 24px;
}

.gaya-cart__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px;
}

.gaya-cart__subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

.gaya-cart__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}

.gaya-cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gaya-cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(0,0,0,0.05);
}

.gaya-cart-item__image img {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.gaya-cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.gaya-cart-item__title {
    font-size: 16px;
    font-weight: 600;
}

.gaya-cart-item__title a {
    color: #111;
    text-decoration: none;
}

.gaya-cart-item__title a:hover {
    text-decoration: underline;
}

.gaya-cart-item__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}

.gaya-cart-item__price {
    font-weight: 600;
    white-space: nowrap;
}

.gaya-cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.gaya-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #E5E5E5;
    overflow: hidden;
}

.gaya-cart-item__qty .qty {
    border: none;
    width: 46px;
    text-align: center;
    padding: 8px 0;
    font-size: 15px;
    background: #FFF;
}

.gaya-qty-btn {
    border: none;
    background: #111;
    color: #FFF;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.gaya-qty-btn--minus {
    border-right: 1px solid #E5E5E5;
}

.gaya-qty-btn--plus {
    border-left: 1px solid #E5E5E5;
}

.gaya-cart-item__subtotal {
    font-weight: 600;
}

.gaya-cart-item__remove {
    margin-top: 8px;
}

.gaya-cart-item__remove-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.gaya-cart-item__remove-link:hover {
    color: #333;
}

.gaya-cart__total-inline {
    margin-top: 16px;
    font-weight: 600;
    text-align: right;
}

.gaya-cart__actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gaya-cart__coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gaya-cart__coupon .input-text {
    min-width: 200px;
}

.gaya-cart__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.gaya-cart__summary-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

.gaya-cart-totals {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

.gaya-cart-totals__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.gaya-cart-totals__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.gaya-cart-totals__label {
    color: #666;
}

.gaya-cart-totals__value {
    font-weight: 500;
}

.gaya-cart-totals__value--bold {
    font-size: 18px;
    font-weight: 700;
}

.gaya-cart-totals__points {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F1FFF4;
    border: 1px solid #C6EFD0;
}

.gaya-cart-totals__points-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.gaya-cart-totals__value-sub {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #2c7a3f;
}

.gaya-cart-totals__points-actions {
    margin-top: 4px;
}

.gaya-cart-totals__points-input {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.gaya-cart-totals__points-input input[type="number"] {
    width: 80px;
}

.gaya-cart-totals__discount {
    margin-bottom: 14px;
}

.gaya-cart-totals__discount .input-text {
    width: 100%;
}

.gaya-cart-totals__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.gaya-cart-totals__checkout .checkout-button {
    width: 100%;
    border-radius: 999px;
    background: #000;
    padding: 14px 18px;
    font-weight: 600;
}

.gaya-cart-totals__badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.gaya-cart-totals__badge::before {
    content: "• ";
}

.gaya-cross-sells {
    max-width: 1160px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.gaya-cross-sells__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.gaya-cross-sells__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.gaya-cross-sells__item {
    text-align: center;
}

@media (max-width: 960px) {
    .gaya-cart__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gaya-cart__summary {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .gaya-cart-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .gaya-cart-item__image img {
        width: 100px;
    }

    .gaya-cart {
        margin-top: 32px;
    }
}

/* === POPRAWKI 1:1 DO MAKIETY === */

/* Tytuł bez powtórzeń */
.gaya-cart__header {
    margin-bottom: 32px;
}

/* Ukryj legacy przyciski Woo (nie ma ich w makiecie) */
.gaya-cart__buttons--hidden {
    display: none;
}

/* Karta – trochę większe zaokrąglenie jak w projekcie */
.gaya-cart-item {
    border-radius: 20px;
}

/* Ilość – trzy oddzielne kółka: minus, liczba, plus */
.gaya-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.gaya-cart-item__qty .qty {
    border: none;
    width: 32px;
    text-align: center;
    padding: 0;
    font-size: 16px;
    background: transparent;
}

/* Okrągłe przyciski +/- jak w makiecie */
.gaya-qty-btn {
    border-radius: 999px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #111111;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gaya-qty-btn:hover {
    border-color: #111111;
}

/* Usuń kapsułkowe obramowanie po staremu */
.gaya-cart-item__qty .quantity::before,
.gaya-cart-item__qty .quantity::after {
    display: none;
}

/* Prawy panel – tytuł jak w makiecie */
.gaya-cart__summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Niebieskie Woo przyciski pod listą – na wszelki wypadek */
.woocommerce-cart .gaya-cart__actions .button {
    border-radius: 8px;
}
/* ==== PRAWY PANEL – 1:1 Z MAKIETY ==== */

.gaya-summary-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 24px 24px 26px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
    font-size: 14px;
}

.gaya-summary-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.gaya-summary-card__divider {
    height: 1px;
    background: #EDEDED;
    margin-bottom: 16px;
}

.gaya-summary-card__divider--spaced {
    margin: 18px 0;
}

.gaya-summary-card__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gaya-summary-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gaya-summary-card__label {
    color: #666666;
}

.gaya-summary-card__value {
    font-weight: 500;
}

/* Blok EkoPunktów */

.gaya-summary-card__points {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #F5FFF8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gaya-summary-card__points-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1FAE4F;
    font-weight: 600;
}

.gaya-summary-card__points-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #1FAE4F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.gaya-summary-card__points-right {
    text-align: right;
}

.gaya-summary-card__points-value {
    display: block;
    color: #1FAE4F;
    font-weight: 600;
}

.gaya-summary-card__points-money {
    display: block;
    font-size: 12px;
    color: #1FAE4F;
}

/* Pola "Wykorzystaj ekopunkty" / "Kod rabatowy" */

.gaya-summary-card__field {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gaya-summary-card__field .gaya-summary-card__label {
    flex: 0 0 auto;
}

.gaya-summary-card__input {
    flex: 1 1 auto;
}

.gaya-summary-card__input input[type="text"],
.gaya-summary-card__input input[type="number"] {
    width: 100%;
    border-radius: 10px;
}
/* ==== CHECKOUT – LAYOUT 2 KOLUMNY JAK NA MAKIETCE ==== */

body.woocommerce-checkout {
    background: #FAFAFA;
}

.gaya-checkout {
    max-width: 1290px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.gaya-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.gaya-checkout__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Produkty po lewej – mini karty */

.gaya-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.gaya-checkout-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.04);
}

.gaya-checkout-item__image img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.gaya-checkout-item__name a,
.gaya-checkout-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.gaya-checkout-item__name a:hover {
    text-decoration: underline;
}

.gaya-checkout-item__qty-price {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Pola adresowe – tylko kosmetyka, układ zostaje jak Woo */

.gaya-checkout__details .col2-set {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.gaya-checkout__details .woocommerce-billing-fields__field-wrapper,
.gaya-checkout__details .woocommerce-shipping-fields__field-wrapper {
    margin-top: 10px;
}

/* PRAWA KOLUMNA – kafelek podsumowania */

.gaya-checkout-sidebar__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.gaya-checkout-sidebar__card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 22px 22px 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

/* Ukryj nagłówek "Twoje zamówienie" Woo, bo mamy własny tytuł */
.gaya-checkout-sidebar__card #order_review_heading {
    display: none;
}

/* Tabela zamówienia trochę uproszczona */
.gaya-checkout-sidebar__card .shop_table {
    border: none;
    margin: 0 0 12px;
}

.gaya-checkout-sidebar__card .shop_table th,
.gaya-checkout-sidebar__card .shop_table td {
    border: none;
    padding: 4px 0;
    font-size: 13px;
}

.gaya-checkout-sidebar__card .shop_table tfoot th {
    font-weight: 500;
}

.gaya-checkout-sidebar__card .shop_table tfoot .order-total th {
    font-weight: 600;
}

.gaya-checkout-sidebar__card .shop_table tfoot .order-total td {
    font-size: 17px;
    font-weight: 700;
}

/* Czarny przycisk "Płać" – stylowanie przycisku Woo (#place_order) */

.gaya-checkout-sidebar__card #place_order {
    width: 100%;
    border-radius: 999px;
    background: #000000;
    border-color: #000000;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
}

/* Sekcja metod płatności – mniej bordera, bardziej "czysto" */

.gaya-checkout-sidebar__card #payment {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 8px 0 0;
}

.gaya-checkout-sidebar__card #payment ul.payment_methods {
    padding: 0;
}

.gaya-checkout-sidebar__card #payment ul.payment_methods li {
    padding: 5px 0;
}

/* Tekst pod przyciskiem – mniejsza czcionka */
.gaya-checkout-sidebar__card #payment .woocommerce-privacy-policy-text,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-number,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-expiry,
.gaya-checkout-sidebar__card #payment .wc-credit-card-form-card-cvc {
    font-size: 12px;
}

/* RWD */

@media (max-width: 960px) {
    .gaya-checkout__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .gaya-checkout-sidebar__card {
        margin-top: 10px;
    }

    .gaya-checkout__details .col2-set {
        grid-template-columns: minmax(0, 1fr);
    }
}
