/* style.css - Modern, responsive design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0096D6 0%, #0054A6 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Search Box */
.search-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-box input {
    width: 70%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #0096D6;
    box-shadow: 0 0 0 3px rgba(0,150,214,0.1);
}

.search-box button {
    padding: 14px 35px;
    background: linear-gradient(135deg, #0096D6 0%, #0054A6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,150,214,0.4);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.product-title {
    flex: 1;
}

.product-title h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.product-title .sku {
    color: #666;
    font-size: 0.9rem;
}

.product-badge {
    background: #0096D6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0096D6;
}

.spec-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spec-item .value {
    font-size: 1rem;
    color: #1a1a1a;
    margin-top: 4px;
    font-weight: 500;
}

/* Images Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.image-gallery img:hover {
    transform: scale(1.05);
    border-color: #0096D6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Companions */
.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.companion-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.companion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.companion-card h4 {
    color: #1a1a1a;
    font-size: 0.95rem;
}

.companion-card .companion-sku {
    color: #666;
    font-size: 0.8rem;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0096D6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c00;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-box button {
        width: 100%;
        margin-left: 0;
    }
    
    .product-title h2 {
        font-size: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}