/* Prices Page Styles */

.prices-hero {
    min-height: 40vh;
    padding: 2rem 1rem;
}

.category-section {
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.category-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.category-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.category-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: #66BB6A;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.category-icon {
    font-size: 2rem;
}

.loading-section,
.error-section {
    padding: 4rem 1rem;
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(76, 175, 80, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #f44336;
    margin-bottom: 1rem;
}

.error-message p {
    color: #fff;
    margin-bottom: 1.5rem;
}

.products-section {
    padding: 3rem 1rem;
}

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

.products-count {
    background: rgba(76, 175, 80, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #4CAF50;
    font-weight: 600;
}

.search-filter {
    position: relative;
    margin-bottom: 2rem;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #f44336;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.clear-search:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    color: #4CAF50;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #4CAF50;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    color: #fff;
    font-weight: 600;
}

.product-thc {
    background: rgba(76, 175, 80, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: #4CAF50;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.product-special {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.product-option {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-strain {
    display: inline-block;
    background: rgba(156, 39, 176, 0.2);
    color: #CE93D8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.product-cannabinoids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(76, 175, 80, 0.15);
}

.cannabinoid-item {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.cannabinoid-item:hover {
    background: rgba(33, 150, 243, 0.25);
    cursor: help;
}

.product-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.effect-item {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(156, 39, 176, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.effect-item:hover {
    background: rgba(156, 39, 176, 0.25);
    cursor: help;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-buttons {
        gap: 0.75rem;
    }
    
    .category-btn {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .category-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .product-image {
        height: 200px;
    }
}