/* Product Detail Styles */

.product-detail-page {
    padding: 40px 0;
    background: #f7fafc;
}

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-list a:hover {
    color: #667eea;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.product-images .main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
}

.product-images img {
    width: 100%;
    height: auto;
    display: block;
}

.discount-badge,
.stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.discount-badge {
    background: #ef4444;
    color: white;
}

.stock-badge.out-of-stock {
    background: #64748b;
    color: white;
}

.stock-badge.low-stock {
    background: #f59e0b;
    color: white;
}

.product-brand {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-meta {
    color: #64748b;
    margin-bottom: 20px;
}

.product-price {
    background: #f7fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.old-price {
    font-size: 20px;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-tag {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stock-info.in-stock {
    color: #10b981;
}

.stock-info.out-of-stock {
    color: #ef4444;
}

.cart-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    flex: 1;
}

.quantity-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #f7fafc;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 2;
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.add-to-cart-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.product-tabs {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-pane {
    display: none;
    padding: 30px;
}

.tab-pane.active {
    display: block;
}

.similar-products {
    margin-top: 60px;
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .cart-section {
        flex-direction: column;
    }
}