/* WebsHigher eCommerce Stylesheet */

/* Product Card Aesthetics */
.product-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 92, 252, 0.08);
    border-color: rgba(124, 92, 252, 0.3);
}

/* Slide-in Cart Drawer */
.wh-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #11111e;
    color: #e8e8f0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.wh-cart-drawer.open {
    right: 0;
}
.wh-cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wh-cart-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wh-cart-close {
    background: transparent;
    border: none;
    color: #8888a4;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.wh-cart-close:hover {
    color: #fff;
}
.wh-cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wh-cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.wh-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.wh-cart-item-info {
    flex: 1;
}
.wh-cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
}
.wh-cart-item-price {
    font-size: 13px;
    color: #9b7eff;
    font-weight: 600;
}
.wh-cart-item-remove {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 12px;
    padding: 5px;
    transition: opacity 0.2s;
    opacity: 0.8;
}
.wh-cart-item-remove:hover {
    opacity: 1;
}
.wh-cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}
.wh-cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.wh-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c5cfc 0%, #b44cf0 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 92, 252, 0.3);
}
.wh-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4);
}

/* Cart Overlay/Backdrop */
.wh-cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.wh-cart-backdrop.show {
    display: block;
    opacity: 1;
}

/* Checkout Modal Overlay */
.wh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}
.wh-modal-content {
    background: #161625;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    color: #e8e8f0;
    position: relative;
    animation: whModalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes whModalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.wh-modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: #8888a4;
    font-size: 24px;
    cursor: pointer;
}
.wh-modal-close-btn:hover {
    color: #fff;
}
.wh-modal-title {
    font-size: 26px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
    color: #fff;
}
.wh-modal-subtitle {
    font-size: 14px;
    color: #8888a4;
    margin-bottom: 30px;
}
.wh-modal-form-group {
    margin-bottom: 20px;
    text-align: left;
}
.wh-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8888a4;
}
.wh-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}
.wh-modal-input:focus {
    border-color: #7c5cfc;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 10px rgba(124,92,252,0.2);
}
.wh-modal-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c5cfc 0%, #b44cf0 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(124, 92, 252, 0.3);
}
.wh-modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4);
}

/* Success notification toasts */
.wh-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #11111e;
    color: #fff;
    border-left: 4px solid #34d399;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100001;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: whToastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes whToastSlideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
    .wh-cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Loop Animations Keyframes and Classes */
@keyframes anim-loop-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.anim-loop-pulse {
    animation: anim-loop-pulse 2s infinite ease-in-out !important;
}

@keyframes anim-loop-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.anim-loop-spin {
    animation: anim-loop-spin 4s infinite linear !important;
}

@keyframes anim-loop-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.anim-loop-bounce {
    animation: anim-loop-bounce 2s infinite ease-in-out !important;
}

@keyframes anim-loop-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}
.anim-loop-float {
    animation: anim-loop-float 3s infinite ease-in-out !important;
}

@keyframes anim-loop-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.anim-loop-flash {
    animation: anim-loop-flash 2s infinite ease-in-out !important;
}

/* Click Animations Keyframes and Classes */
@keyframes anim-click-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(0.92); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.anim-click-pulse {
    animation: anim-click-pulse 0.4s ease-out !important;
}

@keyframes anim-click-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.anim-click-shake {
    animation: anim-click-shake 0.4s ease-in-out !important;
}

@keyframes anim-click-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    70% { transform: translateY(-4px); }
}
.anim-click-bounce {
    animation: anim-click-bounce 0.4s ease-out !important;
}

@keyframes anim-click-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.anim-click-pop {
    animation: anim-click-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

