/* ==========================================================
   PURESCREEN - PANIER WOOCOMMERCE
========================================================== */

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

body.woocommerce-cart .ps-cart-page {
    max-width: 1540px;
    margin: 0 auto;
    padding: 70px 40px 95px;
    color: #ffffff;
}

.ps-cart-header {
    text-align: center;
    margin-bottom: 48px;
}

.ps-cart-kicker {
    display: block;
    color: #ff0000;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.ps-cart-header h1 {
    color: #ffffff;
    font-size: clamp(46px, 4vw, 70px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.ps-cart-header h1::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    background: #ff0000;
    margin: 22px auto 0;
    border-radius: 20px;
}

.ps-cart-header p {
    color: #ffffff;
    font-size: 16px;
    margin-top: 22px;
}

.ps-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: start;
}

.ps-cart-products {
    width: 100%;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.ps-cart-products-head {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 140px 170px 150px;
    gap: 24px;
    padding: 22px 32px;
    background: #e60000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-cart-products-head span:not(:first-child) {
    text-align: center;
}

.ps-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 140px 170px 150px;
    gap: 24px;
    align-items: center;
    padding: 30px 32px;
    border-bottom: 1px solid #333333;
}

.ps-cart-item-product {
    display: grid;
    grid-template-columns: 32px 105px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.ps-cart-remove a.remove {
    color: #ff0000 !important;
    background: transparent !important;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
}

.ps-cart-thumb img {
    width: 105px !important;
    height: 105px !important;
    object-fit: cover;
    border-radius: 8px;
    background: #ffffff;
}

.ps-cart-product-info a,
.ps-cart-product-info strong {
    display: block;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}

.ps-cart-product-meta {
    display: block;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
}

.ps-cart-price,
.ps-cart-quantity,
.ps-cart-subtotal {
    text-align: center;
}

.ps-cart-price,
.ps-cart-subtotal {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.ps-cart-subtotal {
    color: #ff0000;
}

.ps-cart-quantity .quantity {
    display: inline-flex;
    justify-content: center;
    margin: 0 !important;
}

.ps-cart-quantity .qty {
    width: 84px !important;
    height: 52px !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

.ps-cart-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
    background: #141414;
}

.ps-cart-coupon label {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ps-cart-coupon > div {
    display: flex;
    gap: 12px;
}

.ps-cart-coupon input {
    width: 210px !important;
    height: 48px;
    background: #111111;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 6px;
    padding: 0 14px;
}

.ps-cart-coupon button,
.ps-update-cart {
    height: 48px !important;
    background: #1f1f1f !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    border-radius: 6px !important;
    padding: 0 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

.ps-cart-coupon button:hover,
.ps-update-cart:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}

.ps-cart-summary {
    position: sticky;
    top: 120px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.ps-cart-summary h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.ps-cart-summary-box {
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
}

.ps-cart-summary .cart_totals {
    width: 100% !important;
    float: none !important;
}

.ps-cart-summary .cart_totals h2 {
    display: none;
}

.ps-cart-summary table.shop_table {
    width: 100%;
    border: none !important;
    margin: 0 !important;
}

.ps-cart-summary table.shop_table th,
.ps-cart-summary table.shop_table td {
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 12px 0 !important;
    font-size: 16px;
}

.ps-cart-summary table.shop_table td {
    text-align: right;
    font-weight: 900;
}

.ps-cart-summary table.shop_table .order-total th,
.ps-cart-summary table.shop_table .order-total td {
    color: #ff0000 !important;
    font-size: 22px;
    padding-top: 24px !important;
}

.ps-cart-summary .wc-proceed-to-checkout {
    padding: 24px 0 0 !important;
}

.ps-cart-summary .checkout-button {
    width: 100% !important;
    height: 58px;
    background: #ff0000 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.35);
}

.ps-cart-summary .checkout-button:hover {
    background: #ffffff !important;
    color: #111111 !important;
}

.ps-cart-reassurance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
    border-top: 1px solid #333333;
    border-left: 1px solid #333333;
}

.ps-cart-reassurance div {
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    padding: 15px;
    color: #ffffff;
    font-size: 13px;
}

.ps-cart-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.ps-cart-help strong {
    display: block;
    color: #ff0000;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ps-cart-help span {
    display: block;
    color: #d5d5d5;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ps-cart-help a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.ps-cart-help a:hover {
    color: #ff0000;
}

.woocommerce-cart .wc-stripe-cart-checkout-container,
.woocommerce-cart .wc-stripe-checkout-banner-gateway,
.woocommerce-cart .wc-stripe-express-checkout-element,
.woocommerce-cart .wc-stripe-express-checkout,
.woocommerce-cart #wc-stripe-payment-request-wrapper,
.woocommerce-cart #wc-stripe-payment-request-button,
.woocommerce-cart .stripe-link-button {
    display: none !important;
}

@media (max-width: 1180px) {
    .ps-cart-layout {
        grid-template-columns: 1fr;
    }

    .ps-cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    body.woocommerce-cart .ps-cart-page {
        padding: 45px 20px 80px;
    }

    .ps-cart-products-head {
        display: none;
    }

    .ps-cart-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ps-cart-item-product {
        grid-template-columns: 28px 82px minmax(0, 1fr);
    }

    .ps-cart-thumb img {
        width: 82px !important;
        height: 82px !important;
    }

    .ps-cart-price,
    .ps-cart-quantity,
    .ps-cart-subtotal {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ps-cart-price::before {
        content: "Prix";
        color: #ffffff;
        font-weight: 900;
    }

    .ps-cart-quantity::before {
        content: "Quantité";
        color: #ffffff;
        font-weight: 900;
    }

    .ps-cart-subtotal::before {
        content: "Total";
        color: #ffffff;
        font-weight: 900;
    }

    .ps-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-cart-coupon > div {
        flex-direction: column;
    }

    .ps-cart-coupon input,
    .ps-cart-coupon button,
    .ps-update-cart {
        width: 100% !important;
    }

    .ps-cart-reassurance {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   CORRECTION LARGEUR PANIER PURESCREEN
========================================================== */

body.woocommerce-cart #primary,
body.woocommerce-cart .site-main,
body.woocommerce-cart main,
body.woocommerce-cart .woocommerce {
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-cart .ps-cart-page {
    width: 100% !important;
    max-width: 1500px !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

body.woocommerce-cart .ps-cart-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(760px, 1fr) 420px !important;
    gap: 36px !important;
}

body.woocommerce-cart .ps-cart-products {
    width: 100% !important;
}

body.woocommerce-cart .ps-cart-products-head,
body.woocommerce-cart .ps-cart-item {
    grid-template-columns: minmax(420px, 1.8fr) 140px 170px 150px !important;
}

body.woocommerce-cart .ps-cart-item-product {
    grid-template-columns: 32px 110px minmax(260px, 1fr) !important;
}

body.woocommerce-cart .ps-cart-product-info a,
body.woocommerce-cart .ps-cart-product-info strong {
    font-size: 17px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
}

body.woocommerce-cart .ps-cart-price,
body.woocommerce-cart .ps-cart-quantity,
body.woocommerce-cart .ps-cart-subtotal {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.woocommerce-cart .ps-cart-products-head span {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.woocommerce-cart .ps-cart-products-head span:first-child {
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 1180px) {
    body.woocommerce-cart .ps-cart-layout {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-cart .ps-cart-page {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

/* FORCE LARGEUR PANIER + COLONNE TOTAL */

body.woocommerce-cart .ps-cart-page {
    width: min(1500px, calc(100vw - 80px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}

body.woocommerce-cart .ps-cart-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 36px !important;
    align-items: start !important;
}

body.woocommerce-cart .ps-cart-products-head,
body.woocommerce-cart .ps-cart-item {
    grid-template-columns: minmax(0, 1.7fr) 140px 160px 150px !important;
}

body.woocommerce-cart .ps-cart-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 1180px) {
    body.woocommerce-cart .ps-cart-page {
        width: calc(100vw - 40px) !important;
    }

    body.woocommerce-cart .ps-cart-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   FIX PANIER - COLONNES STABLES
========================================================== */

body.woocommerce-cart .ps-cart-products-head,
body.woocommerce-cart .ps-cart-item {
    grid-template-columns: minmax(0, 1.45fr) 105px 120px 105px !important;
    gap: 14px !important;
}

body.woocommerce-cart .ps-cart-item-product {
    grid-template-columns: 28px 82px minmax(0, 1fr) !important;
    gap: 16px !important;
    min-width: 0 !important;
}

body.woocommerce-cart .ps-cart-thumb img {
    width: 82px !important;
    height: 82px !important;
}

body.woocommerce-cart .ps-cart-product-info {
    min-width: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-cart .ps-cart-product-info a,
body.woocommerce-cart .ps-cart-product-info strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
}

body.woocommerce-cart .ps-cart-product-meta {
    font-size: 11px !important;
}

body.woocommerce-cart .ps-cart-price,
body.woocommerce-cart .ps-cart-quantity,
body.woocommerce-cart .ps-cart-subtotal {
    min-width: 0 !important;
    white-space: nowrap !important;
}

/* Bouton commander panier */
body.woocommerce-cart .ps-cart-summary .checkout-button,
body.woocommerce-cart .ps-cart-summary a.checkout-button {
    background: #ff0000 !important;
    color: #ffffff !important;
}

body.woocommerce-cart .ps-cart-summary .checkout-button:hover,
body.woocommerce-cart .ps-cart-summary a.checkout-button:hover {
    background: #ffffff !important;
    color: #111111 !important;
}

