/* ============================================
   CART PAGE - CLEAN & PROFESSIONAL
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */
.cartPage {
    padding: 32px 0;
    font-family: 'Mulish', sans-serif;
    background-color: transparent;
    flex: 1;
}

.cartPage_container {display: flex; flex-direction: column; gap: 32px;}

/* ============================================
   CART TITLE (как на index.html)
   ============================================ */
.cart_title {width: 100%;}

.cart_title_text {font-family: 'Unbounded', sans-serif; font-size: 24px; font-weight: 500; line-height: 18px; color: #181818;}

/* ============================================
   CART CONTENT (2 COLUMNS)
   ============================================ */
.cartContent {display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start;}

/* ============================================
   CART ITEMS (LEFT COLUMN)
   ============================================ */
.cartItems {display: flex; flex-direction: column; gap: 8px;}

/* Cart Item */
.cartItem {
    position: relative;
    padding: 16px;
    display: flex; align-items: center; gap: 24px;
    border-radius: 12px;
    background-color: #FFFFFF;
    box-shadow: inset 0 0 0 1px #EFEFEF;
    transition: box-shadow 0.2s ease;
}

.cartItem:hover {
    box-shadow: inset 0 0 0 1px #FFADC7;
}

.cartItem:first-child {border-radius: 24px 24px 12px 12px;}

.cartItem:last-child {border-radius: 12px 12px 24px 24px;}

.cartItem:only-child {border-radius: 24px;}  /* ✅ ЕСЛИ ЭЛЕМЕНТ ОДИН */

/* Блок 1: Информация (фото + текст) */
.cartItem_infoBlock {flex: 1; display: flex; gap: 16px;}

.cartItem_image {
    width: 100px; height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #F8F8F8;
    overflow: hidden;
}

.cartItem_image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cartItem_info {
    padding: 12px 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cartItem_name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #181818;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cartItem_name a {
    color: #181818;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cartItem_name a:hover {color: #FF2469;}

.cartItem_desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #555555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Блок 2: Действия (количество + цена) */
.cartItem_actionsBlock {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cartItem_quantity {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
}

.cartQty_btn {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cartQty_btn img {
    width: 20px;
    height: 20px;
}

.cartQty_btn:hover {
    background-color: #EFEFEF;
}

.cartQty_input {
    width: 50px;
    height: 48px;
    text-align: center;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #181818;
    border: none;
    background-color: transparent;
    outline: none;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cartQty_input::-webkit-outer-spin-button,
.cartQty_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cartItem_priceBlock {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cartItem_priceOld {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 11px;
    color: #AAAAAA;
    text-decoration: line-through;
}

.cartItem_price {
    flex-shrink: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 17px;
    color: #181818;
    min-width: 100px;
    text-align: right;
}

/* Кнопка редактирования открыток */
.cartItem_editBtn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    background-color: #F8F8F8;
    border: none;
    border-radius: 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #181818;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cartItem_editBtn:hover {
    background-color: #EFEFEF;
}

.cartItem_editBtn img {
    width: 20px;
    height: 20px;
}

/* Блок 3: Кнопка удалить */
.cartItem_remove {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: #AAAAAA;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cartItem_remove:hover {
    background-color: #FFF5F8;
    color: #FF2469;
}

/* ============================================
   CART SIDEBAR (RIGHT COLUMN - STICKY)
   ============================================ */
.cartSidebar {
    position: sticky; top: 32px;
    display: flex; flex-direction: column; gap: 8px;
}

/* Cart Block */
.cartBlock {
    padding: 32px;
    display: flex; flex-direction: column; gap: 32px;
    border-radius: 24px 24px 12px 12px;
    background-color: #FFFFFF;
    box-shadow: inset 0 0 0 1px #EFEFEF;
}

.cartBlock_title {font-family: 'Mulish', sans-serif; font-size: 20px; font-weight: 700; line-height: 14px; color: #181818;}

.cartBlock_content {display: flex; flex-direction: column; gap: 16px;}

/* Order Rows */
.cartOrder_rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cartOrder_row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cartOrder_label {
    font-size: 16px;
    font-weight: 600;
    line-height: 11px;
    color: #181818;
}

.cartOrder_count {
    color: #555555;
}

.cartOrder_line {
    flex: 1;
    height: 1px;
    background-color: #F5F5F5;
}

.cartOrder_value {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 11px;
    color: #181818;
}

.cartOrder_discount {
    color: #FF2469;
}

/* Order Divider */
.cartOrder_divider {
    width: 100%; height: 1px; margin: 16px 0;
    background-color: #E9E9E9;
}

/* Order Total */
.cartOrder_total {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cartOrder_total_label {
    font-size: 16px;
    font-weight: 800;
    line-height: 11px;
    color: #181818;
}

.cartOrder_total_line {
    flex: 1;
    height: 1px;
    background-color: #F5F5F5;
}

.cartOrder_total_value {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 11px;
    color: #181818;
}

/* Submit Button */
.cartSubmit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background-color: #FF2469;
    border-radius: 12px 12px 24px 24px;
    border: none;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.cartSubmit:hover {
    background-color: #FF0050;
    border-radius: 24px;
}

.cartSubmit svg {
    flex-shrink: 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.cartEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 80px 20px;
}

.cartEmpty_icon {
    width: 120px;
    height: 120px;
}

.cartEmpty_title {
    font-size: 28px;
    font-weight: 700;
    color: #181818;
}

.cartEmpty_text {
    font-size: 16px;
    font-weight: 400;
    color: #AAAAAA;
}

.cartEmpty_button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 40px;
    background-color: #FF2469;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, border-radius 0.25s ease;
}

.cartEmpty_button:hover {
    background-color: #FF0050;
    border-radius: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .cartPage {
        padding: 24px 12px;
    }

    .cartContent {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cartSidebar {
        position: static;
    }

    .cartHeader_title {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cartPage {
        padding: 20px 12px;
    }

    .cartPage_container {
        gap: 16px;
    }

    .cart_title_text {
        font-size: 18px;
        line-height: 14px;
    }

    .cartContent {
        gap: 12px;
    }

    .cartItems {
        gap: 6px;
    }

    /* Mobile Layout: Column */
    .cartItem {
        flex-direction: column; align-items: normal;
        gap: 16px;
        padding: 16px;
    }

    .cartItem_infoBlock {
        gap: 12px;
    }

    .cartItem_image {
        width: 80px;
        height: 80px;
    }

    .cartItem_name {
        font-size: 16px;
    }

    .cartItem_desc {
        font-size: 13px;
    }

    .cartItem_actionsBlock {
        justify-content: space-between;
        gap: 16px;
    }

    .cartQty_btn {
        width: 36px;
        height: 44px;
    }

    .cartQty_input {
        width: 45px;
        height: 44px;
        font-size: 15px;
    }

    .cartItem_price {
        font-size: 18px;
        min-width: auto;
    }

    .cartItem_remove {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    /* Summary Mobile */
    .cartSidebar {
        gap: 12px;
    }

    .cartBlock {
        gap: 24px;
        padding: 24px 16px;
        border-radius: 16px !important;
    }

    .cartBlock_title {
        font-size: 18px;
    }

    .cartBlock_content {
        gap: 12px;
    }

    .cartOrder_rows {
        gap: 12px;
    }

    .cartOrder_label,
    .cartOrder_value {
        font-size: 14px;
    }

    .cartOrder_total_label,
    .cartOrder_total_value {
        font-size: 14px;
    }

    .cartSubmit {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 16px !important;
    }

    .cartSubmit:hover {
        border-radius: 16px !important;
    }

    /* Empty State Mobile */
    .cartEmpty {
        padding: 60px 20px;
        gap: 20px;
    }

    .cartEmpty_icon {
        width: 100px;
        height: 100px;
    }

    .cartEmpty_title {
        font-size: 24px;
    }

    .cartEmpty_text {
        font-size: 15px;
    }

    .cartEmpty_button {
        height: 52px;
        padding: 0 32px;
        font-size: 16px;
    }
}

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */
/* Стили мобильной навигации вынесены в mobile-fixes.css для централизованного управления */

