/* Product Page */
.product-main {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

/* Loading state */
.product-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #6b7280;
}

/* Product layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-image-container {
    width: 100%;
    height: 400px;
    background-color: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.thumbnails-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    object-fit: contain;
    background-color: white;
    padding: 5px;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-brand {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

/* Spec badges */
.product-spec-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.spec-badge-large {
    height: 32px;
    width: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: white;
    object-fit: contain;
}

/* Price section */
.price-section {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.price-label {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
}

.tax-info {
    font-size: 14px;
    color: #6b7280;
}

.price-benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #059669;
}

.benefit-item i {
    color: #059669;
}

/* Quantity section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.quantity-controls {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e5e7eb;
}

.quantity-btn:active {
    background-color: #d1d5db;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    flex: 1;
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Product features */
.product-features {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    color: #0369a1;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.feature-desc {
    font-size: 12px;
    color: #64748b;
}

/* Store availability */
.store-availability {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.store-availability h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.check-stores-btn {
    width: 100%;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.check-stores-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Product tabs */
.product-tabs {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.tab-btn.active {
    color: #2563eb;
    background-color: white;
    border-bottom-color: #2563eb;
}

.tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
    padding: 30px;
}

.tab-panel.active {
    display: block;
}

.description-content,
.specs-content {
    line-height: 1.6;
    color: #374151;
}

.description-content h3,
.specs-content h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 18px;
}

.specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-content th,
.specs-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.specs-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    width: 30%;
}

/* Error state */
.product-error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.error-content {
    text-align: center;
    color: #6b7280;
}

.error-content i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 15px 0;
    }
    
    .product-layout {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
        min-width: auto;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .price-value {
        font-size: 22px;
    }
    
    .thumbnails-container {
        gap: 5px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        padding: 12px 15px;
    }
}