/* Supplements Pages Styling - Matching GRLLA Design System */

/* Import base styles from main app */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #00D9FF;
    --accent-color: #FF6B9D;
    --dark-bg: #0F0F23;
    --card-bg: #1C1C28;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D1;
    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #00D9FF 100%);
    --gradient-2: linear-gradient(135deg, #FF6B9D 0%, #FFA06B 100%);
    --shadow-sm: 0 2px 10px rgba(108, 99, 255, 0.1);
    --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.2);
    --shadow-lg: 0 15px 50px rgba(108, 99, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.supplements-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.supplements-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.supplements-hero h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.supplements-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Main Container */
.supplements-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Search and Controls Bar */
.search-controls-bar {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    align-items: center;
}

.main-search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.main-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.main-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.filter-modal-btn {
    padding: 0.6rem 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Filter Modal Popup */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.filter-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.filter-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal-btn {
    background: rgba(255, 107, 157, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(255, 107, 157, 0.3);
    transform: rotate(90deg);
}

.filter-modal-body {
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.filter-select,
.price-input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.filter-select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.filter-select:focus,
.price-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.price-input {
    margin-bottom: 0.5rem;
}

/* Price Range Slider */
.price-range-container {
    position: relative;
    padding: 1rem 0;
}

.price-values {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    outline: none;
    position: relative;
    margin: 0.5rem 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.filter-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.apply-filter-btn,
.clear-filters-btn {
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.apply-filter-btn {
    background: var(--gradient-1);
    color: white;
}

.apply-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.clear-filters-btn {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-color);
}

.clear-filters-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

/* Products Grid */
.products-section {
    min-height: 500px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.products-header h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
}

.header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.category-select {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.category-select:hover,
.category-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.products-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.products-count strong {
    color: var(--primary-color);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pagination */
#paginationContainer {
    margin: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 45px;
}

.page-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-md);
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 0.5rem;
    font-weight: bold;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.product-price small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stock-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.in-stock {
    background: rgba(0, 217, 255, 0.2);
    color: var(--secondary-color);
}

.out-of-stock {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-color);
}

.view-details-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Product Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.back-link:hover {
    gap: 0.8rem;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
    margin-bottom: 2rem;
}

.product-detail-image {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow: hidden;
}

.product-image-carousel {
    width: 100%;
    max-width: 100%;
}

.main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.main-image img:hover {
    transform: scale(1.05);
}

/* Scrollable Thumbnails */
.image-thumbnails-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.image-thumbnails-scroll::-webkit-scrollbar {
    height: 6px;
}

.image-thumbnails-scroll::-webkit-scrollbar-track {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
}

.image-thumbnails-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.image-thumbnails-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: rgba(108, 99, 255, 0.1);
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.product-detail-info {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-detail-info h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
}

.product-detail-description h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.product-detail-description p {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-detail-description p::-webkit-scrollbar {
    width: 6px;
}

.product-detail-description p::-webkit-scrollbar-track {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
}

.product-detail-description p::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.buy-now-btn {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.buy-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buy-now-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to { left: 100%; }
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .supplements-container {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .supplements-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .supplements-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .supplements-hero p {
        font-size: 0.9rem;
    }
    
    .supplements-container {
        padding: 1rem;
    }
    
    .search-controls-bar {
        gap: 0.4rem;
        margin: 0.3rem 0;
    }
    
    .main-search-input {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .filter-modal-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-detail {
        padding: 1.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.4rem;
    }
    
    .product-detail-price {
        font-size: 1.8rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        min-width: 70px;
        width: 70px;
        height: 70px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        min-height: 2.2rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        min-height: 2.2rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header-controls {
        width: 100%;
    }
    
    .category-select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .supplements-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .supplements-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .supplements-hero p {
        font-size: 0.9rem;
    }
    
    .supplements-container {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .supplements-container {
        padding: 2rem 1rem;
    }
    
    .product-detail {
        padding: 1.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.4rem;
    }
    
    .product-detail-price {
        font-size: 1.8rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        min-width: 70px;
        width: 70px;
        height: 70px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        min-height: 2.2rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        min-height: 2.2rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header-controls {
        width: 100%;
    }
    
    .category-select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .supplements-hero {
        padding: 1.2rem 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 15px;
    }
    
    .supplements-hero h1 {
        font-size: 1.4rem;
    }
    
    .supplements-hero p {
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-info {
        padding: 0.7rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        min-height: 2rem;
    }
    
    .product-description {
        font-size: 0.7rem;
        min-height: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .stock-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .view-details-btn {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .category-select {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(108, 99, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Related Products Section */
.related-products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
}

.related-products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Responsive adjustments for related products */
@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-section h2 {
        font-size: 1.5rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}
/* Category Filter Section */
.category-filter-section {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.category-btn {
    padding: 0.7rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .category-filter-section {
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-filter-section {
        gap: 0.4rem;
        padding: 0.6rem;
    }
    
    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}
