/* Cart UI Styles - Modern Luxury Design */

/* Header Cart Icon */
.header-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--gray-700, #374151);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.header-cart-icon:hover {
    color: var(--primary, #1b5a7a);
    background: rgba(27, 90, 122, 0.1);
    transform: scale(1.05);
}

.header-cart-icon i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.header-cart-icon:hover i {
    transform: scale(1.1);
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.cart-count-badge.hidden {
    display: none;
}

.header-cart-icon:hover .cart-count-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Cart Page Layout */
.cart-page-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cart-title i {
    color: var(--accent, #6ac8c6);
    font-size: 2rem;
}

.cart-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600, #6b7280);
    margin: 0;
}

/* Cart Table Wrapper */
.cart-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

/* Product Info in Cart */
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-product-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
}

.cart-product-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600, #6b7280);
}

/* Quantity Input */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary, #1b5a7a);
    box-shadow: 0 0 0 3px rgba(27, 90, 122, 0.1);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-600, #6b7280);
}

.quantity-btn:hover {
    border-color: var(--primary, #1b5a7a);
    color: var(--primary, #1b5a7a);
    transform: scale(1.1);
}

/* Remove Button */
.cart-remove-btn {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Price Display */
.cart-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
}

/* Cart Totals */
.cart-totals-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cart-totals-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cart-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.cart-totals-table th,
.cart-totals-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-totals-table th {
    text-align: left;
    font-weight: 600;
    color: var(--gray-700, #374151);
}

.cart-totals-table td {
    text-align: right;
    font-weight: 600;
    color: var(--gray-900, #111827);
}

.cart-totals-table .order-total th,
.cart-totals-table .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 90, 122, 0.4);
    color: white;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--gray-400, #9ca3af);
    margin-bottom: 1.5rem;
}

.empty-cart-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin-bottom: 1rem;
}

.empty-cart-message {
    font-size: 1.1rem;
    color: var(--gray-600, #6b7280);
    margin-bottom: 2rem;
}

.continue-shopping-btn {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 90, 122, 0.4);
    color: white;
}

/* Recommended Products */
.recommended-products {
    margin-top: 3rem;
}

.recommended-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
    margin-bottom: 2rem;
    text-align: center;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommended-product {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommended-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recommended-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recommended-product-info {
    padding: 1.5rem;
}

.recommended-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recommended-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
    margin-bottom: 1rem;
}

.recommended-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.recommended-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 90, 122, 0.4);
}

/* Mini Cart Drawer Styles */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.mini-cart-drawer.open {
    right: 0;
    pointer-events: auto;
}

.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.mini-cart-open {
    overflow: hidden;
}

/* Mini Cart Content Styles */
.mini-cart-luxury {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-cart-header {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mini-cart-item-luxury {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.mini-cart-item-luxury:last-child {
    border-bottom: none;
}

.item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    line-height: 1.4;
}

.item-name a {
    color: inherit;
    text-decoration: none;
}

.item-name a:hover {
    color: var(--primary, #1b5a7a);
}

.item-meta {
    font-size: 0.8rem;
    color: var(--gray-600, #6b7280);
    margin-bottom: 0.5rem;
}

.item-price-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
}

.item-quantity {
    font-size: 0.9rem;
    color: var(--gray-600, #6b7280);
}

.item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.remove-item-btn {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    pointer-events: auto;
}

.remove-item-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.mini-cart-total {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
}

.total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #1b5a7a);
}

.mini-cart-actions {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-cart-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    pointer-events: auto;
    cursor: pointer;
}

.mini-cart-btn-primary {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
}

.mini-cart-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 90, 122, 0.4);
    color: white;
}

.mini-cart-btn-secondary {
    background: white;
    color: var(--primary, #1b5a7a);
    border: 2px solid var(--primary, #1b5a7a);
}

.mini-cart-btn-secondary:hover {
    background: var(--primary, #1b5a7a);
    color: white;
}

/* Empty Mini Cart */
.mini-cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--gray-400, #9ca3af);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin-bottom: 0.5rem;
}

.empty-message {
    font-size: 1rem;
    color: var(--gray-600, #6b7280);
    margin-bottom: 2rem;
}

.btn-shop-mini {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-shop-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 90, 122, 0.4);
    color: white;
}

/* Add to Cart Buttons */
.single_add_to_cart_button,
.add_to_cart_button {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: linear-gradient(135deg, #063e7f 0%, #022d5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 62, 127, 0.4);
    color: white;
}

.single_add_to_cart_button:disabled,
.add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.single_add_to_cart_button i,
.add_to_cart_button i {
    font-size: 0.875rem;
}

/* Product Actions Modern */
.product-actions-modern {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-actions-main {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Style the buttons inside product-actions-main */
.product-actions-main .single_add_to_cart_button,
.product-actions-main .add_to_cart_button,
.product-actions-main .btn {
    background: linear-gradient(135deg, #022d5f 0%, #063e7f 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.product-actions-main .single_add_to_cart_button:hover,
.product-actions-main .add_to_cart_button:hover,
.product-actions-main .btn:hover {
    background: linear-gradient(135deg, #063e7f 0%, #022d5f 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(6, 62, 127, 0.3) !important;
}

/* Button View Options */
.btn-view-options,
.btn-view-product {
    background: white;
    color: #1b5a7a;
    border: 2px solid #1b5a7a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-view-options:hover,
.btn-view-product:hover {
    background: #1b5a7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 90, 122, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 1rem 0;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-table-wrapper {
        overflow-x: auto;
    }
    
    .cart-table {
        min-width: 600px;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .mini-cart-wrapper {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .cart-title {
        font-size: 1.75rem;
    }
    
    .cart-product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
}
