/* Shop Features CSS - Cart, Wishlist, Product Details */

/* Sidebar Base */
.shop-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: black !important;
    backdrop-filter: blur(25px);
    z-index: 99999;
    padding: 30px 20px;
    transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.shop-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.sidebar-close {
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #ff3366;
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Items in Sidebar */
.sidebar-item {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    align-items: center;
    position: relative;
    animation: slideIn 0.3s ease forwards;
}

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

.sidebar-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

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

.sidebar-item-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-price {
    font-size: 0.9rem;
    color: #00d2ff;
    font-weight: 600;
}

.sidebar-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.sidebar-item-qty button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.sidebar-item-qty input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
}

.sidebar-item-remove {
    position: absolute;
    top: 10px; right: 10px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.sidebar-item-remove:hover {
    color: #ff3366;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-checkout, .btn-wishlist-cart {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* Animations for Flying to Cart */
.flying-img {
    position: fixed;
    z-index: 999999;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    width: 50px;
    height: 50px;
    object-fit: cover;
    pointer-events: none;
}

.cart-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg) scale(1.2); }
    50% { transform: rotate(15deg) scale(1.2); }
    75% { transform: rotate(-15deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Heart Animation */
.heart-animate {
    animation: pulseHeart 0.5s;
    color: #ff3366 !important;
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); color: #ff3366; }
    100% { transform: scale(1); color: #ff3366; }
}

/* Product Detail Page Overrides */
.detail-hero {
    padding: 150px 0 80px;
    background: linear-gradient(to bottom, rgba(5,15,33,0.9), var(--dark-surface));
    position: relative;
}

/* WhatsApp/Crypto Buttons */
.btn-whatsapp {
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px; border-radius: 8px; font-weight: bold; margin-top: 15px; border:none; cursor:pointer;
}
.btn-crypto {
    background: linear-gradient(90deg, #f7931a 0%, #f37121 100%);
    color: #fff;
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px; border-radius: 8px; font-weight: bold; margin-top: 15px; border:none; cursor:pointer;
}

/* Heart on card */
.heart-btn {
    position: absolute;
    top: 12px; left: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(15, 20, 35, 0.6);
    display: flex; align-items: center; justify-content: center;
    color: #aeb6c4;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.heart-btn:hover { 
    background: rgba(25, 30, 45, 0.9);
    color: #ff3366; 
    border-color: rgba(255, 51, 102, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.heart-btn.active { 
    background: rgba(255, 51, 102, 0.12);
    border-color: rgba(255, 51, 102, 0.4);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2), inset 0 0 10px rgba(255, 51, 102, 0.1);
}
.heart-btn i {
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.heart-btn.active i {
    color: #ff3366;
    animation: iconPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.6));
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Floating Cart Icon on cards */
.float-cart-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0, 210, 255, 0.2);
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #00d2ff; cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.float-cart-btn:hover {
    background: #00d2ff;
    color: #000;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Add to cart icon on card */
.add-to-cart-icon {
    margin-left: 10px;
    background: rgba(0,210,255,0.1);
    color: #00d2ff;
    width: 35px; height: 35px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.add-to-cart-icon:hover { background: #00d2ff; color: #000; }

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3366;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.4s;
}
.checkout-modal.active { opacity: 1; visibility: visible; }
.checkout-box {
    background: #111827; padding: 40px; border-radius: 20px;
    width: 100%; max-width: 500px; border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    max-height: 90vh; overflow-y: auto;
}
.checkout-box h2 { color: #fff; margin-bottom: 20px; font-weight: 700; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #aaa; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: #fff; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; cursor: pointer;}
.form-group input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
.close-modal { position: absolute; top: 20px; right: 20px; color: #aaa; cursor: pointer; font-size: 1.5rem; transition: 0.3s; }
.close-modal:hover { color: #fff; }
