/**
 * CSS Pour le panier
 * Author: GBI
 */
/* Ligne Divi qui contient le panier */
.tc-cart-ligne {
    box-shadow: 0 10px 30px rgba(55,42,28,.08);
    border-radius: 4px;
    backdrop-filter: blur(2px);
}
/* Block panier */
.tc-cart-inner {
    width: 100%;
}
/* Titre */
.tc-cart-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 38px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 500;
    color: #2f261f;
    letter-spacing: -0.5px;
}
/* Icone Titre */
.tc-cart-title-icon {
    width: 42px;
    height: 42px;
    fill: #b08a4b;
    transform: translateY(3px);
    flex-shrink: 0;
}
.tc-cart-title-icon-cut {
    fill: #b08a4b;
}
/* Layout Récap et Livraison*/
.tc-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
    gap: 32px;
    align-items: start;
    align-items: stretch;
}
/* Zone Récap commande */
.tc-cart-left {
    padding-right: 28px;
    border-right: 1px solid rgba(151, 121, 78, 0.22);
    display: flex;
    flex-direction: column;
    gap:18px;
}
/* Zone Livraison */
.tc-cart-right {
    min-width: 0;
}
/* Titre Récap et Livraison */
.tc-cart-section-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(151, 121, 78, 0.22);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 500;
    color: #2f261f;
}
/* Place holder */
.tc-cart-placeholder {
    min-height: 240px;
    padding: 22px;
    border: 1px dashed rgba(151, 121, 78, 0.35);
    color: #8b7a68;
    font-size: 15px;
}
@media (max-width: 980px) {
    .tc-cart-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .tc-cart-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(151, 121, 78, 0.22);
    }
    .tc-cart-section-title {
        font-size: 26px;
    }
}
@media (max-width: 600px) {
    .tc-cart-section-title {
        font-size: 23px;
    }
}
/**
 * Partie Récapitulatif commande 
 */
/* Container produit*/
.tc-cart-product {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 105px;
    gap: 18px;
    align-items: stretch;
    padding: 18px 0 22px;
    border-bottom: 1px solid rgba(151, 121, 78, 0.18);
    flex: 1;
}
.tc-cart-product:first-child {
    padding-top: 0;
}
.tc-cart-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
/* Image */
.tc-cart-product-image {
    height: 100%;
}
.tc-cart-product-image img {
    width: 118px;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    border-radius: 5px;
}
/* Titre */
.tc-cart-product-title {
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #2f261f;
}
.tc-cart-product-title a {
    color: #2f261f;
    text-decoration: none;
}
.tc-cart-product-title a:hover {
    color: #b08a4b;
}
/* Sous titre */
.tc-cart-product-subtitle {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.35;
    color: #5f5146;
}
/* Prix */
.tc-cart-product-meta {
    margin-top: 4px;
    font-size: 14px;
    color: #7d6f63;
}
/* Zone actions */
.tc-cart-product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
/* Quantité / Unité */
.tc-cart-qty-wrap {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid rgba(151, 121, 78, 0.35);
    border-radius: 5px;
    overflow: hidden;
    background: #fffaf3;
    width: 160px;
}
/* Quantité */
.tc-cart-qty-wrap .quantity {
    margin: 0 !important;
    height: 40px;
    flex: 1;
    width: auto !important;
    display: flex !important;
}
.tc-cart-qty-wrap .quantity input.qty {
    height: 40px !important;
    padding: 0 8px !important;
    border: none !important;
    background: #fffaf3 !important;
    text-align: center;
    font-size: 17px;
    line-height: 40px;
    color: #2f261f;
    width: 100% !important;
    flex: 1;
    box-sizing: border-box;
}
/* Unité */
.tc-cart-unit {
    display: flex;
    align-items: center;
    min-width: 52px;
    height: 40px;
    padding: 0 12px;
    background: #f1e5d5;
    border-left: 1px solid rgba(151, 121, 78, 0.25);
    font-size: 14px;
    font-weight: 600;
    color: #5d5147;
}
/* Corbeille */
.tc-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 40px;
    margin-left: 4px;
    color: #9b2f22;
    text-decoration: none;
    opacity: .85;
    transform: translateY(-2px);
}
.tc-cart-remove svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.tc-cart-remove-cut {
    fill: #fcfaf6;
}
.tc-cart-remove:hover {
    color: #7d2017;
    opacity: 1;
}
/* Sous total */
.tc-cart-product-total {
    min-width: 105px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    padding-bottom: 4px;
}
.tc-cart-product-total span {
    margin-bottom: 4px;
}
.tc-cart-product-loading {
    opacity: .55;
    pointer-events: none;
}
/**
 * Partie Livraison
 */
.tc-cart-shipping-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
/* Mode de livraison */
.tc-cart-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tc-cart-shipping-option {
    display: grid;
    grid-template-columns: 22px 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(151, 121, 78, 0.16);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.72);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tc-cart-shipping-option.is-selected {
    border-color: #b08a4b;
    box-shadow: 0 8px 22px rgba(55, 42, 28, 0.08);
    background: rgba(255, 250, 243, 0.95);
}
.tc-cart-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #b08a4b;
    border-radius: 50%;
    position: relative;
}
.tc-cart-shipping-option.is-selected .tc-cart-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #b08a4b;
}
.tc-cart-shipping-icon {
    font-size: 30px;
    color: #9d7a43;
    margin-top: 8px;
}
.tc-cart-shipping-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.tc-cart-shipping-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f2df;
    color: #3f6b34;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.tc-cart-shipping-title {
    font-weight: 800;
    color: #2f261f;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 15px;
    letter-spacing: .2px;
}
.tc-cart-shipping-price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2f261f;
}
.tc-cart-shipping-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: #6c5e52;
}
.tc-cart-shipping-badge.warning {
    background: #f7ead0;
    color: #8a6226;
}
.tc-cart-shipping-badge.free {
    background: #e6f2df;
    color: #3f6b34;
}
.tc-cart-shipping-option {
    cursor: pointer;
}
.tc-cart-shipping-option input[type="radio"] {
    display: none;
}
.tc-cart-shipping-icon svg {
    width: 42px;
    height: 42px;
    fill: #b08a4b;
}
.tc-svg-cut {
    fill: #fcfaf6;
}
.tc-cart-shipping-content {
    padding-right: 8px;
}
.tc-cart-shipping-text {
    margin-top: 7px;
    line-height: 1.5;
}
.tc-cart-shipping-title,
.tc-cart-shipping-price {
    line-height: 1.25;
}
.tc-cart-shipping-price {
    font-size: 15px;
}
@media (max-width: 980px) {
    .tc-cart-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .tc-cart-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(151, 121, 78, 0.22);
    }
    .tc-cart-right {
        padding-left: 0;
    }
    .tc-cart-main-title {
        font-size: 34px;
    }
    .tc-cart-section-title {
        font-size: 24px;
    }
    .tc-cart-product {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .tc-cart-product-total {
        grid-column: 2;
        align-items: flex-start;
        text-align: left;
        margin-top: 8px;
    }
    .tc-cart-product-image img {
        width: 96px;
        min-height: 120px;
    }
    .tc-cart-shipping-option {
        grid-template-columns: 22px 38px minmax(0, 1fr);
        padding: 16px;
    }
    .tc-cart-shipping-topline {
        flex-wrap: wrap;
        gap: 7px;
    }
}
@media (max-width: 600px) {
    .tc-cart-main-title {
        font-size: 28px;
        gap: 8px;
    }
    .tc-cart-title-icon {
        width: 34px;
        height: 34px;
    }
    .tc-cart-product {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }
    .tc-cart-product-image img {
        width: 82px;
        min-height: 112px;
    }
    .tc-cart-product-title {
        font-size: 16px;
    }
    .tc-cart-product-subtitle,
    .tc-cart-product-meta {
        font-size: 13px;
    }
    .tc-cart-product-actions {
        flex-wrap: wrap;
    }
    .tc-cart-qty-wrap {
        width: 145px;
    }
    .tc-cart-shipping-option {
        grid-template-columns: 20px 34px minmax(0, 1fr);
        gap: 10px;
        padding: 15px 13px;
    }
    .tc-cart-shipping-icon svg {
        width: 32px;
        height: 32px;
    }
    .tc-cart-shipping-title {
        font-size: 14px;
    }
    .tc-cart-shipping-price {
        font-size: 14px;
    }
    .tc-cart-shipping-text {
        font-size: 12.5px;
    }
    .tc-cart-shipping-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}
/**
 * PARTIE CIRCUIT COURT
 */
.tc-cart-circuit-short {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 150px;
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding: 22px 26px;
    min-height: 150px;
    border: 1px solid rgba(176, 138, 75, 0.28);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 50%, rgba(176, 138, 75, 0.10), transparent 34%),
        linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(246, 236, 222, 0.58));
    box-shadow: 0 8px 22px rgba(55, 42, 28, 0.05);
    margin-top: auto;
}
.tc-cart-circuit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-cart-circuit-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.tc-cart-circuit-content {
    min-width: 0;
}
.tc-cart-circuit-title {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    color: #2f261f;
    text-transform: none;
}
.tc-cart-circuit-text {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5146;
}
.tc-cart-circuit-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.tc-cart-circuit-image img {
    width: 108px;
    max-height: 78px;
    object-fit: contain;
    filter: saturate(.94) contrast(.98);
}
@media (max-width: 700px) {
    .tc-cart-circuit-short {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 20px;
    }
    .tc-cart-circuit-image {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 6px;
    }
    .tc-cart-circuit-image img {
        width: 130px;
    }
}
/***
 *
 *
 * PARTIE BASSE
 *
 ***/
.tc-cart-bottom {
    margin-top: 34px;
    padding: 14px;
    border: 1px solid rgba(151, 121, 78, 0.18);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.72);
    display: grid;
    grid-template-columns: minmax(280px, 34%) minmax(240px, 28%) minmax(320px, 38%);
    gap: 24px;
    align-items: stretch;
    padding: 18px;
}
.tc-cart-bottom-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 6px;
}
.tc-cart-bottom-reinsurance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    border-right: 1px solid rgba(151, 121, 78, 0.18);
    padding-right: 24px;
}
.tc-cart-bottom-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: center;
}
.tc-cart-bottom-icons div {
    padding: 0 8px;
    border-right: 1px solid rgba(151, 121, 78, 0.18);
}
.tc-cart-bottom-icons div:last-child {
    border-right: none;
}
.tc-cart-bottom-icons span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border: 1px solid #b08a4b;
    border-radius: 50%;
    color: #b08a4b;
    font-size: 23px;
}
.tc-cart-bottom-icons strong {
    font-size: 13px;
    line-height: 1.35;
    color: #2f261f;
}
.tc-cart-bottom-checks {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tc-cart-bottom-checks li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 14px;
    color: #2f261f;
}
.tc-cart-bottom-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    color: #b08a4b;
    font-weight: 800;
}
.tc-cart-bottom-checks {
    margin: 0;
    padding: 0;
    list-style: none !important;
}
.tc-cart-bottom-checks li {
    list-style: none !important;
}
.tc-cart-bottom-checks li::marker {
    content: "";
}
.tc-cart-bottom-total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 10px 4px 0;
    min-width: 0px;
    overflow: hidden;
}
.tc-cart-total-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 14px;
    color: #2f261f;
}
.tc-cart-total-line strong {
    white-space: nowrap;
}
.tc-cart-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(151, 121, 78, 0.28);
    flex-wrap: wrap;
}
.tc-cart-total-final span {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2f261f;
}
.tc-cart-total-final strong {
    font-weight: 800;
    color: #9d7a43;
    white-space: nowrap;
    font-size: clamp(32px, 2vw, 48px);
    line-height: 1;
    letter-spacing: -1px;
}
.tc-cart-final-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 56px;
    margin-top: 18px;
    padding: 0 20px;
    border-radius: 6px;
    background: #b08a4b;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(55, 42, 28, 0.16);
}
.tc-cart-final-button:hover {
    background: #9d7a43;
}
.tc-cart-final-button::before {
    display: none;
}
.tc-cart-bottom-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}
.tc-cart-bottom-icon-item {
    position: relative;
    text-align: center;
    padding: 0 14px;
}
.tc-cart-bottom-icon-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 1px;
    height: 78px;
    background: rgba(151, 121, 78, 0.18);
}
.tc-cart-bottom-icon-item img {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    object-fit: contain;
}
.tc-cart-bottom-icon-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: #2f261f;
}
.tc-bottom-svg-cut {
    fill: #fcfaf6;
}
.tc-cart-total-final strong,
.tc-cart-total-estimated {
    display: block;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #9d7a43;
    white-space: nowrap;
    letter-spacing: -1px;
}
.tc-cart-total-final .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
.tc-cart-total-final .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}
@media (max-width: 980px) {
    .tc-cart-bottom {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 16px;
    }

    .tc-cart-bottom-image img {
        min-height: 260px;
    }

    .tc-cart-bottom-reinsurance {
        border-right: none;
        border-bottom: 1px solid rgba(151, 121, 78, 0.18);
        padding-right: 0;
        padding-bottom: 22px;
    }

    .tc-cart-bottom-total {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .tc-cart-bottom {
        margin-top: 28px;
        padding: 14px;
    }

    .tc-cart-bottom-image img {
        min-height: 190px;
    }

    .tc-cart-bottom-icons {
        gap: 8px;
    }

    .tc-cart-bottom-icon-item {
        padding: 0 6px;
    }

    .tc-cart-bottom-icon-item img {
        width: 46px;
        height: 46px;
    }

    .tc-cart-bottom-icon-item strong {
        font-size: 12px;
    }

    .tc-cart-bottom-checks li {
        font-size: 13px;
    }

    .tc-cart-total-final {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .tc-cart-total-final strong {
        font-size: 36px;
    }

    .tc-cart-final-button {
        height: 52px;
        font-size: 14px;
        white-space: normal;
        padding: 0 14px;
    }
}
/**
 * Panier vide
 */
.tc-empty-cart {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
}

.tc-empty-cart-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(176, 138, 75, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-empty-cart-icon svg {
    width: 42px;
    height: 42px;
}

.tc-empty-cart h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    color: #2f261f;
}

.tc-empty-cart p {
    max-width: 480px;
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #6c5e52;
}

.tc-empty-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 6px;
    background: #b08a4b;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(55, 42, 28, 0.14);
}

.tc-empty-cart-button:hover {
    background: #9d7a43;
}