/**
 * RYVION Studios - Store Page Styles
 * COMPLETE VERSION with "No More Products" message
 */

/* ============================================
   LAYOUT - Sticky Footer System
   ============================================ */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Logo - White color */
.nav-center .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff !important;
    text-decoration: none;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* ============================================
   STORE HERO SECTION
   ============================================ */
.store-hero {
    height: 550px;
    padding-top: 140px;
    padding-bottom: 0;
    position: relative;
    background: #0a0e27;
    overflow: visible;
}

.store-hero .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.store-hero .section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, 
        #0a0e27 0%, 
        rgba(10, 14, 39, 0.95) 20%,
        rgba(10, 14, 39, 0.7) 50%,
        transparent 100%
    );
    z-index: 1;
}

.store-hero .section-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, 
        #0a0e27 0%, 
        rgba(10, 14, 39, 0.95) 20%,
        rgba(10, 14, 39, 0.7) 50%,
        transparent 100%
    );
    z-index: 1;
}

.store-hero .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.75);
    z-index: 1;
}

.store-hero .container {
    position: relative;
    z-index: 2;
}

.store-header {
    text-align: center;
    margin-bottom: 50px;
}

.store-label {
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.store-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
    margin-bottom: 20px;
}

.store-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 0px;
    padding: 15px 20px;
    position: relative;
    z-index: 2;
}


.filter-tab {
    background: rgba(20, 25, 50, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.filter-tab:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
    color: #ffffff;
}

.filter-tab.active {
    background: rgba(155, 89, 182, 0.3);
    border: 2px solid #9b59b6;
    color: #ffffff;
}


/* ============================================
   SORT FILTER DROPDOWN
   ============================================ */
.section-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    flex: 1;
    text-align: center;
}

.sort-filter {
    position: absolute;
    right: 0;
    z-index: 1000;
}

.sort-button {
    background: rgba(20, 25, 50, 0.7);
    border: 2px solid rgba(74, 144, 226, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.sort-button:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.sort-button::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sort-button.active::after {
    transform: rotate(180deg);
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 20, 45, 0.98);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(74, 144, 226, 0.3);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

.sort-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: rgba(74, 144, 226, 0.15);
    color: #ffffff;
    padding-left: 25px;
}

.sort-option.active {
    background: rgba(74, 144, 226, 0.25);
    color: #4a90e2;
    font-weight: 700;
}

.sort-option.active::before {
    content: '✓';
    font-size: 14px;
    color: #4a90e2;
}

@media (max-width: 768px) {
    .section-title-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sort-filter {
        position: relative;
        right: auto;
        width: 100%;
    }

    .sort-button {
        width: 100%;
        justify-content: center;
    }

    .sort-dropdown {
        left: 0;
        right: 0;
    }
}

/* ============================================
   SUBCATEGORY BAR
   ============================================ */
.subcategory-bar {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
    z-index: 3;
}

.subcategory-container {
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

.subcategory-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(15, 20, 45, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.subcategory-item {
    background: rgba(25, 35, 60, 0.7);
    border: 1.5px solid rgba(74, 144, 226, 0.25);
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.subcategory-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.subcategory-item:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.subcategory-item:hover::before {
    width: 300px;
    height: 300px;
}

.subcategory-item.active {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.2) 100%);
    border-color: #9b59b6;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4), inset 0 0 15px rgba(155, 89, 182, 0.1);
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */
.featured-products-section {
    padding: 80px 0 60px 0;
    background: #0a0e27;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
}

.featured-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin-bottom: 60px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 144, 226, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.5);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(74, 144, 226, 0.5);
    border-color: #4a90e2;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.featured-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    overflow: hidden;
}

.product-card.featured-card {
    position: relative;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0a0e27;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(74, 144, 226, 0.5) 50%, transparent 100%);
}

.divider-text {
    padding: 0 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(74, 144, 226, 0.8);
    text-transform: uppercase;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 0 0 100px 0;
    background: #0a0e27;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.8) 0%, rgba(15, 25, 50, 0.8) 100%);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.2) 0%, rgba(10, 14, 39, 0.6) 100%);
    z-index: 1;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.product-name a {
    color: #ffffff !important;
    text-decoration: none;
}

.product-name a:hover {
    color: #ffffff !important;
}

.product-creator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.product-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

.sales {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.price-tag {
    font-size: 16px;
    font-weight: 700;
    color: #4a90e2;
}

/* ============================================
   SHOP NOW BUTTON
   ============================================ */
.shop-now-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c78 0%, #2d5a9e 50%, #4a7ac2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 14px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 6px;
}

.shop-now-btn:hover {
    background: linear-gradient(135deg, #2d5a9e 0%, #4a7ac2 50%, #6b9dd6 100%);
    border-color: #4a90e2;
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.5);
}

/* ============================================
   LOAD MORE BUTTON + NO MORE MESSAGE
   ============================================ */
.load-more-wrapper {
    width: 100%;
    text-align: center;
    margin: 60px 0 40px 0;
    padding: 20px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1e3c78 0%, #2d5a9e 50%, #4a7ac2 100%);
    border: 3px solid #ffffff;
    color: #ffffff;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(20px 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0% 50%);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2d5a9e 0%, #4a7ac2 50%, #6b9dd6 100%);
    border-color: #ffffff;
    box-shadow: 0 0 35px rgba(74, 144, 226, 0.7);
    transform: translateX(8px);
}

/* NO MORE PRODUCTS MESSAGE */
.no-more-products {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
}

.no-more-products p {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(74, 144, 226, 0.8);
    text-transform: uppercase;
    margin: 0;
    padding: 15px 30px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    background: rgba(20, 25, 50, 0.6);
    display: inline-block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .featured-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .store-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 28px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 12px;
    }

    .featured-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding: 120px 0 40px 0;
    }

    .store-title {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-carousel-wrapper {
        padding: 0 40px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .load-more-btn {
        padding: 16px 50px 16px 35px;
        font-size: 14px;
    }

    .no-more-products p {
        font-size: 14px;
        padding: 12px 24px;
    }

    .divider-text {
        font-size: 12px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .store-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .store-label {
        font-size: 11px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-creator {
        font-size: 12px;
    }
    
    .price-tag {
        font-size: 14px;
    }
    
    .shop-now-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .load-more-btn {
        padding: 14px 45px 14px 30px;
        font-size: 13px;
    }
    
    .no-more-products p {
        font-size: 12px;
        padding: 10px 20px;
    }
}