body {
    background: #f5f6f8;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.cart-page {
    min-height: 100vh;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-subtitle {
    color: #6c757d;
    font-size: 15px;
}

.cart-store-card,
.cart-summary-card,
.mobile-summary-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.cart-store-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f2;
}

.cart-store-header h5 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.cart-store-footer {
    padding: 18px 24px;
    border-top: 1px solid #eef0f2;
    background: #fcfcfd;
    border-radius: 0 0 12px 12px;
}

.cart-item {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f2;
    align-items: flex-start;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-check {
    padding-top: 8px;
}

.cart-item-image {
    width: 140px;
    min-width: 140px;
}

.cart-item-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ececec;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 18px;
    color:#0474A0;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 11px;
    color: #6c757d;
    margin: 0px !important;
}

.cart-item-price-area {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cart-old-price {
    font-size: 14px;
    color: #8b8f94;
    text-decoration: line-through;
    /*margin-bottom: 4px;*/
}

.cart-price {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    /*margin-bottom: 6px;*/
}

.cart-discount-badge {
    display: inline-block;
    background: #e8fff1;
    color: #159447;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #fff;
    font-size: 24px;
    color: #1f6feb;
    cursor: pointer;
    outline: none;
}

.qty-btn:hover {
    background: #f5f8ff;
}

.qty-input {
    width: 56px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    background: #fff;
}

.btn-action-link {
    border: none;
    background: transparent;
    color: #1f6feb;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.btn-action-link:hover {
    text-decoration: underline;
}
.cart-summary-col {
    position: relative;
    align-self: flex-start;
}

.cart-summary-sticky {
    position: relative;
    min-height: 1px;
}

#cartSummaryCard.summary-fixed {
    position: fixed;
    top: 20px;
    z-index: 1030;
}

#cartSummaryCard.summary-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
}

@media (max-width: 991.98px) {
    .cart-summary-col {
        align-self: auto;
    }

    #cartSummaryCard,
    #cartSummaryCard.summary-fixed,
    #cartSummaryCard.summary-bottom {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
    }
}
.cart-summary-card {
    padding: 22px;
}

.cart-summary-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.summary-row {
    font-size: 16px;
    margin-bottom: 14px;
}

.summary-total {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
}

.mobile-summary-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-summary-info {
    display: flex;
    flex-direction: column;
}

.mobile-summary-info small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.2;
}

.mobile-summary-info strong {
    font-size: 18px;
    line-height: 1.2;
}

.mobile-summary-btn {
    min-width: 130px;
}

.mobile-summary-collapse {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 72px;
    z-index: 1029;
    padding: 12px;
}

.mobile-summary-content {
    padding: 18px;
}

@media (max-width: 991.98px) {
    .cart-page {
        padding-bottom: 100px;
    }

    .cart-title {
        font-size: 28px;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .cart-item-image {
        width: 110px;
        min-width: 110px;
    }

    .cart-item-main {
        flex-direction: column;
    }

    .cart-item-price-area {
        min-width: auto;
    }

    .cart-item-title {
        font-size: 15px;
    }

    .cart-price {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .cart-store-header,
    .cart-store-footer {
        padding: 16px;
    }

    .cart-store-header h5 {
        font-size: 21px;
    }

    .cart-item {
        padding: 16px;
        position: relative;
        align-items: flex-start;
    }

    .cart-item-check {
        width: 100%;
        padding-top: 0;
    }

    .cart-item-image {
        width: 90px;
        min-width: 90px;
    }

    .cart-item-body {
        position: relative;
        width: 100%;
        min-width: 0;
        /*padding-bottom: 58px;  espaço reservado para os botões */
    }

    .cart-item-main {
        display: block;
    }

    .cart-item-info {
        min-width: 0;
        width: 100%;
    }

    .cart-item-title {
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .cart-item-meta {
        font-size: 11px;
    }

    .cart-item-price-area {
        min-width: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        margin-top: 10px;
        /*padding-right: 145px;  reserva a área dos botões */
    }

    .cart-old-price {
        text-align: right;
        margin-bottom: 2px;
    }

    .cart-price {
        font-size: 24px;
        text-align: right;
        margin-bottom: 6px;
    }

    .cart-discount-badge {
        text-align: right;
        display: none;
    }

    .cart-item-actions {
        position: absolute;
        left: -105px;
        bottom: 13px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 0;
        flex-wrap: nowrap;
        width: auto;
    }

    .qty-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .qty-input {
        width: 15px;
        height: 38px;
        font-size: 15px;
    }

    .btn-remove-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-remove-icon {
    width: 42px;
    height: 42px;
    border: 1px solid #f1c6c6;
    background: #fff5f5;
    color: #d93025;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-remove-icon:hover {
    background: #ffe9e9;
    border-color: #e8a8a8;
    color: #b42318;
}

.btn-remove-icon svg {
    display: block;
}

.btn-frete-opcao {
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #222;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin: 4px 6px 4px 0;
    transition: all 0.2s ease;
}

.btn-frete-opcao:hover {
    border-color: #0d6efd;
}

.btn-frete-opcao.ativo {
    background: #f5c022;
    color: #fff;
    border-color: #f5c022;
}

.frete-card-box {
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.frete-card-header {
    border-bottom: 1px solid #eef1f4;
    padding-bottom: 12px;
}

.frete-card-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #08387a;
}

.frete-card-header small {
    color: #6c757d;
    font-size: 13px;
}

.frete-input-group .form-control {
    min-height: 44px;
    border-radius: 8px 0 0 8px;
}

.btn-calcular-frete {
    min-width: 110px;
    background-color: #0474A0;
    border-color: #0474A0;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

.btn-calcular-frete:hover {
    background-color: #035d80;
    border-color: #035d80;
}

.resultado-frete {
    text-align: center;
    padding-top: 12px;
    margin: 0 auto;
    width: 100%;
}

.btn-frete-opcao {
    border: 1px solid #d6dce2;
    background: #fff;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-frete-opcao:hover {
    border-color: #7ec8ff;
    box-shadow: 0 0 8px rgba(126, 200, 255, 0.35);
}

.btn-frete-opcao.ativo {
    background: #0474A0;
    color: #fff;
    border-color: #0474A0;
}

@media (max-width: 767.98px) {
    .frete-card-box {
        padding: 14px;
        border-radius: 12px;
    }

    .frete-card-header h5 {
        font-size: 16px;
    }

    .frete-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .frete-input-group .form-control {
        width: 100%;
        border-radius: 8px !important;
    }

    .btn-calcular-frete {
        width: 100%;
        border-radius: 8px !important;
    }

    .btn-frete-opcao {
        width: 100%;
        margin: 5px 0;
    }
}