/* ============================================
   THEME12 - MAIN STYLES
   ============================================ */

:root {
    --accent: #ff007f;
    --primary: #ff007f;
    --hover: #ec4899;
    --accent-rgb: 255, 0, 127;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .08) 22%, transparent 50%),
        linear-gradient(180deg,
            var(--primary) 0%,
            var(--primary) 30%,
            color-mix(in srgb, var(--primary) 60%, var(--hover) 40%) 55%,
            var(--hover) 100%);
    background-attachment: fixed;
}

/* ============================================
   ROCKET BANNER
   ============================================ */
.rocket-banner {
    height: 60px;
    background: linear-gradient(180deg, var(--primary) 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.rocket-banner::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at center bottom, rgba(255, 200, 50, 0.3) 0%, transparent 70%);
    animation: rocketGlow 2s ease-in-out infinite;
}

@keyframes rocketGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.particle-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    animation: particleRise linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) scale(0) rotate(720deg);
        opacity: 0;
    }
}

.rocket-fire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(to top, #ff6b35, #ffd700, #ff4500);
    border-radius: 2px;
    animation: fireBlast 1.5s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes fireBlast {
    0%,
    100% {
        height: 20px;
        opacity: 0.8;
        width: 4px;
    }
    25% {
        height: 45px;
        opacity: 1;
        width: 6px;
    }
    50% {
        height: 30px;
        opacity: 0.9;
        width: 5px;
    }
    75% {
        height: 50px;
        opacity: 1;
        width: 7px;
    }
}

.fire-burst {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #ff6b35, transparent);
    animation: burstPulse 1.2s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes burstPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.rocket-icon {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: rocketLaunch 2s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.6));
}

@keyframes rocketLaunch {
    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(-45deg);
    }
    25% {
        transform: translateX(-50%) translateY(-8px) rotate(-40deg);
    }
    50% {
        transform: translateX(-50%) translateY(-3px) rotate(-45deg);
    }
    75% {
        transform: translateX(-50%) translateY(-10px) rotate(-38deg);
    }
}

.sparkle {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: sparkleFloat 3s linear infinite;
    opacity: 0;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

.banner-text {
    display: flex;
    white-space: nowrap;
    animation: scrollBanner 25s linear infinite;
    position: relative;
    z-index: 3;
    gap: 0;
}

.banner-text span {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(255, 200, 50, 0.3);
    letter-spacing: 0.5px;
}

.banner-text span i {
    color: #ffd700;
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-body {
    padding: 1.5rem;
}

.sidebar-body a,
.sidebar-body button {
    display: block;
    padding: 0.8rem 0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar-body a:hover,
.sidebar-body button:hover {
    color: var(--primary);
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(4px);
}

#overlay.show {
    display: block;
}

/* ============================================
   CART BADGE
   ============================================ */
.cart-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-message.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

.animate-spin-custom {
    animation: spin 1s linear infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease;
}

.animate-pop-in {
    animation: popIn 0.4s ease;
}

.floating-image {
    animation: floatImage 5s ease-in-out infinite;
}

.variant-sub-row-container.open {
    display: block;
}

.arrow.open {
    transform: rotate(180deg);
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-form {
    transition: all 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

#authModal .animate-fade-in-up {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 100;
    margin-top: 8px;
}

.user-dropdown-menu.open {
    display: block;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.user-dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.user-dropdown-menu .divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.user-dropdown-menu .logout-btn {
    color: #dc3545;
}

.user-dropdown-menu .logout-btn:hover {
    background: #fef2f2;
    color: #dc3545;
}

/* ============================================
   WISHLIST BUTTON
   ============================================ */
.wishlist-btn .fa-heart {
    transition: color 0.3s ease;
}

.wishlist-btn .fa-heart.text-red-500 {
    color: #ef4444 !important;
}

.wishlist-btn .fa-heart.text-gray-400 {
    color: #9ca3af !important;
}

.wishlist-btn.in-wishlist {
    background-color: #fef2f2 !important;
    border-color: #ef4444 !important;
}

.wishlist-btn.in-wishlist .fa-heart {
    color: #ef4444 !important;
}

.wishlist-btn:not(.in-wishlist) .fa-heart {
    color: #9ca3af !important;
}

.wishlist-btn .fas.fa-heart {
    color: #ef4444 !important;
}

.wishlist-btn .far.fa-heart {
    color: #9ca3af !important;
}

/* ============================================
   ADD TO CART BUTTON & BADGE
   ============================================ */
.addToCartBtn {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.addToCartBtn .fa-shopping-cart {
    transition: transform 0.3s ease;
}

.addToCartBtn:hover .fa-shopping-cart {
    transform: scale(1.1);
}

.cart-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid #fff;
    animation: badgePop 0.3s ease-out;
    z-index: 2;
    line-height: 1;
}

.cart-qty-badge.show {
    display: flex !important;
}

.addToCartBtn.has-items {
    padding-right: 24px;
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.cart-qty-badge.pulse {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile badge adjustment */
.mobile-product-item .cart-qty-badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    top: -6px;
    right: -6px;
    border-width: 1.5px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
@keyframes toastSlideIn {
    0% {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastIconPop {
    0% {
        transform: scale(0) rotate(-20deg);
    }
    60% {
        transform: scale(1.15) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes toastProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

#toastContainer {
    pointer-events: none;
}

#toastContainer .toast-message {
    pointer-events: auto;
    cursor: default;
}

#toastContainer .toast-message:hover {
    transform: translateX(-4px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Toast Mobile Responsive */
@media (max-width: 640px) {
    #toastContainer {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: 100%;
        width: auto;
    }
    #toastContainer .toast-message {
        min-width: auto;
        padding: 14px 16px;
        border-radius: 10px;
    }
    #toastContainer .toast-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    #toastContainer .toast-title {
        font-size: 10px;
    }
    #toastContainer .toast-text {
        font-size: 13px;
    }
    #toastContainer .toast-close {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   PROFESSIONAL CART DESIGN
   ============================================ */
.cart-tab-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    transition: all 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header-title h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.cart-header-title .cart-count-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header-actions {
    display: flex;
    gap: 10px;
}

.cart-header-actions button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-header-actions button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.cart-header-actions .clear-cart-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.cart-items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.cart-items-grid::-webkit-scrollbar {
    width: 4px;
}

.cart-items-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cart-items-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.cart-item-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    animation: cartItemSlide 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.cart-item-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cart-item-card:nth-child(1) { animation-delay: 0.05s; }
.cart-item-card:nth-child(2) { animation-delay: 0.10s; }
.cart-item-card:nth-child(3) { animation-delay: 0.15s; }
.cart-item-card:nth-child(4) { animation-delay: 0.20s; }
.cart-item-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cartItemSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    position: relative;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-image .item-quantity-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info .product-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-info .product-variant {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-info .product-variant .variant-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.cart-item-info .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cart-item-info .product-price .current-price {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.cart-item-info .product-price .original-price {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-decoration: line-through;
}

.cart-item-info .product-price .discount-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-actions .qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-actions .qty-control-wrapper button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-actions .qty-control-wrapper button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cart-item-actions .qty-control-wrapper button:active {
    transform: scale(0.9);
}

.cart-item-actions .qty-control-wrapper .qty-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-actions .item-total {
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

.cart-item-actions .remove-item-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.cart-item-actions .remove-item-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.cart-summary {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cart-summary-item .label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}

.cart-summary-item .value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.cart-summary-total .total-label {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.cart-summary-total .total-amount {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 127, 0.3);
}

.checkout-btn:hover::before {
    opacity: 1;
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-btn i {
    font-size: 18px;
}

.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.08);
}

.empty-cart-state h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-cart-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto 24px;
}

.empty-cart-state .shop-now-btn {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-cart-state .shop-now-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   CART MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cart-tab-wrapper {
        padding: 16px;
        border-radius: 16px;
    }
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 16px;
    }
    .cart-header-title h3 {
        font-size: 18px;
    }
    .cart-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .cart-header-actions button {
        font-size: 12px;
        padding: 6px 12px;
    }
    .cart-item-card {
        grid-template-columns: 60px 1fr auto;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }
    .cart-item-image {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }
    .cart-item-image .item-quantity-badge {
        min-width: 16px;
        height: 16px;
        font-size: 8px;
        top: -4px;
        right: -4px;
    }
    .cart-item-info .product-name {
        font-size: 13px;
    }
    .cart-item-info .product-price .current-price {
        font-size: 14px;
    }
    .cart-item-info .product-price .original-price {
        font-size: 11px;
    }
    .cart-item-actions {
        gap: 6px;
    }
    .cart-item-actions .qty-control-wrapper {
        padding: 1px;
    }
    .cart-item-actions .qty-control-wrapper button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .cart-item-actions .qty-control-wrapper .qty-value {
        font-size: 12px;
        min-width: 20px;
    }
    .cart-item-actions .item-total {
        font-size: 14px;
    }
    .cart-item-actions .remove-item-btn {
        font-size: 12px;
        padding: 2px 6px;
    }
    .cart-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .cart-summary-total .total-label {
        font-size: 16px;
    }
    .cart-summary-total .total-amount {
        font-size: 20px;
    }
    .checkout-btn {
        padding: 14px;
        font-size: 14px;
        border-radius: 12px;
    }
    .empty-cart-state {
        padding: 40px 16px;
    }
    .empty-cart-state .empty-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .empty-cart-state h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cart-tab-wrapper {
        padding: 12px;
    }
    .cart-item-card {
        grid-template-columns: 50px 1fr;
        padding: 10px 12px;
        gap: 10px;
    }
    .cart-item-card .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 10px;
        width: 100%;
    }
    .cart-item-image {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }
    .cart-item-info .product-name {
        font-size: 12px;
    }
    .cart-item-info .product-variant {
        font-size: 10px;
    }
    .cart-item-info .product-price .current-price {
        font-size: 13px;
    }
    .cart-item-actions .qty-control-wrapper button {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    .cart-item-actions .qty-control-wrapper .qty-value {
        font-size: 11px;
        min-width: 18px;
    }
    .cart-item-actions .item-total {
        font-size: 13px;
    }
    .cart-summary-total .total-amount {
        font-size: 18px;
    }
}


/* Smooth pagination transitions */
#productContainer {
    transition: opacity 0.3s ease;
}

.pagination-btn {
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.pagination-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin-custom {
    animation: spin 0.8s linear infinite;
}

/* Pagination controls fade */
#topPaginationControls,
#bottomPaginationControls {
    transition: opacity 0.3s ease;
}

/* Active page highlight */
.pagination-btn.active-page {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

/* Professional Pagination Styles */
.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.pagination-btn:disabled {
    cursor: not-allowed;
}

/* Active page styling */
.pagination-btn.active-page {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

/* Select dropdown styling */
select.pagination-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Smooth transitions for product container */
#productContainer {
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Quick filter buttons active state */
.quick-filter-btn.active {
    background: var(--accent);
    color: white !important;
    border-color: var(--accent) !important;
    box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.3);
}

.quick-filter-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-filter-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Number input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Price range input focus */
#priceFrom:focus, #priceTo:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}


/* Additional loader animations */
@keyframes shimmer {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 50px var(--accent), 0 0 80px var(--accent), 0 0 120px rgba(var(--accent-rgb), 0.3);
    }
}

@keyframes blastParticle {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes sparkleTrail {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Search Suggestions Styles */
#desktopSearchSuggestions,
#mobileSearchSuggestions {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none !important;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

.suggestion-item .suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.suggestion-item .suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item .suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item .suggestion-badge {
    font-size: 10px;
    background: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.suggestion-empty {
    padding: 20px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.suggestion-loading {
    padding: 20px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.suggestion-item .highlight {
    color: <?= $primary_color ?>;
    font-weight: 600;
}

/* Mobile search suggestions */
#mobileSearchSuggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100;
}

#mobileSearchSuggestions .suggestion-item {
    padding: 8px 12px;
}

#mobileSearchSuggestions .suggestion-item .suggestion-image {
    width: 32px;
    height: 32px;
}

#mobileSearchSuggestions .suggestion-item .suggestion-name {
    font-size: 13px;
}

/* Search input focus */
#desktopSearchInput:focus,
#mobileSearchInput:focus {
    outline: none;
}

/* ============================================
   PRODUCT PREVIEW POPUP
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#productPreviewPopup {
    animation: fadeIn 0.3s ease;
}

#productPreviewPopup .animate-scale-in {
    animation: scaleIn 0.3s ease;
}

#productPreviewPopup .animate-fade-out {
    animation: fadeOut 0.3s ease;
}

#productPreviewPopup .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product preview responsive */
@media (max-width: 640px) {
    #productPreviewPopup .bg-white {
        margin: 10px;
        border-radius: 16px;
    }
    #productPreviewPopup .relative {
        height: 180px;
    }
    #productPreviewPopup .p-6 {
        padding: 16px;
    }
    #productPreviewPopup h3 {
        font-size: 17px;
    }
    #productPreviewPopup .text-2xl {
        font-size: 20px;
    }
}

/* Suggestion item hover effect */
.suggestion-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

.suggestion-item .suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    white-space: nowrap;
    flex-shrink: 0;
}

.suggestion-item .suggestion-image {
    border: 1px solid #f3f4f6;
}


/* ============================================
   SEARCH SUGGESTIONS ENHANCED
   ============================================ */

/* Suggestion item hover effect */
.suggestion-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none !important;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

.suggestion-item .suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.suggestion-item .suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.suggestion-item .suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item .suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    white-space: nowrap;
    flex-shrink: 0;
}

.suggestion-item .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Search info bar */
.search-info-bar {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile search suggestions */
#mobileSearchSuggestions .suggestion-item {
    padding: 8px 12px;
}

#mobileSearchSuggestions .suggestion-item .suggestion-image {
    width: 32px;
    height: 32px;
}

#mobileSearchSuggestions .suggestion-item .suggestion-name {
    font-size: 13px;
}