/* ========================================
           FULL CART PAGE STYLES
        ======================================== */

#cart {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Left Section - Cart Items */
.left-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.path-top {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
}

.page-title h2 {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-path {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.page-path a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.page-path a:hover {
    color: var(--primary-red);
}

.path {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
}

.cart-title {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.cart-contents {
    min-height: 200px;
}

/* Individual Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 15px;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(207, 0, 0, 0.1);
}

.cart-item-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-gray);
}

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

.cart-item-details h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.cart-item-brand {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-gray);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 700;
}

.qty-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}

.cart-item-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    background: rgba(207, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.cart-item-remove i {
    color: var(--primary-red);
    font-size: 16px;
    transition: color 0.3s;
}

.cart-item-remove:hover i {
    color: white;
}

.wishlist-btn {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--light-gray);
}

.btn-wishlist-page {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-wishlist-page:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Right Section - Order Summary */
.right-section {
    height: fit-content;
    position: sticky;
    top: 120px;
}

.order-details {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.order-title h3 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.order-item-name {
    color: var(--text-dark);
    flex: 1;
}

.order-item-qty {
    color: var(--text-light);
    margin: 0 10px;
}

.order-item-price {
    color: var(--primary-red);
    font-weight: 700;
}

.nothing-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 16px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.order-summary-row.total {
    border-top: 2px solid var(--light-gray);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.order-summary-row.total .amount {
    color: var(--primary-red);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-checkout:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(207, 0, 0, 0.3);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--border-gray);
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ========================================
           MINI CART (HOVER DROPDOWN) STYLES
        ======================================== */

.mini-cart {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-wish:hover .mini-cart,
.mini-cart:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.mini-cart-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: white;
}

.mini-cart-header h4 {
    font-size: 18px;
    font-weight: 700;
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 300px;
}

.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.mini-cart-item:hover {
    background: var(--light-gray);
    border-color: var(--border-gray);
}

.mini-cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-gray);
}

.mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.mini-cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.mini-cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.mini-cart-item-qty {
    color: var(--text-light);
}

.mini-cart-item-price {
    color: var(--primary-red);
    font-weight: 700;
}

.mini-cart-item-remove {
    width: 28px;
    height: 28px;
    background: rgba(207, 0, 0, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.mini-cart-item-remove:hover {
    background: var(--primary-red);
}

.mini-cart-item-remove i {
    color: var(--primary-red);
    font-size: 12px;
    transition: color 0.3s;
}

.mini-cart-item-remove:hover i {
    color: white;
}

.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.mini-cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mini-cart-empty p {
    font-size: 14px;
}

.mini-cart-footer {
    padding: 20px;
    border-top: 2px solid var(--light-gray);
    background: white;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.mini-cart-subtotal-label {
    color: var(--text-dark);
    font-weight: 600;
}

.mini-cart-subtotal-amount {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 18px;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    border: none;
}

.mini-cart-view {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.mini-cart-view:hover {
    background: var(--primary-blue);
    color: white;
}

.mini-cart-checkout {
    background: var(--primary-red);
    color: white;
}

.mini-cart-checkout:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(207, 0, 0, 0.3);
}

/* Scrollbar Styling for Mini Cart */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 10px;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

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

    .right-section {
        position: static;
    }

    .cart-title {
        grid-template-columns: 2fr 1fr 100px 1fr 40px;
        font-size: 13px;
    }

    .cart-item {
        grid-template-columns: 2fr 1fr 100px 1fr 40px;
    }
}

@media (max-width: 768px) {
    .cart-title {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item-product {
        grid-column: 1;
    }

    .cart-item-price,
    .cart-item-qty,
    .cart-item-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-price::before {
        content: 'Price:';
        font-weight: 600;
        color: var(--text-light);
    }

    .cart-item-qty::before {
        content: 'Quantity:';
        font-weight: 600;
        color: var(--text-light);
    }

    .cart-item-total::before {
        content: 'Total:';
        font-weight: 600;
        color: var(--text-light);
    }

    .mini-cart {
        width: 320px;
        right: -10px;
    }

    .mini-cart::before {
        right: 25px;
    }
}

@media (max-width: 480px) {
    #cart {
        padding: 20px 15px;
    }

    .left-section,
    .order-details {
        padding: 20px;
    }

    .page-title h2 {
        font-size: 24px;
    }

    .mini-cart {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
    }

    .mini-cart::before {
        display: none;
    }
}