/* Cart specific styles */
.cart-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-title {
    font-size: 2.5rem;
    color: #00a7e6; /* Lighter blue */
    margin-bottom: 30px;
    grid-column: 1 / -1;
}

.cart-items {
    background: rgba(28, 28, 28, 0.95);
    border-radius: 15px;
    padding: 20px;
    min-height: 400px;
}

.empty-cart {
    text-align: center;
    padding: 40px;
}

.empty-cart p {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00a7e6; /* Lighter blue */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background-color: #0090cc;
    transform: scale(1.05);
}

.cart-summary {
    background: rgba(28, 28, 28, 0.95);
    border-radius: 15px;
    padding: 30px;
    height: fit-content;
}

.summary-header h2 {
    color: #00a7e6; /* Lighter blue */
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.summary-items {
    margin-bottom: 30px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-line.total {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00a7e6; /* Lighter blue */
}

.checkout-button {
    width: 100%;
    padding: 15px;
    background-color: #00a7e6; /* Lighter blue */
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-button:hover:not([disabled]) {
    background-color: #0090cc;
    transform: scale(1.05);
}

.checkout-button[disabled] {
    background-color: #4a4a4a;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Cart Icon Styles */
.cart-icon {
    position: relative;
    margin-right: 20px;
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-icon:hover, .cart-icon.active {
    color: #00a7e6; /* Lighter blue */
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #00a7e6; /* Lighter blue */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Cart Item Card Styles */
.cart-item-card {
    background: rgba(28, 28, 28, 0.95);
    border: 2px solid #1f1f1f;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    border-color: #00a7e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 230, 0.1);
}

.item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-type-icon {
    width: 100%;
    height: 100%;
    color: #00a7e6;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    color: #f5f5f5;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.item-type {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-transform: capitalize;
    margin-bottom: 10px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-btn {
    background: none;
    border: 2px solid #00a7e6;
    color: #00a7e6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.quantity-btn:hover {
    background: rgba(0, 167, 230, 0.1);
    transform: scale(1.1);
}

.modal-update-quantity{
    background-color: #00a7e6;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.modal-update-quantity:hover{
    background-color: #0090cc;
    transform: scale(1.05);
}

.modal-update-quantity:disabled{
    background-color: #4a4a4a;
    cursor: not-allowed;
    opacity: 0.7;
}

.quantity {
    font-size: 1.1rem;
    color: #f5f5f5;
    min-width: 30px;
    text-align: center;
}

.item-price {
    font-size: 1.2rem;
    color: #00a7e6;
    font-weight: bold;
    margin: 0 20px;
    min-width: 80px;
    text-align: right;
}

.remove-item {
    background: none;
    border: none;
    color: #f5f5f5;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.remove-item:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

/* Button Group Styles */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
}

.button-group button {
    flex: 1;
    max-width: 200px;
    min-width: 120px;
}

/* Details Button Styles */
.details-button {
    background: none;
    border: 2px solid #00a7e6;
    color: #00a7e6;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.details-button:hover {
    background: rgba(0, 167, 230, 0.1);
    transform: scale(1.05);
}

/* Buy and Add to Cart Button Styles */
.buy-button,
.add-to-cart-button {
    background-color: #00a7e6;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.buy-button:hover,
.add-to-cart-button:hover {
    background-color: #0090cc;
    transform: scale(1.05);
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 40px;
}

.empty-cart p {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-title {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .cart-item-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .item-icon {
        margin: 0 auto;
    }

    .quantity-controls {
        justify-content: center;
    }

    .item-price {
        margin: 15px 0;
        text-align: center;
    }

    .remove-item {
        margin-top: 10px;
    }
} 

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(28, 28, 28, 0.95);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 30px;
    border: 2px solid #00a7e6;
    margin: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #00a7e6;
    font-size: 1.8rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #00a7e6;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.modal-price {
    text-align: center;
    margin-bottom: 30px;
}

.modal-price span:first-child {
    font-size: 2rem;
    color: #00a7e6;
    font-weight: bold;
    margin-right: 10px;
}

.modal-price span:last-child {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.modal-description h3,
.modal-features h3 {
    color: #00a7e6;
    margin-bottom: 15px;
}

.modal-description p {
    color: #f5f5f5;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    color: #f5f5f5;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-footer {
    text-align: center;
}

.modal-add-to-cart {
    background-color: #00a7e6;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-add-to-cart:hover {
    background-color: #0090cc;
    transform: scale(1.05);
}

/* Price per unit styles */
.price-per-unit {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-price span:first-child {
        font-size: 1.6rem;
    }
} 

/* Login Button */
.login-button, #logout-button {
    text-decoration: none;
    color: #fff;
    background-color: #00a7e6;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.login-button:hover, #logout-button:hover {
    background-color: #0090cc;
    transform: scale(1.05);
}