/* Cart Page Styles */
.cart-main {
    padding: 40px 0;
    background-color: var(--light-gray);
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-header h1 {
    color: var(--text-color);
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.btn-share,
.btn-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-share:hover {
    background-color: var(--accent-color);
}

.btn-clear {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-clear:hover {
    background-color: var(--danger);
    color: var(--white);
}

/* Filter and Sort */
.filter-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.filter-group,
.sort-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label,
.sort-group label {
    color: var(--text-color);
    font-weight: 500;
}

.filter-category,
.filter-brand,
.filter-price,
.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-category:hover,
.filter-brand:hover,
.filter-price:hover,
.sort-select:hover {
    border-color: var(--primary-color);
}

.filter-category:focus,
.filter-brand:focus,
.filter-price:focus,
.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.cart-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.cart-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.item-image {
    position: relative;
}

.item-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.remove-item {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    background-color: var(--danger);
    color: var(--white);
}

.stock-status {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    background-color: var(--light-success);
    color: var(--success);
}

.stock-status.low-stock {
    background-color: var(--light-warning);
    color: var(--warning);
}

.stock-status.out-of-stock {
    background-color: var(--light-danger);
    color: var(--danger);
}

.item-details {
    padding: 20px;
}

.item-brand {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.item-name {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.category {
    color: var(--text-light);
    font-size: 14px;
}

.rating {
    color: var(--text-color);
    font-size: 14px;
}

.rating i {
    color: var(--warning);
    margin-right: 5px;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    color: var(--text-color);
    font-weight: bold;
    font-size: 18px;
}

.original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 14px;
}

.discount {
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
}

.item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-cart,
.btn-buy,
.btn-notify {
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-cart:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-buy {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-buy:hover {
    background-color: var(--accent-color);
}

.btn-notify {
    grid-column: 1 / -1;
    background-color: var(--light-primary);
    border: none;
    color: var(--primary-color);
}

.btn-notify:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-browse {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-browse:hover {
    background-color: var(--accent-color);
}

/* Similar Products */
.similar-products {
    margin-bottom: 60px;
}

.similar-products h2 {
    color: var(--text-color);
    margin-bottom: 30px;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist:hover {
    background-color: var(--danger);
    color: var(--white);
}

.btn-wishlist.active i {
    font-weight: 900;
    color: var(--danger);
}

.product-details {
    padding: 15px;
}

.product-brand {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 5px;
}

.product-name {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-price {
    color: var(--text-color);
    font-weight: bold;
}

/* Modals */
.share-modal,
.clear-modal,
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active,
.clear-modal.active,
.notification-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.share-btn.facebook {
    background-color: #1877F2;
    color: var(--white);
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: var(--white);
}

.share-btn.copy {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.share-btn:hover {
    opacity: 0.9;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-confirm,
.btn-cancel {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

.btn-confirm:hover {
    background-color: var(--accent-color);
}

.btn-cancel {
    background: none;
    border: 1px solid var(--gray);
    color: var(--text-color);
}

.btn-cancel:hover {
    border-color: var(--text-color);
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    border-color: var(--text-color);
}

.notification-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .filter-sort {
        flex-direction: column;
        gap: 20px;
    }

    .filter-group,
    .sort-group {
        width: 100%;
    }

    .filter-category,
    .filter-brand,
    .filter-price,
    .sort-select {
        flex: 1;
    }
}

@media screen and (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .share-options {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .filter-group {
        flex-direction: column;
    }

    .filter-category,
    .filter-brand,
    .filter-price,
    .sort-select {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

.btn-checkout {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-checkout i {
    font-size: 1.2em;
}

.btn-checkout:hover {
    background: #5b21b6;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(124,58,237,0.16);
}

.recommendation-section {
    background: #fff;
    border-radius: 12px;
    margin-top: 36px;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.recommendation-section h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 18px;
}

.recommendation-placeholder {
    color: #aaa;
    font-style: italic;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.recommendation-grid .product-card {
    background: #fafbff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 320px;
}

.recommendation-grid .product-card:hover {
    box-shadow: 0 4px 16px rgba(124,58,237,0.10);
    transform: translateY(-2px) scale(1.03);
}

.recommendation-grid .product-image {
    width: 100%;
    height: 120px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recommendation-grid .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.recommendation-grid .product-info {
    padding: 12px 14px 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommendation-grid .brand {
    font-size: 0.95em;
    color: #7c3aed;
    font-weight: 500;
    margin-bottom: 2px;
}

.recommendation-grid .product-name {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 6px;
    color: #222;
    min-height: 36px;
}

.recommendation-grid .price {
    font-size: 1em;
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 8px;
}

.recommendation-grid .original-price {
    font-size: 0.95em;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 6px;
}

.recommendation-grid .btn-buy {
    background: #7c3aed !important;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 0;
    font-size: 1em;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    display: block;
    width: 100%;
    transition: background 0.2s;
}

.recommendation-grid .btn-buy:hover {
    background: #5b21b6 !important;
} 