/* Bullion Products Grid Styling */

.bullion-products-grid {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    margin: 30px 0;
    padding: 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.grid-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.grid-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #f6b42a, #e5a82a);
}

/* Time period selector */
.time-period-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.period-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.period-btn:hover {
    color: #333;
}

.period-btn.active {
    color: #f6b42a;
    font-weight: 600;
}

.period-btn.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f6b42a;
    border-radius: 2px;
}

/* Products grid */
.bullion-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 items per row */
    gap: 25px;
    margin-top: 20px;
}

.bullion-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bullion-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
    border-color: #f6b42a;
}

.bullion-image {
    text-align: center;
    margin-bottom: 18px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.bullion-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bullion-item:hover .bullion-image img {
    transform: scale(1.05);
}

.no-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: inline-block;
}

.bullion-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: center;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bullion-pricing {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.price-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.price-change.positive {
    color: #0c9a4c;
    background: rgba(12, 154, 76, 0.1);
}

.price-change.negative {
    color: #d13947;
    background: rgba(209, 57, 71, 0.1);
}

.bullion-view-link {
    text-align: center;
    display: block;
    padding: 10px 15px;
    background: linear-gradient(to right, #f6b42a, #e5a82a);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(229, 168, 42, 0.3);
}

.bullion-view-link:hover {
    background: linear-gradient(to right, #e5a82a, #d99b1e);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(229, 168, 42, 0.4);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bullion-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .bullion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-period-selector {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        padding: 10px 0;
        margin-top: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .bullion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .time-period-selector {
        justify-content: center;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        padding: 10px 0;
        margin-top: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .period-btn {
        margin: 0 5px 5px;
    }
    
    .bullion-item {
        padding: 15px;
    }
    
    .bullion-image {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .bullion-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .period-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .grid-title {
        font-size: 24px;
    }
    
    .bullion-image {
        height: 130px;
    }
    
    /* Make each item more visible by increasing size on mobile */
    .bullion-title {
        font-size: 18px;
    }
    
    .current-price {
        font-size: 22px;
    }
    
    .price-change {
        font-size: 16px;
    }
    
    .bullion-view-link {
        padding: 12px 20px;
        font-size: 16px;
    }
} 