/* Store Page Specific Styles */
.store-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.page-title-3d {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    transform: perspective(500px) rotateX(10deg);
    animation: float 3s ease-in-out infinite;
}

/* Categories Filter */
.categories-filter {
    padding: 2rem 0;
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    overflow: hidden;
}

.categories-scroll {
    overflow: hidden;
    position: relative;
}

.categories-track {
    display: flex;
    gap: 1rem;
    animation: scrollCategories 20s linear infinite;
    padding: 1rem 0;
}

@keyframes scrollCategories {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.categories-track:hover {
    animation-play-state: paused;
}

.category-filter-btn {
    padding: 10px 25px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

.category-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.category-filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Products Grid Enhanced */
.products-section {
    padding: 3rem 0;
}

.product-card-3d {
    position: relative;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s infinite;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.size-select {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: white;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-select:hover {
    background: var(--primary-color);
    color: white;
}

.size-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.add-to-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.add-to-cart:hover {
    background: var(--secondary-color);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.quick-view {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.product-card-3d:hover .quick-view {
    transform: translateY(0);
    opacity: 1;
}

.quick-view:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInScale 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideInScale {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

.close:hover {
    transform: rotate(90deg);
    background: var(--secondary-color);
    color: white;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--primary-color);
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-products p {
    color: #666;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title-3d {
        font-size: 2rem;
    }
    
    .categories-track {
        animation-duration: 15s;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart-form {
        justify-content: space-between;
    }
    
    .modal-content {
        padding: 1rem;
        width: 95%;
    }
}
