

* {
    box-sizing: border-box;
}

header {
    background-color: #fff !important;
    color: #000 !important;
}

header .logo {
    filter: brightness(0);
}

body {
    margin: 0;
    font-family: 'Damas Font', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    padding-top: 120px;
    padding-bottom: 60px;
}

.page-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.section-title {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.cart-card {
    background: #fff;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-img {
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    flex-shrink: 0;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-info {
    flex: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.product-price-unit {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 10px;
    color: #000;
}

.product-meta {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    min-width: 150px;
}

.row-total-price {
    font-weight: 800;
    font-size: 16px;
    color: #000;
}

.qty-selector {
    display: flex;
    border: 1px solid #ddd;
    height: 40px;
    width: 110px;
    background: #fff;
    margin-top: -10px;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 35px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: #000;
}

.qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    outline: none;
}

.btn-delete {
    background: none;
    border: none;
    color: #bbb;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.btn-delete:hover {
    color: #e62624;
    text-decoration: underline;
}

.summary-card {
    background: #fff;
    padding: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
}

.summary-divider {
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

.total-row {
    font-weight: 800;
    font-size: 18px;
    color: #000;
    margin-bottom: 5px;
    align-items: flex-end;
}

.taxes-info {
    font-size: 12px;
    color: #333;
    margin-bottom: 30px;
}

.btn-cube-red {
    display: inline-block;
    background-color: #eb3b3b;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transform: skewX(-20deg);
    transition: background 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-cube-red span {
    display: block;
    transform: skewX(20deg);
}

.btn-cube-red:hover {
    background-color: #d62c2c;
}

.summary-btn-container {
    text-align: right;
}

.cart-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.back-link {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.back-link span {
    font-size: 18px;
    margin-right: 5px;
    margin-top: -3px;
}

.qty-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.stock-error-msg {
    color: #e02b2b;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    margin-top: 8px;
    display: none;
    line-height: 1.3;
    text-align: left;
    max-width: 200px;
    align-self: flex-end;
}

.btn-cube-red.disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed;
    pointer-events: none;
    transform: skewX(-20deg) !important;
    box-shadow: none;
}

.promo-container {
    margin-top: 40px;
}

.promo-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.promo-box {
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
}

.promo-input {
    flex: 1;
    height: 45px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    margin-right: 15px;
}

.promo-input::placeholder {
    color: #ccc;
    font-style: italic;
}

.btn-cube-black {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: white;
    text-decoration: none;
    padding: 0 25px;
    height: 45px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transform: skewX(-20deg);
    transition: background 0.3s;
    margin-left: 0;
}

.btn-cube-black span {
    display: block;
    transform: skewX(20deg);
    margin-top: 2px;
}

.btn-cube-black:hover {
    background-color: #333;
}

.promo-msg {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    padding-left: 20px;
}

.promo-msg.error {
    color: #e02b2b;
}

.promo-msg.success {
    color: #28a745;
}

.summary-row.promo-active-row {
    color: #e62624;
    font-weight: 700;
    margin-top: 5px;
    align-items: center;
}

.promo-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-remove-promo {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-top: -2px;
    transition: color 0.2s;
}

.btn-remove-promo:hover {
    color: #000;
}

.promo-amount {
    white-space: nowrap;
}

/* --- TA VERSION AMÉLIORÉE POUR LA CLARTÉ --- */
.info-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00ecff, #00b4d8);
    color: #000 !important;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    margin-left: 10px;
    cursor: help;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 236, 255, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    vertical-align: middle;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
}

.info-bubble::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    padding: 12px 16px;
    background-color: rgba(15, 15, 15, 0.98); 
    color: #ffffff !important;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Arial', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    white-space: normal;
}

.info-bubble::before {
    content: "";
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(15, 15, 15, 0.98) transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.info-bubble:hover::after, 
.info-bubble:hover::before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes bubble-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 236, 255, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(0, 236, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 236, 255, 0); }
}

.info-bubble {
    animation: bubble-pulse 2s infinite;
}

.taxes-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.promo-title {
    display: flex;
    align-items: center;
}