@import url('components.css');

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.cart-icon {
    position: relative;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}



.cart-container {
    display: flex;
    gap: 20px;
    font-family: var(--basic_font_2);
    margin-top: 35px;
    margin-bottom: 150px;
}
.item-description {
    margin-bottom: 30px;
    font-size: 16px;
}
.cart-items {
    flex: 3;
}

.cart-summary {
    font-size: 16px;
    flex: 1;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    height: fit-content;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-image {
    object-fit: cover;
    height: 180px;
    position: relative;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
}

.href-item-title {
    color: #050505;
    text-decoration: none;
}

.href-item-title:hover {
    color: rgb(104, 6, 196);
}

.item-price {
    color: #050505;
    font-weight: bold;
    margin: 10px 0;
}

.explanation {
    font-family: var(--basic_font_2);
    font-weight: 100;
    color: rgb(138, 138, 138)
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector {
    height: 25px;
    width: 93px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    float: left;
    margin-bottom: 15px;
}

.quantity-selector-hide {
    display: none; 
}

.quantity-selector button {
    background: #f1f1f1;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: #dddddd;
}

.quantity-selector button:active {
    background: #a0a0a0;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.remove-btn {
    font-family: var(--basic_font_2);
    font-size: 15px;
    background: none;
    border: none;
    color: #fd1c03;
    cursor: pointer;
    font-weight: 600;
}

.remove-btn:hover {
    color: #fd1c03;
}

.summary-title {

    font-weight: bold;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-btn:disabled {
    opacity: 0.5;
}

.checkout-btn:disabled:hover {
    background: #22a759;
}

.total-row {
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.checkout-btn {
    font-family: var(--basic_font_2);
    width: 100%;
    padding: 12px;
    background-color: #22b352;
    font-weight: 700;
    color:rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.checkout-btn-disabled {
    font-family: var(--basic_font_2);
    width: 100%;
    padding: 12px;
    background-color: #22b352;
    font-weight: 800;
    color:rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: auto;
    margin-top: 20px;
    transition: background 0.3s;
    opacity: 0.7;
}

.use_bonuses {
   color: #22b352; 
   font-weight: 600;
   transition: all 0.3s;
}

.use_bonuses:hover {
    color: #1c8f42;
}

.cart-items-count {
    color: #666;
    font-size: 16px;
    margin-left: 10px;
}

.cart-header {
    font-family: var(--basic_font_2);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.cart-title {
    font-size: 26px;
    color: #2c3e50;
    margin: 0;
}

.checkout-btn:hover {
    background: #249c4c;
}

.continue-shopping {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
}

.continue-shopping:hover {
    color: #346d92;
}

.empty-cart {
    font-family: var(--basic_font_2);
    text-align: center;
    padding: 50px 0;
}

.empty-cart h2 {
    font-size: 22px;
}

.empty-cart-icon {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn_2 {
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 35px;
    padding-right: 35px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    flex: 1;
    text-align: center;
    text-decoration: none;
    background: #1b61e4;
    color: white;
}

.btn_2:hover {
    background: #1650bb;
}

.clear-cart-btn:hover {
    background-color: #f9e6e6;
}

.fdwwhkiu31 {
    padding-top: 30px;
}

@media screen and (max-width: 940px) {
    .cart-container {
        display: block;
    }
}  

@media screen and (max-width: 430px) {
    .cart-items-count {
        display: block;
    }
    .clear-cart-btn {
        display: block;
    }
}

@media screen and (max-width: 350px) {
    .item-image {
        height: 150px;
    }
    .item-title {
        font-size: 16px;
}    
}