

/* =========================================================
   Store Cart
   ========================================================= */

.store-cart-page {
    width: 100%;
    max-width: 1136px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   Cart Layout
   ========================================================= */

.store-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;

    direction: rtl;
}


/* =========================================================
   Heading
   ========================================================= */

.store-cart-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;

    margin-bottom: 18px;
}

.store-cart-heading h1 {
    margin: 0;

    font-size: 22px;
    font-weight: 700;

    color: #171717;
}

.store-cart-heading span {
    font-size: 12px;
    color: #888;
}


/* =========================================================
   Cart Items
   ========================================================= */

.store-cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-cart-item {
    display: flex;
    align-items: stretch;

    min-height: 130px;

    padding: 12px;

    background: #fff;

    border: 1px solid #e9e9e9;
    border-radius: 12px;

    box-sizing: border-box;

    direction: rtl;
}


/* تصویر */

.store-cart-item-image {
    width: 106px;
    min-width: 106px;
    height: 106px;

    overflow: hidden;

    border-radius: 8px;

    background: #f5f5f5;
}

.store-cart-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.store-cart-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa;
}

.store-cart-image-placeholder i {
    font-size: 28px;
}


/* محتوای محصول */

.store-cart-item-content {
    flex: 1;
    min-width: 0;

    padding: 5px 16px 4px;
}


/* عنوان + حذف */

.store-cart-item-top {
    display: flex;
    align-items: flex-start;

    gap: 15px;
}

.store-cart-item-top h2 {
    flex: 1;
    min-width: 0;

    margin: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;

    color: #222;
}

.store-cart-remove {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #aaa;

    cursor: pointer;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.store-cart-remove:hover {
    color: #d33;
    background: #fff1f1;
}

.store-cart-remove i {
    font-size: 16px;
}


/* اطلاعات محصول */

.store-cart-item-meta {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-top: 24px;
}

.store-cart-item-meta > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.store-cart-item-meta span {
    font-size: 11px;
    color: #999;
}

.store-cart-item-meta strong {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.store-cart-item-total {
    margin-right: auto;
}

.store-cart-item-total strong {
    color: #111;
}


/* =========================================================
   Summary
   ========================================================= */

.store-cart-summary {
    position: sticky;
    top: 20px;

    padding: 22px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 14px;

    box-sizing: border-box;
}

.store-cart-summary h2 {
    margin: 0 0 22px;

    font-size: 16px;
    font-weight: 700;

    color: #222;
}

.store-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 12px;
    color: #777;
}

.store-cart-summary-row strong {
    color: #222;
}

.store-cart-summary-divider {
    height: 1px;

    margin: 18px 0;

    background: #eee;
}

.store-cart-summary-total {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.store-cart-summary-total span {
    font-size: 12px;
    color: #777;
}

.store-cart-summary-total strong {
    font-size: 20px;
    color: #111;
}

.store-cart-summary-total small {
    font-size: 11px;
    font-weight: 400;
}

/* =========================================================
   Checkout
   ========================================================= */

.store-checkout {
    margin-top: 28px;

    padding: 28px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

.store-checkout-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 26px;
}

.store-checkout-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f5f5;
    color: #333;
}

.store-checkout-icon i {
    font-size: 18px;
}

.store-checkout-heading h2 {
    margin: 0 0 3px;

    font-size: 17px;
    font-weight: 700;

    color: #222;
}

.store-checkout-heading p {
    margin: 0;

    font-size: 12px;
    color: #888;
}


/* =========================================================
   Fields
   ========================================================= */

.store-checkout-fields {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.store-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.store-field-full {
    grid-column: 1 / -1;
}

.store-field label {
    font-size: 12px;
    font-weight: 600;

    color: #444;
}

.store-field input,
.store-field textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    color: #222;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.store-field input {
    height: 44px;
}

.store-field textarea {
    resize: vertical;
    min-height: 100px;
}

.store-field input:focus,
.store-field textarea:focus {
    border-color: #999;

    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}


/* =========================================================
   Checkout Footer
   ========================================================= */

.store-checkout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #eee;
}

.store-checkout-final-price {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.store-checkout-final-price span {
    font-size: 11px;
    color: #888;
}

.store-checkout-final-price strong {
    font-size: 18px;
    color: #111;
}

.store-checkout-final-price small {
    font-size: 10px;
    font-weight: 400;
}





/* =========================================================
   Empty Cart
   ========================================================= */

.store-cart-empty {
    min-height: 450px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.store-cart-empty-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: #f5f5f5;
    color: #888;
}

.store-cart-empty-icon i {
    font-size: 28px;
}

.store-cart-empty h1 {
    margin: 0 0 8px;

    font-size: 20px;
    color: #222;
}

.store-cart-empty p {
    margin: 0 0 20px;

    font-size: 13px;
    color: #888;
}

.store-cart-empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    border-radius: 8px;

    background: #111;
    color: #fff;

    text-decoration: none;

    font-size: 12px;
}

.store-cart-empty a:hover {
    color: #fff;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .store-cart-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .store-cart-layout {
        grid-template-columns: 1fr;
    }

    .store-cart-summary {
        position: static;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .store-cart-page {
        padding: 24px 10px 40px;
    }

    .store-cart-heading h1 {
        font-size: 19px;
    }

    .store-cart-item {
        min-height: 0;

        padding: 10px;
    }

    .store-cart-item-image {
        width: 82px;
        min-width: 82px;
        height: 82px;
    }

    .store-cart-item-content {
        padding: 2px 10px 2px;
    }

    .store-cart-item-top h2 {
        font-size: 13px;
        line-height: 1.6;
    }

    .store-cart-item-meta {
        gap: 12px;
        margin-top: 14px;
    }

    .store-cart-item-meta span {
        font-size: 10px;
    }

    .store-cart-item-meta strong {
        font-size: 10px;
    }

    .store-cart-item-total {
        margin-right: auto;
    }

    .store-cart-summary {
        padding: 18px;
    }

    .store-checkout {
        padding: 20px 16px;
        margin-top: 18px;
    }

    .store-checkout-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .store-field-full {
        grid-column: auto;
    }

    .store-checkout-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .store-checkout-final-price {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .store-checkout-submit {
        width: 100%;
    }
}