﻿.co-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #e8e8ed;
}

.co-header__title {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.4px;
    margin: 0 0 4px;
}

.co-header__sub {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
}

.co-empty {
    text-align: center;
    padding: 64px 20px;
}

.co-empty__icon {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
}

.co-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.co-empty p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 24px;
}

.co-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.co-badge--lg {
    font-size: 13px;
    padding: 6px 14px;
}

.co-badge--pending {
    background: #fff8e0;
    color: #9a6700;
}

.co-badge--success {
    background: #e6f4ea;
    color: #1a7f37;
}

.co-badge--cancelled {
    background: #f5f5f7;
    color: #6e6e73;
}

.co-badge--info {
    background: #e8f0fe;
    color: #1a73e8;
}

.co-cart {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.co-cart__items {
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    overflow: hidden;
}

.co-cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 0.5px solid #f5f5f7;
    transition: background 0.1s;
}

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

    .co-cart-row:hover {
        background: #fafafa;
    }

.co-cart-row__img-link {
    display: block;
    text-decoration: none;
}

.co-cart-row__img {
    width: 80px;
    height: 80px;
    background: #f5f5f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .co-cart-row__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

    .co-cart-row__img span {
        font-size: 28px;
    }

.co-cart-row__info {
    min-width: 0;
}

.co-cart-row__name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .co-cart-row__name:hover {
        color: #0071e3;
        text-decoration: none;
    }

.co-cart-row__cat {
    font-size: 11px;
    font-weight: 600;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.co-cart-row__unit {
    font-size: 12px;
    color: #aeaeb2;
    margin: 0;
}

.co-qty-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.co-qty {
    display: flex;
    align-items: center;
    border: 0.5px solid #e8e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.co-qty__btn {
    background: #f5f5f7;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}

    .co-qty__btn:hover {
        background: #e8e8ed;
    }

.co-qty__input {
    width: 42px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 0.5px solid #e8e8ed;
    border-right: 0.5px solid #e8e8ed;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    background: #fff;
    outline: none;
}

.co-qty__update {
    font-size: 11px;
    color: #0071e3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

    .co-qty__update:hover {
        text-decoration: underline;
    }

.co-cart-row__subtotal {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.co-cart-row__price {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.co-cart-row__remove {
    font-size: 11px;
    color: #ff3b30;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

    .co-cart-row__remove:hover {
        text-decoration: underline;
    }

.co-summary {
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 72px;
}

.co-summary__title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.co-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.co-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #3a3a3c;
}

.co-summary__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    color: #6e6e73;
}

.co-summary__val {
    font-weight: 500;
    flex-shrink: 0;
}

.co-summary__divider {
    height: 0.5px;
    background: #e8e8ed;
    margin: 14px 0;
}

.co-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.co-summary__checkout {
    margin-bottom: 8px;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 14px !important;
}

.co-summary__clear {
    margin-bottom: 16px;
    border-radius: 10px !important;
    padding: 10px !important;
    font-size: 13px !important;
}

.co-summary__continue {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #0071e3;
    text-decoration: none;
}

    .co-summary__continue:hover {
        text-decoration: underline;
    }

.co-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-order-card {
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .co-order-card:hover {
        border-color: #0071e3;
        box-shadow: 0 2px 12px rgba(0,113,227,0.08);
    }

.co-order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 0.5px solid #f5f5f7;
    background: #fafafa;
}

.co-order-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.co-order-card__num {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.co-order-card__date {
    font-size: 12px;
    color: #aeaeb2;
}

.co-order-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.co-order-card__thumbs {
    display: flex;
    gap: 6px;
}

.co-order-card__thumb {
    width: 48px;
    height: 48px;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .co-order-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }

    .co-order-card__thumb span {
        font-size: 20px;
    }

.co-order-card__thumb--more {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    background: #f0f0f0;
}

.co-order-card__info {
    flex: 1;
}

.co-order-card__items {
    font-size: 12px;
    color: #aeaeb2;
    margin-bottom: 2px;
}

.co-order-card__total {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.co-detail {
    max-width: 740px;
}

.co-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.co-detail__title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.co-detail__date {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
}

.co-detail__section {
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.co-detail__section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    padding: 14px 20px;
    border-bottom: 0.5px solid #f5f5f7;
    background: #fafafa;
    margin: 0;
}

.co-detail__items {
    display: flex;
    flex-direction: column;
}

.co-detail-row {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 0.5px solid #f5f5f7;
}

    .co-detail-row:last-child {
        border-bottom: none;
    }

.co-detail-row__img {
    width: 64px;
    height: 64px;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .co-detail-row__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

    .co-detail-row__img span {
        font-size: 24px;
    }

.co-detail-row__name {
    font-size: 13.5px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}

    .co-detail-row__name:hover {
        color: #0071e3;
    }

.co-detail-row__cat {
    font-size: 10px;
    font-weight: 600;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.co-detail-row__qty {
    text-align: center;
}

.co-detail-row__qty-label {
    display: block;
    font-size: 10px;
    color: #aeaeb2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.co-detail-row__qty-val {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.co-detail-row__price {
    text-align: right;
}

.co-detail-row__unit {
    font-size: 11px;
    color: #aeaeb2;
    margin-bottom: 2px;
}

.co-detail-row__sub {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.co-detail__total {
    background: #fff;
    border: 0.5px solid #e8e8ed;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.co-detail__total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #3a3a3c;
    margin-bottom: 8px;
}

    .co-detail__total-row:last-child {
        margin-bottom: 0;
    }

.co-detail__free {
    color: #1a7f37;
    font-weight: 500;
}

.co-detail__divider {
    height: 0.5px;
    background: #e8e8ed;
    margin: 12px 0;
}

.co-detail__total-row--final {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.co-detail__actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 860px) {
    .co-cart {
        grid-template-columns: 1fr;
    }

    .co-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .co-cart-row {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .co-cart-row__qty {
        grid-column: 2;
    }

    .co-cart-row__subtotal {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .co-detail-row {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }

    .co-detail-row__qty,
    .co-detail-row__price {
        grid-column: 2;
    }

    .co-order-card__thumbs {
        display: none;
    }
}
