/* ============================================
   SleekCart - Centralized Stylesheet
   ============================================ */

/* Base Styles */
body {
    font-family: "DM Sans", sans-serif;
    top: 0px !important;
}

/* Top Bar with Promotional Slider */
.top-bar {
    min-height: 60px;
    background: linear-gradient(
        90deg,
        #8b008b 0%,
        #000000 33%,
        #8b0000 66%,
        #8b008b 100%
    );
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.promo-slider {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollPromo 35s linear infinite;
    white-space: nowrap;
}

.promo-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.promo-item i {
    font-size: 22px;
}

.promo-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes scrollPromo {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.promo-slider:hover {
    animation-play-state: paused;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    border: 2px solid hsl(220, 40%, 88%);
    border-radius: 16px;
    padding: 10px 16px;
    background: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
    gap: 12px;
}

.search-box:hover {
    border-color: hsl(270, 70%, 55%, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.search-box:focus-within {
    border-color: hsl(270, 70%, 55%, 0.5);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

/* Product Cards */
.product-card {
    background: hsl(0, 0%, 100%);
    border-radius: 20px;
    padding: 0;
    border: 1px solid hsl(220, 40%, 92%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.product-card .product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(220, 50%, 95%), hsl(270, 50%, 93%));
}

.product-card .product-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.02) 100%
    );
    pointer-events: none;
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card .action-btn:hover {
    background: hsl(0, 0%, 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card .action-btn.heart-btn:hover {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
}

.product-card .action-btn.cart-btn:hover {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    color: white;
}

.product-card .product-content {
    padding: 16px;
}

.product-card .product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card .product-price-old {
    font-size: 12px;
    color: hsl(0, 0%, 60%);
    text-decoration: line-through;
}

.product-card .product-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: hsl(0, 0%, 60%);
    padding-top: 8px;
    border-top: 1px solid hsl(220, 30%, 94%);
}

/* Category Icons */
.category-icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, hsl(220, 50%, 95%), hsl(270, 50%, 93%));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 16px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Category Items */
.category-item {
    flex: 0 0 auto;
    min-width: calc((100% - 4px) / 2);
}

@media (min-width: 768px) {
    .category-item {
        min-width: calc((100% - 8px) / 3);
    }
}

@media (min-width: 1024px) {
    .category-item {
        min-width: calc((100% - 16px) / 5);
    }
}

/* Badges */
.badge-like {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsl(42, 92%, 53%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-cart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(220, 50%, 95%), hsl(270, 50%, 93%));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Heading Box */
.heading-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Input Styled */
.input-styled {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(220, 40%, 88%);
    border-radius: 8px;
    background: hsl(0, 0%, 100%);
    outline: none;
    transition: all 0.2s;
}

.input-styled:focus {
    border-color: hsl(270, 70%, 55%);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: hsl(0, 0%, 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Categories Dropdown */
@media (max-width: 640px) {
    #categories-dropdown {
        left: 0 !important;
        right: 0 !important;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
    }
}

/* Graffiti Pattern Background */
.graffiti-pattern {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.98),
        rgba(250, 250, 255, 0.95)
    );
    position: relative;
    overflow: hidden;
}

.graffiti-icon {
    position: absolute;
    opacity: 0.2;
    pointer-events: none;
}

.graffiti-icon-1 {
    animation: float1 4s ease-in-out infinite;
}
.graffiti-icon-2 {
    animation: float2 5s ease-in-out infinite;
}
.graffiti-icon-3 {
    animation: float3 4.5s ease-in-out infinite;
}
.graffiti-icon-4 {
    animation: float4 5.5s ease-in-out infinite;
}
.graffiti-icon-5 {
    animation: float5 4s ease-in-out infinite;
}
.graffiti-icon-6 {
    animation: float6 4.75s ease-in-out infinite;
}
.graffiti-icon-7 {
    animation: float7 4.25s ease-in-out infinite;
}
.graffiti-icon-8 {
    animation: float8 5.25s ease-in-out infinite;
}
.graffiti-icon-9 {
    animation: float9 4s ease-in-out infinite;
}
.graffiti-icon-10 {
    animation: float10 5.75s ease-in-out infinite;
}
.graffiti-icon-11 {
    animation: float11 4s ease-in-out infinite;
}
.graffiti-icon-12 {
    animation: float12 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, -10px) rotate(-3deg);
    }
    75% {
        transform: translate(20px, -25px) rotate(2deg);
    }
}

@keyframes float2 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, 15px) rotate(-4deg);
    }
    66% {
        transform: translate(10px, -15px) rotate(3deg);
    }
}

@keyframes float3 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(12px, 18px) rotate(-5deg);
    }
    50% {
        transform: translate(-15px, 10px) rotate(4deg);
    }
    75% {
        transform: translate(18px, -12px) rotate(-2deg);
    }
}

@keyframes float4 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        transform: translate(-18px, -22px) rotate(6deg);
    }
    60% {
        transform: translate(22px, 12px) rotate(-4deg);
    }
}

@keyframes float5 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(8px, -18px) rotate(-3deg);
    }
    40% {
        transform: translate(-12px, 8px) rotate(5deg);
    }
    60% {
        transform: translate(15px, 20px) rotate(-2deg);
    }
    80% {
        transform: translate(-8px, -10px) rotate(3deg);
    }
}

@keyframes float6 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-25px, 15px) rotate(4deg);
    }
    50% {
        transform: translate(18px, -20px) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, 8px) rotate(2deg);
    }
}

@keyframes float7 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, 22px) rotate(-6deg);
    }
    66% {
        transform: translate(-15px, -18px) rotate(4deg);
    }
}

@keyframes float8 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-22px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(12px, 20px) rotate(-3deg);
    }
    75% {
        transform: translate(18px, -8px) rotate(4deg);
    }
}

@keyframes float9 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -25px) rotate(-3deg);
    }
    66% {
        transform: translate(-20px, 12px) rotate(5deg);
    }
}

@keyframes float10 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-15px, 18px) rotate(4deg);
    }
    50% {
        transform: translate(25px, -12px) rotate(-5deg);
    }
    75% {
        transform: translate(-8px, 22px) rotate(3deg);
    }
}

@keyframes float11 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        transform: translate(18px, -20px) rotate(-4deg);
    }
    60% {
        transform: translate(-22px, 15px) rotate(5deg);
    }
    80% {
        transform: translate(22px, -15px) rotate(5deg);
    }
}

@keyframes float12 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(15px, -18px) rotate(4deg);
    }
    66% {
        transform: translate(-25px, 10px) rotate(-6deg);
    }
}

/* Spinner Game Styles */
.spinner-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .spinner-container {
        width: 350px;
        height: 350px;
    }
}

.spinner-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4),
    0 0 60px rgba(139, 92, 246, 0.2);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: linear-gradient(
        135deg,
        #ffd700,
        #ffa500,
        #ffd700,
        #ffa500,
        #ffd700,
        #ff8c00
    );
    background-size: 300% 300%;
    animation: borderRotate 4s linear infinite;
    padding: 12px;
    box-sizing: border-box;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.spinner-wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: conic-gradient(
        from -90deg,
        #8b5cf6 0deg 45deg,
        #ec4899 45deg 90deg,
        #3b82f6 90deg 135deg,
        #10b981 135deg 180deg,
        #f59e0b 180deg 225deg,
        #ef4444 225deg 270deg,
        #6366f1 270deg 315deg,
        #14b8a6 315deg 360deg
    );
}

.spinner-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0% 100%;
    pointer-events: none;
    overflow: visible;
}

.spinner-segment-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spinner-segment-text {
    position: absolute;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7),
    -1px -1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    z-index: 2;
    white-space: nowrap;
    width: 90px;
    transform-origin: center center;
    /* Position at origin (center of wheel) */
    bottom: 0;
    left: 0;
}

.spinner-segment-text .text-xs {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .spinner-segment-text {
        font-size: 13px;
        top: 28%;
    }
    .spinner-segment-text .text-xs {
        font-size: 9px;
    }
}

/* Segment rotations and text positioning */
/* Offset segments by -22.5deg so their centers align with pointer at top (0deg) */
/* Position text along center line of each segment, then counter-rotate to keep horizontal */
/* Wheel is 450px, segment is 225px, so 32% of radius = ~72px from center */

.spinner-segment:nth-child(1) {
    transform: rotate(-22.5deg);
}
.spinner-segment:nth-child(1) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-0deg);
}

.spinner-segment:nth-child(2) {
    transform: rotate(22.5deg);
}
.spinner-segment:nth-child(2) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-45deg);
}

.spinner-segment:nth-child(3) {
    transform: rotate(67.5deg);
}
.spinner-segment:nth-child(3) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-90deg);
}

.spinner-segment:nth-child(4) {
    transform: rotate(112.5deg);
}
.spinner-segment:nth-child(4) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-135deg);
}

.spinner-segment:nth-child(5) {
    transform: rotate(157.5deg);
}
.spinner-segment:nth-child(5) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-180deg);
}

.spinner-segment:nth-child(6) {
    transform: rotate(202.5deg);
}
.spinner-segment:nth-child(6) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-225deg);
}

.spinner-segment:nth-child(7) {
    transform: rotate(247.5deg);
}
.spinner-segment:nth-child(7) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-270deg);
}

.spinner-segment:nth-child(8) {
    transform: rotate(292.5deg);
}
.spinner-segment:nth-child(8) .spinner-segment-text {
    transform: rotate(22.5deg) translate(0, -72px) rotate(-315deg);
}

@media (max-width: 640px) {
    /* Mobile wheel is 350px, so 32% = ~56px */
    .spinner-segment:nth-child(1) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-0deg);
    }
    .spinner-segment:nth-child(2) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-45deg);
    }
    .spinner-segment:nth-child(3) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-90deg);
    }
    .spinner-segment:nth-child(4) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-135deg);
    }
    .spinner-segment:nth-child(5) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-180deg);
    }
    .spinner-segment:nth-child(6) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-225deg);
    }
    .spinner-segment:nth-child(7) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-270deg);
    }
    .spinner-segment:nth-child(8) .spinner-segment-text {
        transform: rotate(22.5deg) translate(0, -56px) rotate(-315deg);
    }
}

.spinner-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid #dc2626;
    z-index: 10;
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.7))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
    animation: pointerFloat 2.5s ease-in-out infinite;
}

@keyframes pointerFloat {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    border-radius: 50%;
    border: 5px solid white;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .spinner-center {
        width: 80px;
        height: 80px;
    }
}

.spin-button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    border: none;
    color: white;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spin-button.spinning {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.spin-button-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .spin-button-text {
        font-size: 13px;
    }
}

.spin-icon {
    font-size: 14px;
    opacity: 0.9;
}

.prize-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.prize-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.prize-content {
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 32px;
    padding: 50px 40px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.prize-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.prize-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.prize-icon {
    font-size: 80px;
    color: #ffd700;
    position: relative;
    z-index: 2;
    animation: bounce 1s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.prize-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.4) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }
}

.prize-title {
    font-size: 36px;
    font-weight: 800;
    color: hsl(210, 29%, 20%);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.prize-subtitle {
    font-size: 20px;
    color: hsl(0, 0%, 49%);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.prize-amount {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prize-claim-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prize-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.prize-claim-btn:active {
    transform: translateY(0);
}

/* Category Card */
.category-card {
    background: hsl(0, 0%, 100%);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid hsl(220, 40%, 88%);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover {
    box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Category Icon Wrapper */
.category-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
}

/* Subcategory Item */
.subcategory-item {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    border: 2px solid transparent;
    background: hsl(220, 30%, 94%);
    color: hsl(210, 29%, 20%);
}

.subcategory-item:hover {
    background: hsl(220, 40%, 90%);
    border-color: hsl(220, 40%, 88%);
}

.subcategory-item.active {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    color: white;
    border-color: hsl(270, 70%, 55%);
    font-weight: 600;
}

/* Product Image */
#main-product-image {
    transition: opacity 0.3s ease;
}

.border-b-3 {
    border-bottom-width: 3px;
}

/* Mystery Box Game Styles */
.mystery-box {
    aspect-ratio: 1;
    cursor: pointer;
    perspective: 1000px;
}

.mystery-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.mystery-box.flipped .mystery-box-inner {
    transform: rotateY(180deg);
}

.mystery-box.matched .mystery-box-inner {
    transform: rotateY(180deg);
}

.mystery-box-front,
.mystery-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.mystery-box-front {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    color: white;
    transform: rotateY(0deg);
}

.mystery-box-back {
    background: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(220, 50%, 95%));
    color: hsl(270, 70%, 55%);
    transform: rotateY(180deg);
    border: 2px solid hsl(270, 70%, 55%);
}

.mystery-box:hover .mystery-box-front {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.mystery-box.matched .mystery-box-back {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.mystery-box.flipped:not(.matched) .mystery-box-back {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%,
    100% {
        transform: rotateY(180deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
}

/* Pagination Styles */
.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid hsl(220, 40%, 88%);
    border-radius: 10px;
    background: hsl(0, 0%, 100%);
    color: hsl(210, 29%, 20%);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-btn:not(a):not(.disabled) {
    cursor: default;
}

.pagination-btn:hover:not(.disabled) {
    border-color: hsl(270, 70%, 55%);
    background: hsl(270, 70%, 55%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(220, 60%, 25%));
    border-color: hsl(270, 70%, 55%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: hsl(220, 30%, 94%);
    pointer-events: none;
}

/* Filter Button Styles */
.filter-btn.active {
    background: linear-gradient(
        135deg,
        hsl(270, 70%, 55%),
        hsl(220, 60%, 25%)
    ) !important;
    color: white !important;
    border-color: hsl(270, 70%, 55%) !important;
}

/* Mobile Filter Drawer */
#mobile-filter-drawer {
    transition: opacity 0.3s ease;
}

#mobile-filter-drawer > div:last-child {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobile-filter-drawer:not(.hidden) > div:last-child {
    transform: translateX(0);
}
