.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block: 4rem;
}

.text-wrapper button {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.guess-container,
.guess-container-zero,
.delivery-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 80%;
    max-width: 1160px;

    margin-bottom: 2rem;
    margin-inline: auto;

    background-color: white;
    border-radius: 1rem;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.delivery-container {
    padding: 1.5rem;
}

.guess-container {
    margin-top: 2rem;
    padding-block: 2.2rem;
}

.guess-container-zero {
    margin-top: 0.5rem;
    padding-block: 4rem;
}

#cart-img {
    width: 17rem;
}

.texts-empty-cart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.texts-empty-cart h1 {
    font-size: 1.6rem;
}

.qtd-itens span {
    color: var(--blue);
}

.qtd-itens h1 {
    font-size: 1.8rem;
}

.texts-empty-cart p {
    margin-top: 0.8rem;

    width: 80%;
    text-align: center;
    font-weight: 500;
    color: gray;
    font-size: 1.1rem;
    line-height: 1.5rem;
}

.texts-empty-cart span {
    color: var(--blue);
}

.text-wrapper button {
    margin-top: 2.4rem;

    background-color: var(--blue);
    border: none;
    color: white;
    font-size: 1rem;
    padding-inline: 4rem;
    padding-block: 0.8rem;
    border-radius: 1rem;
    font-weight: 600;
}

.text-wrapper button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.text-wrapper button:hover::before {
    left: 100%;
}

.text-wrapper button:hover {
    background-color: color-mix(in srgb, var(--blue) 90%, black);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.section-cart {
    width: 100%;
    max-width: 1130px;

    height: 465px;
    margin: 3rem auto 2rem;

    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.134);
}

.opt-cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 80%;
    max-width: 1120px;
    margin-top: 0.7rem;
}

.qtd-itens {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-product {
    width: 40%;
    align-items: center;
    text-align: start;
    padding-left: 6.6rem;
    font-weight: bold;
}

.title {
    width: 20%;
}

table {
    padding: 0 3.5rem 0 0.2rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

tbody tr td {
    border-bottom: 1px solid #dedcdc !important;
}

tbody tr:last-child td {
    border-bottom: none !important;
}

th {
    font-size: 1.2rem;
}

.product-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.product-info img {
    width: 170px;
}

h6 {
    display: flex;
    flex-direction: column;
    text-align: start;
    gap: 0.3rem;
    width: 30%;
    margin-left: 1rem;
}

h6 a {
    font-size: 1rem;
    font-weight: 600;
}

h6 small {
    font-size: 0.8rem;
    color: rgb(171, 170, 170);
    text-transform: uppercase
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
}

.decrement-btn,
.increment-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.quantity-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-input input[type="number"] {
    text-align: center;
    font-size: 1.1rem;
    width: 50px;
    height: 36px;
    border: none;
    border-radius: 8px;
    padding: 0;
    -moz-appearance: textfield;
}

.quantity-input input[type="number"]::-webkit-inner-spin-button,
.quantity-input input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-subtotal {
    color: var(--blue);
}

.colored-toast {
    background: linear-gradient(135deg, #c0392b, #922b21) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.colored-toast .swal2-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.colored-toast .swal2-html-container {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.colored-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.4) !important;
}

.colored-toast .swal2-icon.swal2-error {
    border-color: #fff !important;
    color: #fff !important;
}

.colored-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #fff !important;
}

.swal-cancel-minimal {
    color: #718096 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.875rem !important;
}

.swal-cancel-minimal:hover {
    background-color: #f7fafc !important;
}

.swal-minimal {
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.swal-minimal .swal2-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
}

.swal-minimal .swal2-html-container {
    font-size: 1rem !important;
    color: #718096 !important;
}

.swal-minimal .swal2-icon {
    width: 3rem !important;
    height: 3rem !important;
    margin-bottom: 1rem !important;
}

.delivery-title {
    display: flex;
    flex-direction: row;
    padding: 1.2rem 0 1.2rem 2rem;
}

.delivery-title p {
    font-weight: bold;
    font-size: 1.3rem;
}

#cep-label {
    display: block;
    padding-left: 0.9rem;
    margin-bottom: 0.4rem;
}

.cart-summary {
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.cart-summary-row:first-child {
    border-bottom: 1px solid #e0e0e0;
}

.cart-summary-row strong {
    font-size: 1.1rem;
    color: #1a73e8;
}

.cart-summary-row.freight strong {
    color: #555;
    font-size: 1.1rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 180px;
}

.login-btn {
    background-color: transparent;
    border: 2px solid var(--blue);
    color: #1a73e8;
}

.login-btn:hover {
    background-color: rgba(26, 115, 232, 0.08);
    color: #1a73e8;
}

.register-btn {
    background-color: var(--blue);
    border: 2px solid var(--blue);
    color: #fff;
}

.register-btn:hover {
    background-color: #1557b0;
    border-color: #1557b0;
}

.text-center span {
    color: var(--blue);
}

#shipping-options {
    display: flex;
    flex-direction: column;
    text-align: start;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

#shipping-options h4 {
    font-weight: bold;
    color: black;
    margin-bottom: 1rem;
}

.frete {
    margin-top: 1rem !important;
}

.option {
    color: var(--blue) !important;
}

.freight-title {
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    width: 100%;
    padding-left: 16px;
}

.freight-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    width: 100%;
}

.freight-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.freight-card:has(input:checked) {
    border-color: var(--blue);
    background: #f0f4ff;
}

.freight-card input[type="radio"] {
    display: none;
}

.freight-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.freight-company {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2d3748;
}

.freight-name {
    font-size: 0.8rem;
    color: #718096;
}

.freight-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.freight-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
}

.freight-deadline {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#cep {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.875rem;
    color: #2d3748;
    cursor: pointer;
    width: 97.5%;
    display: block;
    margin: 0 auto;
    transition: border-color 0.2s ease;
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

#cep:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

@media (max-width: 768px) {
    .section-cart {
        width: 85%;
        max-width: 360px;
        margin: 0.5rem auto 0 auto;
        height: 435px;
        display: flex;
        flex-direction: column;
    }

    .section-title-text {
        color: black;
        font-size: 1.3rem;
        padding-left: 1rem;
        padding-top: 1rem;
        margin-bottom: 0.9rem;
    }

    .slick-next,
    .slick-prev {
        display: none !important;
    }

    #cart-img {
        width: 10rem;
    }

    .texts-empty-cart h1 {
        font-size: 1.1rem;
    }

    .guess-container-zero {
        padding-block: 2rem;
    }

    .texts-empty-cart p {
        font-size: 0.9rem;
        line-height: 1.3rem;
    }

    .text-wrapper {
        padding-block: 1.7rem;
    }

    .text-wrapper button {
        padding-inline: 2rem;
        font-size: 0.8rem;
    }

    .guess-container, .guess-container-zero, .delivery-container {
        width: 85%;
    }

    .row>* {
        padding: 0rem !important;
    }
}