/*-------------------------------------------------------------------------*/
/* Store Page Styles - WoW Classic Theme (Old School)
/*-------------------------------------------------------------------------*/

#page_store {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 2rem 0;
}

.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/*-------------------------------------------------------------------------*/
/* Store Header
/*-------------------------------------------------------------------------*/
.store-header {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #8b4513;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.store-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-icon {
    color: #ffd131;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.store-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd131;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
    letter-spacing: 3px;
    margin: 0;
}

.store-subtitle {
    color: #c4b79f;
    font-size: 0.95rem;
    margin: 0.8rem 0 0 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/*-------------------------------------------------------------------------*/
/* Category Tabs
/*-------------------------------------------------------------------------*/
.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #3d3020;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 3px 0 rgba(0, 0, 0, 0.5);
}

.category-tab {
    background: #2a2116;
    border: 2px solid #8b4513;
    border-radius: 0;
    padding: 0.6rem 1.2rem;
    color: #c4b79f;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

.category-tab:hover {
    background: #3a3126;
    border-color: #a0522d;
    color: #ffd131;
}

.category-tab.active {
    background: #8b4513;
    border-color: #a0522d;
    color: #ffd131;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 209, 49, 0.3);
}

.category-loading {
    color: #c4b79f;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
}

.category-loading i {
    color: #ffd131;
    margin-right: 0.5rem;
}

/*-------------------------------------------------------------------------*/
/* Products Grid
/*-------------------------------------------------------------------------*/
.store-products-wrapper {
    min-height: 400px;
}

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

.product-item {
    background: rgba(20, 16, 13, 0.9);
    border: 2px solid #6b4423;
    border-radius: 0;
    padding: 0.8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    transition: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(0, 0, 0, 0.7);
    position: relative;
}

.product-item:hover {
    background: rgba(30, 25, 20, 0.9);
    border-color: #8b4513;
}

.product-item > * {
    position: relative;
    z-index: 1;
}

.product-image-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #3d3020;
    border-radius: 0;
    padding: 0.2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 1), inset 0 2px 5px rgba(0, 0, 0, 0.9);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-name {
    color: #ffd131;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: left;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    margin: 0;
    line-height: 1.3;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.product-price-label {
    color: #8b7355;
    font-size: 0.8rem;
    font-weight: normal;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.product-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.products-loading {
    text-align: center;
    padding: 3rem;
    color: #c4b79f;
    font-size: 1.2rem;
}

.products-loading i {
    color: #ffd131;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/*-------------------------------------------------------------------------*/
/* No Products Message
/*-------------------------------------------------------------------------*/
.no-products {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #3d3020;
    border-radius: 0;
    color: #c4b79f;
}

.no-products i {
    font-size: 3rem;
    color: #6b4423;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.no-products p {
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/*-------------------------------------------------------------------------*/
/* Responsive Design
/*-------------------------------------------------------------------------*/
@media (max-width: 1200px) {
    .store-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .store-header {
        padding: 1.5rem;
    }
    
    .store-title {
        font-size: 1.8rem;
    }
    
    .store-icon {
        font-size: 1.5rem;
    }
    
    .store-categories {
        padding: 1rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .store-products {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .product-item {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .store-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .store-title-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .store-categories {
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .store-products {
        grid-template-columns: 1fr;
    }
}

/*-------------------------------------------------------------------------*/
/* Loading Animation
/*-------------------------------------------------------------------------*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/*-------------------------------------------------------------------------*/
/* Old School Text Shadows
/*-------------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/*-------------------------------------------------------------------------*/
/* Scrollbar Styling (WoW Theme)
/*-------------------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border: 1px solid rgba(139, 69, 19, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #3d3020;
    border: 2px solid #8b4513;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d4030;
}

