/* shop.css - Spicy, trippy, artsy shop styles */

.spicy-shop-container {
    padding: 3rem 1rem;
    /* background: linear-gradient(135deg, #ffb347 0%, #ffccff 100%); */
    min-height: 80vh;
}

/* Loading indicator styles */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.2);
}

.loading-indicator p {
    margin: 1rem 0 0 0;
    color: #8B1A3A;
    font-size: 1.1em;
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spicy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 2400px;
    margin: 0 auto;
}

@media (min-width: 2400px) {
    .spicy-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.spicy-item-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    z-index: 1;
}

.spicy-item-card:hover,
.spicy-item-card:focus-within {
    transform: scale(1.04) rotate(-2deg);
    z-index: 2;
    box-shadow: 0 0 48px 0 #ff69b4cc, 0 0 0 12px #fff8;
}

.spicy-img-main picture,
.spicy-img-main img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
}

.spicy-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.spicy-thumb-img {
    width: 56px;
    height: auto;
    border-radius: 0.5rem;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border 0.2s;
}

.spicy-thumb-img:focus,
.spicy-thumb-img:hover {
    border: 2px solid #ff69b4;
}

.spicy-info {
    text-align: center;
    margin-top: 0.5rem;
}
.spicy-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #D63384;
    margin-bottom: 0.2em;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px #fff8;
}
.spicy-category {
    font-size: 1.1em;
    color: #2C3E50;
    margin-bottom: 0.2em;
    font-weight: 600;
}
.spicy-price {
    font-size: 1.2em;
    color: #D35400;
    font-weight: bold;
}
.shop-unlisted {
    color: #D63384;
    font-style: italic;
    font-size: 1.1em;
}

/* Modal styles */
.spicy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: none;
}
.spicy-modal.open {
    display: block;
}
.spicy-modal-bg {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, #ffb347cc 0%, #7df9ffcc 100%);
    backdrop-filter: blur(4px);
}
.spicy-modal-img {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 0 64px #ff69b4cc;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spicy-modal-img img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 1.5rem;
    box-shadow: 0 0 32px #7df9ff99;
}
.spicy-modal-close {
    background: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    box-shadow: 0 0 8px #ffb34788;
    transition: background 0.2s;
}
.spicy-modal-close:hover {
    background: #7df9ff;
    color: #ff69b4;
}

/* Modal Navigation Arrows */
.spicy-modal-nav {
    background: rgba(255, 255, 255, 0.95);
    color: #ff69b4;
    border: 2px solid #ff69b4;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    transition: all 0.2s ease;
    z-index: 1001;
}

.spicy-modal-nav:hover {
    background: #ff69b4;
    color: white;
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.5);
    transform: translateY(-50%) scale(1.4);
}

.spicy-modal-prev {
    left: 1rem;
}

.spicy-modal-next {
    right: 1rem;
}

@media (max-width: 600px) {
    .spicy-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .spicy-item-card {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    .spicy-modal-img img {
        max-width: 95vw;
        max-height: 80vh;
        object-fit: contain;
    }
    
    /* Mobile navigation arrows */
    .spicy-modal-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    
    .spicy-modal-prev {
        left: 0.5rem;
    }
    
    .spicy-modal-next {
        right: 0.5rem;
    }
} 