/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

.cart-notification i {
    font-size: 18px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Page Styles */
.cart-container {
    padding: 40px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    background-color: #080808;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    word-break: break-word;
}

.cart-table tr:hover {
    background-color: #f5f5f5;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.cart-item-price {
    color: #d4a574;
    font-weight: 600;
    white-space: nowrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #d4a574;
    background-color: white;
    color: #d4a574;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: bold;
}

.quantity-control button:hover {
    background-color: #d4a574;
    color: white;
}

.quantity-control input {
    width: 50px;
    height: 30px;
    border: 1px solid #d4a574;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
    font-size: 14px;
}

.remove-btn {
    background-color: #e74c3c !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s !important;
    font-size: 14px;
    white-space: nowrap;
}

.remove-btn:hover {
    background-color: #c0392b !important;
}

.cart-summary {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-summary-row span:first-child {
    min-width: 80px;
}

.cart-summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #d4a574;
    padding: 20px 0;
    margin-top: 10px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-continue-shopping {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px !important;
    border: 2px solid #d4a574 !important;
    background-color: white !important;
    color: #d4a574 !important;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease !important;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}

.btn-continue-shopping:hover {
    background-color: #d4a574 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-checkout {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px !important;
    border: none !important;
    background-color: #d4a574 !important;
    color: white !important;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease !important;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}

.btn-checkout:hover {
    background-color: #b8975a !important;
    transform: translateY(-2px);
}

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

.empty-cart-icon {
    font-size: 80px;
    color: #d4a574;
    margin-bottom: 20px;
}

.empty-cart-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.btn-continue-shopping-empty {
    display: inline-block;
    background-color: #d4a574;
    color: white;
    padding: 12px 30px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
}

.btn-continue-shopping-empty:hover {
    background-color: #b8975a;
    transform: translateY(-2px);
}

/* Responsive Styles for Tablets and Below */
@media (max-width: 1024px) {
    .cart-table th,
    .cart-table td {
        padding: 12px;
        font-size: 13px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-summary {
        margin-top: 30px;
        margin-left: 0;
    }
}

/* Responsive Styles for Tablets (768px and below) - Card Layout */
@media (max-width: 768px) {
    .cart-table {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
        background: white;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .cart-table td:last-child {
        border-bottom: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        text-align: left;
        flex: 0 0 40%;
        margin-right: 10px;
    }

    .cart-table td:first-child {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .cart-table td:first-child::before {
        display: none;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border-radius: 4px 4px 0 0;
    }

    .cart-item-name {
        font-size: 14px;
        padding: 12px;
        display: block;
    }

    .cart-item-price {
        display: block;
    }

    .quantity-control {
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: flex-end;
    }

    .quantity-control input {
        width: 45px;
        height: 30px;
    }

    .quantity-control button {
        width: 30px;
        height: 30px;
    }

    .remove-btn {
        background-color: #e74c3c !important;
        color: white !important;
        padding: 8px 15px !important;
        font-size: 12px;
    }

    .cart-summary {
        padding: 20px;
        margin-top: 20px;
    }

    .cart-summary-row {
        font-size: 13px;
        padding: 10px 0;
    }

    .cart-summary-row.total {
        font-size: 16px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-continue-shopping,
    .btn-checkout {
        width: 100%;
        min-width: unset;
        padding: 12px 15px !important;
    }
}

/* Responsive Styles for Mobile (480px and below) */
@media (max-width: 480px) {
    .cart-container {
        padding: 20px 0;
    }

    .cart-table {
        font-size: 11px;
        margin-bottom: 20px;
        display: block;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 12px;
        text-align: right;
    }

    .cart-table td:last-child {
        border-bottom: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        text-align: left;
        flex: 0 0 35%;
        margin-right: 8px;
        font-size: 11px;
    }

    .cart-table td:first-child {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .cart-table td:first-child::before {
        display: none;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: cover;
        border-radius: 4px 4px 0 0;
    }

    .cart-item-name {
        font-size: 12px;
        padding: 10px;
        display: block;
        width: 100%;
    }

    .cart-item-price {
        font-size: 12px;
    }

    .quantity-control {
        display: flex;
        align-items: center;
        gap: 3px;
        justify-content: flex-end;
    }

    .quantity-control input {
        width: 35px;
        height: 26px;
        font-size: 11px;
        padding: 2px;
    }

    .quantity-control button {
        width: 24px;
        height: 26px;
        font-size: 12px;
        padding: 0;
    }

    .remove-btn {
        padding: 8px 10px !important;
        font-size: 11px;
    }

    .cart-summary {
        padding: 15px;
        margin-top: 15px;
    }

    .cart-summary-row {
        font-size: 11px;
        padding: 6px 0;
    }

    .cart-summary-row span {
        font-size: 11px;
    }

    .cart-summary-row.total {
        font-size: 13px;
        padding: 12px 0;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-continue-shopping,
    .btn-checkout {
        width: 100%;
        min-width: unset;
        padding: 12px 15px !important;
        font-size: 12px;
    }

    .empty-cart {
        padding: 40px 15px;
    }

    .empty-cart-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .empty-cart-text {
        font-size: 18px;
    }

    .empty-cart-desc {
        font-size: 12px;
        margin-bottom: 20px;
    }
}
